Start Quiz: Java Certification Questions

http://www.quizover.com/java-certification-questions

Title: Oracle Certified Professional Java Programmer

Permalink:

Author: JavaChamp Team Senior Java Developer Germany

Created: 3 years

Access: Registered

Share Quiz:

OCJP Oracle Certified Professional, Java SE 6 Programmer mock exams,

Formally SCJP Sun Certified Java Programmer Exams

Java Programming Language

Content license and Copyright  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 Quiz
  • 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
  • Question: What is the result of compiling and running the following code?
    • Choices:
    • true
    • false
  • 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 program?
    • Choices:
    • Compilation error
    • falsefalsetruetrue
    • truetruetruetrue
    • truefalsetruetrue
  • 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 expected output?
    • Choices:
    • true
    • false
  • 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: Which of the statements would evaluate to true?
    • Choices:
    • stmt1
    • stmt2
    • stmt3
    • stmt4
    • stmt5
  • 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 statements will evaluate to true?
    • Choices:
    • stmt1
    • stmt2
    • stmt3
    • stmt4
Start "SCJP/OCJP" Quiz
Inline