👍4
Which of the following is the return type of the lines() method in the java.nio.file.Files class?
Anonymous Quiz
33%
Stream<String>
20%
List<String>
11%
Set<String>
16%
Map<String, String>
21%
None of the above
❤6👍4👏1
What is the purpose of the 'record' keyword introduced in Java 16?
Anonymous Quiz
43%
It creates a new record in a database.
25%
It defines a new type of class for storing records.
17%
It's a replacement for the 'enum' keyword.
15%
It's used to create classes for immutable data with automatic methods.
👍5😈2🔥1😁1
What is the purpose of the Optional class?
Anonymous Quiz
48%
To represent a value that may or may not be present
21%
To represent a set of values
10%
To represent a map of values
13%
To represent a function
7%
None of the above
❤3👏1
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
Like this post if you have already subscribed to our channel
Click on below link to subscribe
https://bit.ly/3NLjOpW
Discuss doubts in @javaforfree
Like this post if you have already subscribed to our channel
Click on below link to subscribe
https://bit.ly/3NLjOpW
Discuss doubts in @javaforfree
❤1🔥1👏1
Which data structure uses the "Last-In-First-Out" (LIFO) principle?
Anonymous Quiz
64%
Stack
27%
Queue
5%
DeQueue
4%
DoubleLinkedList
👍6
In which element we put javascript?
Anonymous Poll
37%
<javascript>
7%
<scripting>
52%
<script>
4%
None of these
👍1
Which of the following statements is true about functional interfaces?
Anonymous Quiz
42%
They can have multiple abstract methods.
12%
They cannot have any methods.
35%
They can have only one abstract method.
10%
They can have only static methods.
👍4👏3💘1
#java_quizs (Question - 151) . What is the name of the method used to start a thread execution?
Anonymous Quiz
25%
init();
47%
start();
22%
run();
5%
resume();
⚡6👍4
Where does the system stores parameters and local variables whenever a method is invoked?
Anonymous Quiz
42%
Heap
45%
Stack
10%
Meta space
2%
perm gen space
⚡8💘4👍3
Anonymous Quiz
71%
Array
6%
Avl tree
17%
Binary tree
6%
Graphs
👍7🥰1👏1
Which of the following is NOT a primitive data type in Java?
Anonymous Quiz
6%
int
7%
float
22%
boolean
65%
String
👍12🥰5👏2