Interview Questions and Answers - Order By Newest Q2071. How modules are different than packages in Java 9 ? Core Java
Ans. Modules are independently build units and contains multiple packages. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules Q2072. How Java 9 helps in building light weight applications ? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules Q2073. Do we need different class loaders for different modules in Java 9 ? Core Java
Ans. No, We can use the same class loader. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modulesAns. A Module layer is created from a graph of modules and is a function that maps modules to their class loaders. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules Q2076. Difference between named and unnamed modules ? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules Q2077. What is the use of Requires, Exports, Opens and provides within Module Descriptor ? Core Java
Ans. Requires specifies the dependencies for the module, i.e the modules required for this module to function.
Exports specifies the packages exported by the module.
Opens specifies the packages opened by the module.
Provides specifies the services provided by the module
Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java modules   java 9 modules Q2078. Does Java 9 allows same package within different modules ? Core Java
Ans. Yes it allows if the modules are mapped to different class loaders. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java 9 modules Q2079. What are the qualified and unqualified packages ? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java 9 modules Q2080. How does modularity in Java 9 facilitates better encapsulation ? Core Java
Ans. By providing dependencies , services and exports explicitly Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java 9 modules Q2081. How does Java 9 provides backward compatibility with libraries that haven't published themselves as modules ? Core Java
Ans. Though Automatic modules. Any JAR on the module path without module descriptor ends up as automatic module Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java 9 modules Q2082. What is the default setting for Automatic modules regarding exporting packages and reading modules ? Core Java
Ans. As one purpose of automatic module is to provide backward compatibility with the module less dependencies, automatic modules exports all packages and include all other modules. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9  java 9 modulesAns. JShell is a feature in java 9 using which we can code and test without compiling using javac and see the result of calculations directly. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  jshell  java 9 Q2084. Design ATM machine application using oops. Design
This question was recently asked at 'Atos'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2085. Can we have private methods in interfaces ? Core Java
Ans. Yes, With Java 9 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 9 Q2086. 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 Q2087. What are the components of Data Warehousing ? Database
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2088. What is the difference between implementing interfaces and inheritance in Java ? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2089. How many Java developers are there in world ? General
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2092. What is the difference between developer token and refresh token ? Adwords
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2093. What is the difference between accessing Google Apis using client key / secrets and service account ? Adwords
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2094. What is the difference between Google Adwords and Adsense ? Adwords
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2095. What is the programming advantage of Immutability ? Design
This question was recently asked at 'Overstock.com'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mmutable  immutability  immutabilit Asked in 1 Companies Q2096. What are the disadvantages of immutability ? Design
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mmutable  immutability  immutabilitAns. A weak reference is a reference that gets removed on the next garbage collection cycle. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  weak reference  garbage collection Asked in 1 Companies   rare Q2098. Write a program that count the number of access to a method? Core Java
This question was recently asked at 'TrueCaller'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2099. Difference between Eager and Lazy loading in hibernate ? Hibernate
Ans. Lazy Loading is loading of entities on demand when subclass is called, while Eager loading is loading of all the sub entity at the start only.
Eager loading is fast as all sub entities are already present, but its heavy(takes more memory) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2100. what are the different criterions that can be specified while updating bids ? Adwords
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve