Question types

8. CLASSES AND OBJECTS IN JAVA question types

464 questions across 1 question group — pick any mix to generate a Computer paper with step-by-step answer keys.

464
Questions
1
Question groups
5
Question types
Sample Questions

8. CLASSES AND OBJECTS IN JAVA questions

One sample from each question group in this chapter. Select any group above to see the full set with answer keys.

Q 1MCQ1 Mark
Which of the following arrow, points from subclass towards superclass?
  • B
  • C
  • D

Answer: A.

View full solution
Q 2MCQ1 Mark
Who enables creating classes as composition and aggregation of objects?
  • Use of object as an instance variable in class
  • B
    Use of -object as static variable in class
  • C
    a and b both
  • D
    None of these

Answer: A.

View full solution
Q 3MCQ1 Mark
What is advisable to be used as “public” for protection purpose?
  • A
    Private instance variables
  • B
    ‘getter’ and ‘setter’ methods
  • a and b both
  • D
    None of these

Answer: C.

View full solution
Q 4MCQ1 Mark
Specify the purpose of access modifiers.
  • To determine visibility of instance members
  • B
    To determine the data type of instance members
  • C
    a and b both
  • D
    None of these

Answer: A.

View full solution
Q 5MCQ1 Mark
Which members of the class are shared by all objects of the class?
  • Static members
  • B
    Private members
  • C
    a and b both
  • D
    None of these

Answer: A.

View full solution

Generate a 8. CLASSES AND OBJECTS IN JAVA paper free

Pick question groups from the list above, set marks and difficulty, and export a branded PDF with step-by-step answer keys. First 3 chapters free — no signup.

Download App