🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Abstract Classes and Interfaces: all 10 questions

Quiz: Abstract Classes and Interfaces · Question 3 of 10

Fields declared in an interface are automatically:

Fields declared in an interface are automatically:

  1. A.private
  2. B.protected and mutable
  3. C.public static final (constants)
  4. D.instance variables
Answer & explanation

Correct answer: public static final (constants)

Interface fields are constants.

Can you get the rest right without peeking?

Take the timed Quiz: Abstract Classes and Interfaces quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →