Java Aptitude

Java MCQ

Java Practice MCQ 2

  1. Can we have multiple public class in java?

    A.

    B.

    C.

    D.

  2. Default value of instance variable is:

    A.

    B.

    C.

    D.

  3. Can we mark constructor as private?

    A.

    B.

    C.

    D.

  4. When Error occurs in exception handling it:

    A.

    B.

    C.

    D.

  5. The place where compiled .class file is searched is known as:

    A.

    B.

    C.

    D.

  6. Parent class variable can be referred using

    A.

    B.

    C.

    D.

  7. main() method in java can be?

    A.

    B.

    C.

    D.

  8. Which of the following has more restrictive power?

    A.

    B.

    C.

    D.

  9. Can a java class be inherited by more than one class?

    A.

    B.

    C.

    D.

  10. Which method of the Runnable interface that must be implemented by all threads?

    A.

    B.

    C.

    D.


Please Share this page