1 . Consider the following line of code: What will be happen if you compile and run above code? It will not compile It will not run It will compile but will not run It will output “Hi” 2 . After execution of the code fragment below, what are the value of the variables x1, …
Certifications
OCPJP 6 Mock Exam – 6
1 . Please select signed integrals char, byte, and short byte, short, int, and long char, short, and long 2 . Java characters are … ASCII code Binary code Unicode ANSI code 3 . Please select the size of an int type 32 bytes 16 bits 32 bits 16 bytes 4 . Select default value …
OCPJP 6 Mock Exam – 5
Q 1 : Which of the following are the correct form of documentation comments? //some text here /*some text here*/ /**some text here*/ all the above Q 2 : State the correct formula for minimum/maximum values for integer primitives where no_of_bits is the size of the type in bits. 2^(no_of_bits-1) / 2^(no_of_bits-1)+1 2^(no_of_bits+1) / 2^(no_of_bits+1)+1 …
OCPJP 6 Mock Exam – 4
Q 1 : What will be the output? Choose the one below: String Object null Compiler Error Q 2 : What will be the output? Choose the one below: String Object null Compiler Error Q 3 : What will be the output? Choose the one below: String Object Test Compiler Error Q 4 : What …
OCPJP 6 Mock Exam – 3
Q 1 : What will be the output? Choose the one below: 1 2 3 0 Q 2 : What will be the output? Choose the one below: 1 2 3 4 Compiler error Q 3 : What will be the output? Choose the one below: 3 0 Runtime Exception Compiler error Q 4 : …
OCPJP 6 Mock Exam – 2
Q 1 : What is the output? Choose the one below: 10 20 ClassCastException Compiler Error Compiler Error Q 2 : What is the output? Choose the one below: [null = null] NullPointerException null [] Q 3 : What is the output? Choose the one below: [null = null] NullPointerException null [] Q 4 : …
OCPJP 6 Mock Exam -1
Q 1 : What will be the output? Choose the one below: 0 0 0 ArrayIndexoutOfBoundsException NullPointerException null null null Q 2 : Which of the following are valid array declarations? int arr[] = new int[]; float arr[10] = new fl double []arr = new double[10]; None Of the Above. Q 3 : What will …
OCAJP FAQs
How many OCAJP 7 exam questions? There are total 90 questions will be asked in the OCAJP 7 (1Z0-803). It is the entry level example in the Java Certification path. The questions which are asked as part of this exam is fundamentals of Java and not much programming or real time experience is required to …