Java Aptitude

Java MCQ

Java Random MCQ

  1. Java is secure as a programming language because of?

    A.

    B.

    C.

    D.

  2. Which one of the following is not an access modifier?

    A.

    B.

    C.

    D.

  3. When Error occurs in exception handling it:

    A.

    B.

    C.

    D.

  4. Which of the following is valid declaration of object in java?

    A.

    B.

    C.

    D.

  5. Which of these is used to access member of class before object of that class is created?

    A.

    B.

    C.

    D.

  6. How would you sort collection having user-defined object in java?

    A.

    B.

    C.

    D.

  7. Using which of the following ways we can access a method in java: 1 invoking a method declared in the same class. 2 invoking a method using reference of the class. 3 invoking an inherited method.

    A.

    B.

    C.

    D.

  8. Partial abstraction in java is provided by

    A.

    B.

    C.

    D.

  9. Which of the following statement is incorrect?

    A.

    B.

    C.

    D.

  10. Default value of instance variable is:

    A.

    B.

    C.

    D.


Please Share this page