SCJP MOCK EXAM-01 MCQ Question Questions and Answers
SCJP Mock Exam-01 MCQ Questions with Answers are ideal for candidates preparing for Java certification and IT placement tests. This mock test includes Java programming interview questions with answers that focus on core concepts such as OOPs, inheritance, and exception handling. Practicing these Java MCQs helps improve coding logic, efficiency, and exam readiness for placements at top companies like TCS, Infosys, and Wipro. This section is designed to simulate real exam conditions and provide in-depth explanations for every question.
SCJP MOCK EXAM-01 MCQ Question
Showing 10 of
41 questions
12. The default no-argument constructor created by Java is
- public
- protected
- private
- default type
14. Which is/are the correct declaration of an array
- int[] iA
- int [4] iA
- int [][4] iAA
- int [][]iAA
15. choose the correct statement for above declaration.
- It allocate 5 places for storing 5 references to abc
- It allocate 5 objects for storing 5 references to abc
- It allocates 5 objects only
- ALL
16. what is correct ways to explicitly initialize arrays
- for(int i=0; i<A.length;i++)A[i] = new abc();
- A=new abc[] {new abc(),new abc(),new abc(),new abc(),new abc()};
- A is correct but B is wrong
- B is correct but A is wrong.
19. we know that true, false, and null are not key word, can i use then as identifier name.
- TRUE
- FALSE
20. Class members which are of type static or non-static they are ALWAYS
- initialized automatically to their default values
- only non-static members need to initializ explicitly.
- only static members need to initializ explicitly.
- both members are need to initializ explicitly.