Which Java design pattern is used to ensure that a class has only one instance and provides a global point of access to that instance?
Anonymous Quiz
19%
factory
30%
builder
11%
flyweight
40%
singleton
π₯5
π₯6
What's the time complexity of finding a key in a hashmap?
Anonymous Quiz
25%
O(1)
35%
O(n)
28%
O(nlogn)
12%
O(logn)
β€4π’4π3
In a binary tree, what is the maximum number of children a node can have?
Anonymous Quiz
8%
0
15%
1
46%
2
31%
n
π2π2π’2β€1
Which feature was introduced in Java 14?
Anonymous Quiz
20%
Records
23%
Switch expressions
28%
local variable type inference
29%
Pattern Matching for instanceof
π5
Which method is used to fill an array with a specific value in the Arrays class?
Anonymous Quiz
33%
fillArray
27%
setAll
14%
fill
26%
initialize
π6π₯4π2
Interview questions.pdf
2.8 MB
Interview questions.pdf
Static variable is stored in which of these memory ?
Anonymous Quiz
37%
Heap
41%
Stack
13%
Registers
10%
none of the above
π₯6π4π3
Which collection class is synchronized in Java?
Anonymous Quiz
44%
ArrayList
23%
LinkedList
19%
Vector
14%
HashSet
π8π1
What is the purpose of the equals method in Java?
Anonymous Quiz
56%
Compare two objects for equality
24%
Compare two primitive data types
12%
Concatenate two strings
9%
Declare a variable
π6β€1π1π1
Selenium Full Notes .pdf
10.5 MB
Selenium Full Notes .pdf