What is module with example?



What is module with example?..

Answer / Navneet Kumar Yadav

For example, in Java 9 and later versions, a simple module might look like this: nnmodule myModule {n requires java.sql;n exports com.mypackage;n}nThis module named 'myModule' requires the 'java.sql' module and exports the package 'com.mypackage' to other modules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is the logic inside any default constuctor?

2 Answers  


Explain hashset and its features?

1 Answers  


Name the types of mouse event listeners ?

2 Answers  


What does nextint () do in java?

1 Answers  


What is the use of isempty in java?

1 Answers  


What are predicates in java 8?

1 Answers  


How does system arraycopy work in java?

1 Answers  


What are the types of collections in java?

1 Answers  


Can you explain the usages of class.forname()?

1 Answers  


Can interface be private in java?

1 Answers  


How to split arraylist elements in java?

1 Answers  


What is javac_g?

1 Answers  


Categories