Class Structure & Syntax QuizJ8 Home « Class Structure & Syntax Quiz

Java Objects & Classes Quiz 3

The quiz below tests your knowledge of the material learnt in Objects & Classes - Lesson 3 - Class Structure & Syntax.

Question 1 : What are instance variables and class methods commonly known as?
- Instance variables and class methods are commonly known as <i>members</i>.
Question 2 : What describes an object's state?
- Instance variables describe an object's state.
Question 3 : A Class must have at least one instance variable?
- There is no requirement for a class to have any instance variables
Question 4 : What describes an object's behaviour?
- Class methods describe an object's behaviour.
Question 5 : How do we instantiate an object?
- We instantiate an object using the <code>new</code> keyword.
Question 6 : How do we access class members?
- We access class members using dot notation.
Question 7 : A class is an object?
- A class is a blueprint for object construction.
Question 8 : Instance variables apply to the whole class?
- Instance variables apply to each instance of a class, not to the whole class.
Quiz Progress Bar Please select an answer


What's Next?

The next quiz on Java Objects and Classes is all about reference variables.