Forwarded from TechShiksha by Badkul Technology (admin)
When is the object gets created with new keyword?
Anonymous Quiz
43%
Runtime
33%
Compile time
20%
Depends on code
5%
Don't know
🥰4👍3
JDK 21 (2023):
Virtual Threads for lightweight concurrency.
Record Patterns for enhanced data manipulation.
Pattern Matching for switch statements for concise code structures.
SequencedCollection for direct access to ordered collection's elements.
Preview features including String templates, unnamed classes, and instance main() methods.
Continuation of Scoped values as a preview API.
Unnamed Patterns and Variables as preview features.
Unnamed Classes and Instance Main Methods as preview features.
Structured Concurrency remains a preview feature.
Unnamed Patterns and Variables (Preview)
Virtual Threads for lightweight concurrency.
Record Patterns for enhanced data manipulation.
Pattern Matching for switch statements for concise code structures.
SequencedCollection for direct access to ordered collection's elements.
Preview features including String templates, unnamed classes, and instance main() methods.
Continuation of Scoped values as a preview API.
Unnamed Patterns and Variables as preview features.
Unnamed Classes and Instance Main Methods as preview features.
Structured Concurrency remains a preview feature.
Unnamed Patterns and Variables (Preview)
👍9❤1
Top 30 Git Interview Questions and Answers 📘.pdf
1.5 MB
Top 30 Git Interview Questions and Answers 📘.pdf
❤5👍1
Which keyword is used to prevent inheritance in Java?
Anonymous Quiz
41%
final
27%
abstract
18%
static
14%
protected
👍9🥰1
Which of the following represents the correct syntax for declaring a string literal in Java?
Anonymous Quiz
16%
String myString = String("Hello");
48%
String myString = "Hello";
32%
String myString = new String("Hello");
4%
String myString = 'Hello';
Anonymous Quiz
75%
Array
4%
Avl Tree
17%
Binary Tree
4%
Graphs
👍8
❤4
In a Java application, which collection type is best suited for storing unique elements to improve performance and reduce memory usage?
Anonymous Quiz
35%
ArrayList
21%
LinkedLIst
35%
HashSet
9%
TreeMap
👍1🥰1