Start Exam: Java Certification Questions


OCJP Oracle Certified Professional, Java SE 6 Programmer mock exams, MCQ Multiple Choices Questions Quiz Test Bank

Formally Know as: SCJP Sun Certified Java Programmer Exams

Java Programming Language

Exam PDF eBook: 
Name:
Oracle Certified Professional Java Programmer
Download URL:
Book Size:
395 Pages
Copyright Date:
2010
Language:
English US
Categories:
Educational Materials
Disclaimer  Oracle, Sun, Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
Max 150 x 200 pixel (Max 50 KByte)

Choose Photo:

Sample Questions from the Oracle Certified Professional Java Programmer Exam

Question: What is the expected output?

Choices:

true

false

Question: Which of the statements will evaluate to true?

Choices:

stmt1

stmt2

stmt3

stmt4

Question: What is the result of compiling and running the following program?

Choices:

Compilation error

falsefalsetruetrue

truetruetruetrue

truefalsetruetrue

Question: What is the result of compiling and running the following code?

Choices:

true

false

Question: Which of the statements would evaluate to true?

Choices:

stmt1

stmt2

stmt3

stmt4

stmt5

Question: What is the expected output?

Choices:

RuntimeException is thrown because of the first print statement

RuntimeException is thrown because of the second print statement

nullnullnullnull

nullnull

compilation error

Question: What is the result of compiling and running the following code?

Choices:

JavaChamp is here to help you

JavaChamp i here to help you

No output is produced

Compilation error

Question: What is the expected output?

Choices:

true

false

Question: Select the common methods, which are defined for both type String and type StringBuffer ?

Choices:

toString()

length()

append(String)

trim()

equals(Object)

Question: Which of the following methods can be invoked by an object of Pattern class?

Choices:

compile

matches

group

toString

Question: What is the result of compiling and running the following code?

Choices:

"AB" will be printed

"A" will be printed followed be a NullPointerException thrown

"B" will be printed

No output is produced

Start "SCJP/OCJP Mock" Exam
Eric Crawford
Copy and paste the following HTML code into your website or blog.
<iframe src="http://www.quizover.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
Inline