Advanced Java Features

Tap or click on cards to flip them and reveal the answers. You can use arrow keys as well.

1/15 cards
What is multithreading in Java?
Click to flip
Multithreading is a feature in Java that allows concurrent execution of two or more threads for maximum utilization of the CPU.
Click to flip
What is a thread in Java?
Click to flip
A thread is a lightweight subprocess, the smallest unit of processing, in Java, managed by the Java thread model.
Click to flip
How do you create a thread in Java?
Click to flip
A thread in Java can be created by implementing the Runnable interface or by extending the Thread class.
Click to flip
What is synchronization in Java?
Click to flip
Synchronization is a mechanism in Java used to control access to shared resources by multiple threads to prevent data inconsistency.
Click to flip
What is Java Collection Framework?
Click to flip
The Java Collection Framework provides architecture to store and manipulate a group of objects in Java, with interfaces like List, Set, and Map.
Click to flip
What is the difference between ArrayList and LinkedList in Java?
Click to flip
ArrayList is based on a dynamic array for quick access, while LinkedList is based on a doubly linked list, better for insertions and deletions.
Click to flip
What is a lambda expression in Java?
Click to flip
A lambda expression is used to provide implementation of a method defined by a functional interface, often used to express instances of single-method interfaces.
Click to flip
What is Java Stream API?
Click to flip
Java Stream API is used to process collections of objects in a functional approach, providing methods to perform operations like filter, map, and reduce.
Click to flip
What is meant by Generics in Java?
Click to flip
Generics allow Java developers to create classes, interfaces, and methods with a placeholder for types they operate on, providing type safety and reducing bugs.
Click to flip
What is an exception hierarchy in Java?
Click to flip
Exception hierarchy defines classes of exceptions, with Throwable at the top, dividing into Error (unrecoverable) and Exception (recoverable), further into checked and unchecked.
Click to flip
How does garbage collection work in Java?
Click to flip
Garbage collection in Java automatically deletes unused or unreferenced objects from memory to manage resources efficiently.
Click to flip
What are annotations in Java?
Click to flip
Annotations provide metadata for Java code, often used for information like compiler instructions, runtime processing, and deployment instructions.
Click to flip
What is an enum in Java?
Click to flip
An enum is a special Java type used to define collections of constants, improving type safety.
Click to flip
What is a new feature introduced in Java 9?
Click to flip
Java 9 introduced modularity, allowing a module system to manage dependencies and encapsulate code better.
Click to flip
What is a package in Java?
Click to flip
A package is a namespace that organizes a set of related classes and interfaces, preventing naming conflicts and managing access.
Click to flip

Need More Study Materials?

Go back to the chat to generate additional resources.

Create More Resources