Multiple choice

What is the use of interface in java?

  1. It provides data encapsulation.

  2. It resolves the multiple inheritance problem in java.

  3. It provides the behaviour of the application.

  4. All of the above

  5. Only (1) and (2)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, all of the above statements are true.