Question discussion

Which among the following is the primary purpose of using interfaces in Java?

359434Medium DSSSB TGT Computer Science 0 replies 0 views
0
Which among the following is the primary purpose of using interfaces in Java?
  • ATo avoid creating objects
  • BTo achieve multiple inheritance
  • CTo improve user experience
  • DTo reduce memory usage
Correct answer: B

Explanation

Java uses interfaces to achieve multiple inheritance of type.

Discussion 0

Nobody has replied yet. Start the discussion!