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. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Java 9 would provide an error at compile time if there are different modules with the same package mapped to the same class loader and hence would provide a compile time check for this issue. NoClassDefFoundError exists because of ambiguity at realtime because of multiple versions of same package / class exist. As Java 9 would provide a compile time check for it through clearly defined dependencies and exports and a check on duplicate packages being loaded by single class loader, it will fix the problem. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java 9  java 9 modules | ||||
Related Questions | ||||
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 ? | ||||