Java Quiz






  1. What is a reference data type?

  2. What is an enum?

  3. Which of the following is a valid declaration of an object of class Puppy?

  4. Which of these statement is incorrect?

  5. What is the output of the program?

  6. Which of these coding types is used for data type characters in Java?

  7. Which of the following stands true about default modifier of class members?

  8. Inheritance represents

  9. What kind of variables a class can consist of?

  10. This is the parent of Error and Exception classes.