What could be the reason for allowing private methods in java 9 ?

Search Interview Questions

 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text


Interview Questions and Answers

 Q1. What could be the reason for allowing private methods in java 9 ?Core Java
Ans. Java 8 allowed for method implementation using default methods in interfaces. As those default methods could contain complex logic and might need organizing the logic into multiple methods, they have allowed for private methods.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java 9  default methods

Related Questions

 How Java 9 would help resolve NoClassDefFoundError through it's modularity ?
 Can we have a private default method ?
 What are the new classes in JDK 1.9 ( Java 9 ) ?
 What are the changes in Java 9 ?
 What is project Jigsaw in Java 9 ?
 What does the modularity in project jigsaw means ?
 Why do we have multiple core java jars in java 9 ?
 What is the concept of modules in Java 9 ?
 How modules are different than packages in Java 9 ?
 How Java 9 helps in building light weight applications ?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: