Java Aptitude

Java MCQ

Java Random MCQ

  1. 'this' in java can be used to: 1. Refer to the current class instance variables 2. Refer to current class methods 3. Refer to current class constructors

    A.

    B.

    C.

    D.

  2. When Error occurs in exception handling it:

    A.

    B.

    C.

    D.

  3. Can we have multiple public class in java?

    A.

    B.

    C.

    D.

  4. An Interface can ____________ an interface

    A.

    B.

    C.

    D.

  5. Parsing in java refers to

    A.

    B.

    C.

    D.

  6. Guess output: System.out.print("java"+ 10+ 30+ 40);

    A.

    B.

    C.

    D.

  7. Which is invalid identifier with main method?

    A.

    B.

    C.

    D.

  8. Why main method should be static?

    A.

    B.

    C.

    D.

  9. Which keyword is used to refer to the current object that invoked it?

    A.

    B.

    C.

    D.

  10. What can be overloaded in java?

    A.

    B.

    C.

    D.


Please Share this page
Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!