> masteringswe_

Java Deck

Cards from Java Deck

Questions

01What is polymorphism
conceptual
02Code 31
coding
03Compilation 37
conceptual
04What is the argument passed into a synchronized block
conceptual
05What are final fields
conceptual
06Cons of constants in a project-wide class
conceptuallocked
Subscribe to unlock
07Best practices for organizing class constants
conceptuallocked
Subscribe to unlock
08What is method binding
conceptuallocked
Subscribe to unlock
09Compilation 16
conceptuallocked
Subscribe to unlock
10Compilation 17
conceptuallocked
Subscribe to unlock
11Compilation 18
conceptuallocked
Subscribe to unlock
12Compilation 19
conceptuallocked
Subscribe to unlock
13What is method overloading
conceptuallocked
Subscribe to unlock
14What is included in method signature
conceptuallocked
Subscribe to unlock
15What is generic type
conceptuallocked
Subscribe to unlock
16Bound vs unbound type parameter
conceptuallocked
Subscribe to unlock
17What is type erasure
conceptuallocked
Subscribe to unlock
18What is a bridge method
conceptuallocked
Subscribe to unlock
19What is reifiable vs non-reifiable
conceptuallocked
Subscribe to unlock
20What does instanceof check
conceptuallocked
Subscribe to unlock
21Compilation 29
conceptuallocked
Subscribe to unlock
22What is an interface
conceptuallocked
Subscribe to unlock
23What is a default method in an interface
conceptuallocked
Subscribe to unlock
24Do classes support multiple inheritance
conceptuallocked
Subscribe to unlock
25What is an abstract class
conceptuallocked
Subscribe to unlock
26Keyword for a parent class
conceptuallocked
Subscribe to unlock
27Code 36
codinglocked
Subscribe to unlock
28What is implicitly inserted into every constructor
conceptuallocked
Subscribe to unlock
29How to call another constructor in the same class
conceptuallocked
Subscribe to unlock
30Compilation 41
conceptuallocked
Subscribe to unlock
31Compilation 42
conceptuallocked
Subscribe to unlock
32Compilation 43
conceptuallocked
Subscribe to unlock
33Compilation 44
conceptuallocked
Subscribe to unlock
34What does @Override do
conceptuallocked
Subscribe to unlock
35Criteria for successful method overriding
conceptuallocked
Subscribe to unlock
36Compilation 47
conceptuallocked
Subscribe to unlock
37Compilation 48
conceptuallocked
Subscribe to unlock
38Compilation 49
conceptuallocked
Subscribe to unlock
39Which methods will these calls bind to
conceptuallocked
Subscribe to unlock
40Effective signature 51
conceptuallocked
Subscribe to unlock
41Effective signature 52
conceptuallocked
Subscribe to unlock
42Compilation 53
conceptuallocked
Subscribe to unlock
43How many varargs params can a method have
conceptuallocked
Subscribe to unlock
44Vararg param ordering
conceptuallocked
Subscribe to unlock
45What is heap pollution
conceptuallocked
Subscribe to unlock
46Compilation 58
conceptuallocked
Subscribe to unlock
47Compilation 59
conceptuallocked
Subscribe to unlock
48What is an intrinsic / monitor lock
conceptuallocked
Subscribe to unlock
49What is synchronized keyword
conceptuallocked
Subscribe to unlock
50Synchronized non-static method on two instance objects
conceptuallocked
Subscribe to unlock
51Synchronized static method on two instance objects
conceptuallocked
Subscribe to unlock
52What monitor object is acquired for instance vs static synchronized methods
conceptuallocked
Subscribe to unlock
53What is a monitor object
conceptuallocked
Subscribe to unlock
54How to interleave access to two different fields using synchronization
conceptuallocked
Subscribe to unlock
55What is reentrant synchronization
conceptuallocked
Subscribe to unlock
56What is time slicing
conceptuallocked
Subscribe to unlock
57What is a process
conceptuallocked
Subscribe to unlock
58What is a thread
conceptuallocked
Subscribe to unlock
59Is count++ atomic
conceptuallocked
Subscribe to unlock
60What is liveness
conceptuallocked
Subscribe to unlock
61Where are local variables and references stored
conceptuallocked
Subscribe to unlock
62Where are objects stored
conceptuallocked
Subscribe to unlock
63What is update / memory visibility
conceptuallocked
Subscribe to unlock
64What does volatile do in java
conceptuallocked
Subscribe to unlock
65What is CPU / instruction reordering in java
conceptuallocked
Subscribe to unlock
66What is the happens-before guarantee of volatile
conceptuallocked
Subscribe to unlock
67What is the visibility guarantee of a synchronized block
conceptuallocked
Subscribe to unlock
68What is the happens-before guarantee of synchronized block
conceptuallocked
Subscribe to unlock
69What is piggybacking with synchronization
conceptuallocked
Subscribe to unlock
70Compilation 87
conceptuallocked
Subscribe to unlock
71What is a static class in java
conceptuallocked
Subscribe to unlock
72Code 89
codinglocked
Subscribe to unlock
73Code 90
codinglocked
Subscribe to unlock
74What is an enum constructor
conceptuallocked
Subscribe to unlock
75Why is initialization of static fields thread safe
conceptuallocked
Subscribe to unlock
76Access modifiers
conceptuallocked
Subscribe to unlock
77What is behavior of final methods
conceptuallocked
Subscribe to unlock
78What is a static field
conceptuallocked
Subscribe to unlock
79Output 104
conceptuallocked
Subscribe to unlock
80Array vs ArrayList
conceptuallocked
Subscribe to unlock
81Output 106
conceptuallocked
Subscribe to unlock
82Output 107
conceptuallocked
Subscribe to unlock
83Output 108
conceptuallocked
Subscribe to unlock
84What is a reference variable vs primitive
conceptuallocked
Subscribe to unlock
85Is String reference or primitive?
conceptuallocked
Subscribe to unlock
86Output 112
conceptuallocked
Subscribe to unlock
87What is == vs .equals
conceptuallocked
Subscribe to unlock
88Code 114
codinglocked
Subscribe to unlock
89Make non-static inner class access outer field
codinglocked
Subscribe to unlock
90What is variable shadowing
conceptuallocked
Subscribe to unlock
91Output 119
conceptuallocked
Subscribe to unlock
92Does an abstract class need to implement all interface methods
conceptuallocked
Subscribe to unlock
93Compilation 122
conceptuallocked
Subscribe to unlock
94What is early / static binding
conceptuallocked
Subscribe to unlock
95Output 124
conceptuallocked
Subscribe to unlock
96What is late/dynamic binding
conceptuallocked
Subscribe to unlock
97What is double dispatch
conceptuallocked
Subscribe to unlock
98What is a parallelism versus concurrency
conceptuallocked
Subscribe to unlock
99What is the visibility guarantee of volatile
conceptuallocked
Subscribe to unlock
100How to create a thread in java
codinglocked
Subscribe to unlock
101What does wait() do
conceptuallocked
Subscribe to unlock
102What does notify() do
conceptuallocked
Subscribe to unlock
103What does notifyAll() do
conceptuallocked
Subscribe to unlock
104Can many threads call wait on an object
conceptuallocked
Subscribe to unlock
105Calling wait() or notify() on empty or constant string objects
conceptuallocked
Subscribe to unlock
106What is spurious wakeups
conceptuallocked
Subscribe to unlock
107What is a blocking queue
conceptuallocked
Subscribe to unlock
108What is a thread pool
conceptuallocked
Subscribe to unlock
109What is ForkJoinPool
conceptuallocked
Subscribe to unlock
110Implement ExecutorService for network IO bound work
codinglocked
Subscribe to unlock
111When to use ExecutorService vs ForkJoinPool
conceptuallocked
Subscribe to unlock
112Implement ForkJoinPool for CPU bound work
codinglocked
Subscribe to unlock
113How does ExecutorService work under the hood
conceptuallocked
Subscribe to unlock
114What is declarative versus imperative programming
conceptuallocked
Subscribe to unlock
115Streams terminal vs intermediate
conceptuallocked
Subscribe to unlock
116What is ForkJoinPool.commonPool()
conceptuallocked
Subscribe to unlock
117How does parallelStream work
conceptuallocked
Subscribe to unlock
118Output 155
conceptuallocked
Subscribe to unlock
119Output 157
conceptuallocked
Subscribe to unlock
120Output 158
conceptuallocked
Subscribe to unlock
121How does ForkJoinPool work under the hood
conceptuallocked
Subscribe to unlock
122Can interfaces be instantiated
conceptuallocked
Subscribe to unlock
123How are interface methods implicitly defined
conceptuallocked
Subscribe to unlock
124How are interface fields implicitly defined
conceptuallocked
Subscribe to unlock
125Must a concrete sub-class implement all abstract interface methods
conceptuallocked
Subscribe to unlock
126Can a concrete class implement multiple interfaces
conceptuallocked
Subscribe to unlock
127Can interfaces have instance state or constructors
conceptuallocked
Subscribe to unlock
128What types of interface methods can have implementations
conceptuallocked
Subscribe to unlock
129Can abstract interface methods have method bodies
conceptuallocked
Subscribe to unlock
130Can an abstract class be instantiated
conceptuallocked
Subscribe to unlock
131Must concrete sub-class implement all abstract methods of abstract class
conceptuallocked
Subscribe to unlock
132Can abstract classes define concrete methods
conceptuallocked
Subscribe to unlock
133Can abstract classes define instance fields and constructors
conceptuallocked
Subscribe to unlock
134Methods that cannot be overridden
conceptuallocked
Subscribe to unlock
135What’s the difference between initialization and instantiation
conceptuallocked
Subscribe to unlock
136What is behavior of final classes
conceptuallocked
Subscribe to unlock
137What is behavior of final method parameters
conceptuallocked
Subscribe to unlock
138Can abstract classes have non-public abstract methods
conceptuallocked
Subscribe to unlock
139Can concrete classes have abstract methods
conceptuallocked
Subscribe to unlock
140When will an awakened thread be able to proceed
conceptuallocked
Subscribe to unlock
141What is ExecutorService
conceptuallocked
Subscribe to unlock
142Streams stateful versus stateless operations
conceptuallocked
Subscribe to unlock
143How does reduce work
conceptuallocked
Subscribe to unlock
144How does collect work
conceptuallocked
Subscribe to unlock
145Output 188
conceptuallocked
Subscribe to unlock
146Create an optional with a value and without a value
codinglocked
Subscribe to unlock
147What does Optional do
conceptuallocked
Subscribe to unlock
148What does the finally block do
conceptuallocked
Subscribe to unlock
149What does Future do
conceptuallocked
Subscribe to unlock
150What does CompletableFuture do
conceptuallocked
Subscribe to unlock
151What is a Stream and a parallelStream
conceptuallocked
Subscribe to unlock
152How does forEach work
conceptuallocked
Subscribe to unlock
153How does flatMap work
conceptuallocked
Subscribe to unlock
154How does filter work
conceptuallocked
Subscribe to unlock
155How does map work
conceptuallocked
Subscribe to unlock