Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address
Check our LIVE MOCK INTERVIEWS

Java 11 Interview Questions and Answers

Intermediate / 1 to 5 years experienced level questions & answers

Ques 1. What is Flight Recorder in Java 11?

Java Flight Recorder is an always-on, low-overhead, data collection framework that you can use to get metrics on your JVMs. It's implemented as a bounded circular buffer, which buffers internal JVM metrics for a configurable amount of minutes. The great thing about this feature is that you can leave it enabled on your prediction systems because it's so low overhead.

Is it helpful? Add Comment View Comments
 

Ques 2. What is Dynamic Class-File Constants in Java 11?

The Java class-file format is now expanding support for a new kind of constant pool, called CONSTANT_Dynamic. The loading of CONSTANT_Dynamic delegates the creation of a bootstrap method. Same as linking an invokedynamic call site delegates linkage to a bootstrap method. Same as, Java 7 which introduces MethodHandle and MethodType entry in constant pool. 

Is it helpful? Add Comment View Comments
 

Ques 3. What is Improve Aarch64 Intrinsics in Java 11?

Improve the current string and array intrinsic, and added new intrinsics on AArch64 processors for the java.lang.Math sin, cos and log functions. Intrinsics are used to optimize CPU architecture-specific assembly code that is executed for a given method to boost performance, instead of generic Java code. Although most of the intrinsics are already implemented in port AArch64, optimized intrinsics are still lacking for the following java.lang.Math methods:

  1. sin (sine trigonometric function)
  2. cos (cosine trigonometric function)
  3. log (logarithm of a number)
  4. This JEP is intended to cover this gap by implementing optimized intrinsics for these methods.

 

Is it helpful? Add Comment View Comments
 

Ques 4. What is Local-Variable Syntax for Lambda Parameters in Java 11?

It allows var to be used when declaring the formal parameters of implicitly typed lambda expressions.

In Java 10, Local Variable Type Inference was introduced.

var str = "Java 10"; // infers Stringvar list = new ArrayList<String>(); // infers ArrayList<String>var stream = list.stream(); // infers Stream<String>svar bos = new ByteArrayOutputStream();

Java 11, allows var to be used to declare the formal parameters of an implicitly typed lambda expression.

(var a, var b) -> a + b

The examples below are illegal:

// Not allowed to mix 'var' and 'no var' in implicitly typed lambda expression(var a, b) -> a+b// Not allowed to mix 'var' and manifest types in explicitly typed lambda expression(var a, int b) -> a+b   

Is it helpful? Add Comment View Comments
 

Ques 5. What is Unicode 10 in Java 11?

It supports the latest Unicode version, particularly in the classes below:

  1. Character and String in the java.lang package
  2. NumericShaper in the java.awt.font package
  3. Bidi, BreakIterator, and Normalizer in the java.text package

Is it helpful? Add Comment View Comments
 

Ques 6. What is Launch Single-File Source-Code Programs in Java 11?

It enhances the Java launcher to run the program provided as a single Java source code file, including the use of "shebang" files and related techniques from within the script.

Is it helpful? Add Comment View Comments
 

Ques 7. What is ZGC: A Scalable Low-Latency Garbage Collector(Experimental) in Java 11?

The Z Garbage Collector, also known as ZGC, is a low latency scalable garbage collector designed to meet the following objectives.

  1. Pause times shall not exceed 10 ms
  2. Handle heaps ranging from a few hundred megabytes to multi terabytes in size
  3. Pause times do not increase with the size of the heap or live-set.

Is it helpful? Add Comment View Comments
 

Ques 8. Tell me about Deprecate the Pack200 Tools and API in Java 11.

Below three types will be deprecated from java.base module, i.e. with annotation @Deprecated(forRemoval = true):

  1. java.util.jar.Pack200
  2. java.util.jar.Pack200.Packer
  3. java.util.jar.Pack200.Unpacker

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related differences

Java 10 vs Java 11Java 11 vs Java 12

Related interview subjects

JUnit interview questions and answers - Total 24 questions
Spring Framework interview questions and answers - Total 53 questions
Java Design Patterns interview questions and answers - Total 15 questions
Java 17 interview questions and answers - Total 20 questions
Core Java interview questions and answers - Total 306 questions
Tomcat interview questions and answers - Total 16 questions
Apache Wicket interview questions and answers - Total 26 questions
Java Applet interview questions and answers - Total 29 questions
JAXB interview questions and answers - Total 18 questions
JMS interview questions and answers - Total 64 questions
Log4j interview questions and answers - Total 35 questions
Struts interview questions and answers - Total 84 questions
RMI interview questions and answers - Total 31 questions
Apache Camel interview questions and answers - Total 20 questions
JDBC interview questions and answers - Total 27 questions
Java 11 interview questions and answers - Total 24 questions
JPA interview questions and answers - Total 41 questions
EJB interview questions and answers - Total 80 questions
GWT interview questions and answers - Total 27 questions
Kotlin interview questions and answers - Total 30 questions
Glassfish interview questions and answers - Total 8 questions
Google Gson interview questions and answers - Total 8 questions
Java 21 interview questions and answers - Total 21 questions
JSP interview questions and answers - Total 49 questions
J2EE interview questions and answers - Total 25 questions
Apache Tapestry interview questions and answers - Total 9 questions
Java Swing interview questions and answers - Total 27 questions
Java Mail interview questions and answers - Total 27 questions
Hibernate interview questions and answers - Total 52 questions
JSF interview questions and answers - Total 24 questions
Java 8 interview questions and answers - Total 30 questions
Java 15 interview questions and answers - Total 16 questions
JBoss interview questions and answers - Total 14 questions
Web Services interview questions and answers - Total 10 questions
RichFaces interview questions and answers - Total 26 questions
Servlets interview questions and answers - Total 34 questions
Java Beans interview questions and answers - Total 57 questions
Spring Boot interview questions and answers - Total 50 questions
©2023 WithoutBook