Java Aptitude

Java MCQ

Java Practice MCQ 5

  1. Which exception is thrown when java is out of memory?

    A.

    B.

    C.

    D.

  2. The process of defining two or more methods within same class that have same name but different parameters declaration

    A.

    B.

    C.

    D.

  3. What can be overloaded in java?

    A.

    B.

    C.

    D.

  4. What is the process of defining a method in terms of itself, that is a method that calls itself?

    A.

    B.

    C.

    D.

  5. Which of these access specifiers must be used for main() method?

    A.

    B.

    C.

    D.

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

    A.

    B.

    C.

    D.

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

    A.

    B.

    C.

    D.

  8. Which of the following modifier means a particular variable cannot be accessed within the package

    A.

    B.

    C.

    D.

  9. Modifier accessible within same package and outside package by online child class

    A.

    B.

    C.

    D.

  10. All the variables of interface should be:

    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!