Which keyword is used to define a class in Java?
Java Oop Fundamentals
Question · Easy
What is the correct way to declare the main method in Java?
Chapter 1: Java Basics, Primitive Types, and Operators
1.1 Program Structure, Primitives, Literals, Scopes, and var
Study guide
What is encapsulation in Java?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which access modifier makes a member accessible only within the same class?
What is a record in Java 21?
Java 21 Features
What is a sealed class in Java 21?
1.2 Operators, Precedence, and Type Casting
What is a lambda expression in Java?
Java Streams Lambdas
What does the Stream API in Java provide?
What is the purpose of the 'extends' keyword in Java?
What is the purpose of the 'module-info.java' file in Java?
Java Modules Packages
1.3 Strings, Text Blocks, and StringBuilder
What are virtual threads in Java 21?
What is polymorphism in Java?
Which interface must a class implement to allow its objects to be compared for ordering?
What is the purpose of the 'var' keyword introduced in Java 10?
1.4 Date and Time APIs (java.time)
What is a functional interface in Java?
What is the purpose of the Optional class in Java?
What does the 'synchronized' keyword do in Java?
Java Concurrency
What is the difference between an interface and an abstract class in Java?
Chapter 2: Controlling Program Flow & Pattern Matching
2.1 Conditional Logic: if-else and Ternary Operators
What is the purpose of the 'try-with-resources' statement in Java?
What is pattern matching for instanceof in Java 21?
What is a text block in Java?
Given the code: List.of(1,2,3,4,5).stream().filter(n -> n > 2).map(n -> n * 2).toList() — what is the result?
Question · Medium
2.2 Switch Statements and Switch Expressions
What is the difference between method overloading and method overriding in Java?
How do you create a virtual thread in Java 21?
What is the purpose of the Collectors.groupingBy() method?
What is the difference between checked and unchecked exceptions in Java?
2.3 Pattern Matching for switch and instanceof
What is the 'permits' clause used for with sealed classes?
What does the 'requires' directive do in a module-info.java file?
What is the CompletableFuture class used for in Java?
What is the purpose of the 'exports' directive in a Java module?
2.4 Loops and Branching Statements
How does pattern matching work in switch expressions in Java 21?
What is the difference between Stream.map() and Stream.flatMap()?
What is a record pattern in Java 21?
What is the difference between Runnable and Callable in Java?
Chapter 3: Object-Oriented Design & Class Architecture
3.1 Class Declarations, Constructors, and Object Lifecycle
What is the purpose of the 'opens' directive in a Java module?
What is the purpose of the @Override annotation?
How do you create an unmodifiable list in Java using the List.of() factory method?
What is the ExecutorService interface used for in Java concurrency?
Loading more…