Java Deck
Cards from Java Deck
Start Spaced Repetition Session155 cards
Questions
01What is polymorphism
conceptual02Code 31
coding03Compilation 37
conceptual04What is the argument passed into a synchronized block
conceptual05What are final fields
conceptual06Cons of constants in a project-wide class
conceptuallocked
Subscribe to unlock07Best practices for organizing class constants
conceptuallocked
Subscribe to unlock08What is method binding
conceptuallocked
Subscribe to unlock09Compilation 16
conceptuallocked
Subscribe to unlock10Compilation 17
conceptuallocked
Subscribe to unlock11Compilation 18
conceptuallocked
Subscribe to unlock12Compilation 19
conceptuallocked
Subscribe to unlock13What is method overloading
conceptuallocked
Subscribe to unlock14What is included in method signature
conceptuallocked
Subscribe to unlock15What is generic type
conceptuallocked
Subscribe to unlock16Bound vs unbound type parameter
conceptuallocked
Subscribe to unlock17What is type erasure
conceptuallocked
Subscribe to unlock18What is a bridge method
conceptuallocked
Subscribe to unlock19What is reifiable vs non-reifiable
conceptuallocked
Subscribe to unlock20What does instanceof check
conceptuallocked
Subscribe to unlock21Compilation 29
conceptuallocked
Subscribe to unlock22What is an interface
conceptuallocked
Subscribe to unlock23What is a default method in an interface
conceptuallocked
Subscribe to unlock24Do classes support multiple inheritance
conceptuallocked
Subscribe to unlock25What is an abstract class
conceptuallocked
Subscribe to unlock26Keyword for a parent class
conceptuallocked
Subscribe to unlock27Code 36
codinglocked
Subscribe to unlock28What is implicitly inserted into every constructor
conceptuallocked
Subscribe to unlock29How to call another constructor in the same class
conceptuallocked
Subscribe to unlock30Compilation 41
conceptuallocked
Subscribe to unlock31Compilation 42
conceptuallocked
Subscribe to unlock32Compilation 43
conceptuallocked
Subscribe to unlock33Compilation 44
conceptuallocked
Subscribe to unlock34What does @Override do
conceptuallocked
Subscribe to unlock35Criteria for successful method overriding
conceptuallocked
Subscribe to unlock36Compilation 47
conceptuallocked
Subscribe to unlock37Compilation 48
conceptuallocked
Subscribe to unlock38Compilation 49
conceptuallocked
Subscribe to unlock39Which methods will these calls bind to
conceptuallocked
Subscribe to unlock40Effective signature 51
conceptuallocked
Subscribe to unlock41Effective signature 52
conceptuallocked
Subscribe to unlock42Compilation 53
conceptuallocked
Subscribe to unlock43How many varargs params can a method have
conceptuallocked
Subscribe to unlock44Vararg param ordering
conceptuallocked
Subscribe to unlock45What is heap pollution
conceptuallocked
Subscribe to unlock46Compilation 58
conceptuallocked
Subscribe to unlock47Compilation 59
conceptuallocked
Subscribe to unlock48What is an intrinsic / monitor lock
conceptuallocked
Subscribe to unlock49What is synchronized keyword
conceptuallocked
Subscribe to unlock50Synchronized non-static method on two instance objects
conceptuallocked
Subscribe to unlock51Synchronized static method on two instance objects
conceptuallocked
Subscribe to unlock52What monitor object is acquired for instance vs static synchronized methods
conceptuallocked
Subscribe to unlock53What is a monitor object
conceptuallocked
Subscribe to unlock54How to interleave access to two different fields using synchronization
conceptuallocked
Subscribe to unlock55What is reentrant synchronization
conceptuallocked
Subscribe to unlock56What is time slicing
conceptuallocked
Subscribe to unlock57What is a process
conceptuallocked
Subscribe to unlock58What is a thread
conceptuallocked
Subscribe to unlock59Is count++ atomic
conceptuallocked
Subscribe to unlock60What is liveness
conceptuallocked
Subscribe to unlock61Where are local variables and references stored
conceptuallocked
Subscribe to unlock62Where are objects stored
conceptuallocked
Subscribe to unlock63What is update / memory visibility
conceptuallocked
Subscribe to unlock64What does volatile do in java
conceptuallocked
Subscribe to unlock65What is CPU / instruction reordering in java
conceptuallocked
Subscribe to unlock66What is the happens-before guarantee of volatile
conceptuallocked
Subscribe to unlock67What is the visibility guarantee of a synchronized block
conceptuallocked
Subscribe to unlock68What is the happens-before guarantee of synchronized block
conceptuallocked
Subscribe to unlock69What is piggybacking with synchronization
conceptuallocked
Subscribe to unlock70Compilation 87
conceptuallocked
Subscribe to unlock71What is a static class in java
conceptuallocked
Subscribe to unlock72Code 89
codinglocked
Subscribe to unlock73Code 90
codinglocked
Subscribe to unlock74What is an enum constructor
conceptuallocked
Subscribe to unlock75Why is initialization of static fields thread safe
conceptuallocked
Subscribe to unlock76Access modifiers
conceptuallocked
Subscribe to unlock77What is behavior of final methods
conceptuallocked
Subscribe to unlock78What is a static field
conceptuallocked
Subscribe to unlock79Output 104
conceptuallocked
Subscribe to unlock80Array vs ArrayList
conceptuallocked
Subscribe to unlock81Output 106
conceptuallocked
Subscribe to unlock82Output 107
conceptuallocked
Subscribe to unlock83Output 108
conceptuallocked
Subscribe to unlock84What is a reference variable vs primitive
conceptuallocked
Subscribe to unlock85Is String reference or primitive?
conceptuallocked
Subscribe to unlock86Output 112
conceptuallocked
Subscribe to unlock87What is == vs .equals
conceptuallocked
Subscribe to unlock88Code 114
codinglocked
Subscribe to unlock89Make non-static inner class access outer field
codinglocked
Subscribe to unlock90What is variable shadowing
conceptuallocked
Subscribe to unlock91Output 119
conceptuallocked
Subscribe to unlock92Does an abstract class need to implement all interface methods
conceptuallocked
Subscribe to unlock93Compilation 122
conceptuallocked
Subscribe to unlock94What is early / static binding
conceptuallocked
Subscribe to unlock95Output 124
conceptuallocked
Subscribe to unlock96What is late/dynamic binding
conceptuallocked
Subscribe to unlock97What is double dispatch
conceptuallocked
Subscribe to unlock98What is a parallelism versus concurrency
conceptuallocked
Subscribe to unlock99What is the visibility guarantee of volatile
conceptuallocked
Subscribe to unlock100How to create a thread in java
codinglocked
Subscribe to unlock101What does wait() do
conceptuallocked
Subscribe to unlock102What does notify() do
conceptuallocked
Subscribe to unlock103What does notifyAll() do
conceptuallocked
Subscribe to unlock104Can many threads call wait on an object
conceptuallocked
Subscribe to unlock105Calling wait() or notify() on empty or constant string objects
conceptuallocked
Subscribe to unlock106What is spurious wakeups
conceptuallocked
Subscribe to unlock107What is a blocking queue
conceptuallocked
Subscribe to unlock108What is a thread pool
conceptuallocked
Subscribe to unlock109What is ForkJoinPool
conceptuallocked
Subscribe to unlock110Implement ExecutorService for network IO bound work
codinglocked
Subscribe to unlock111When to use ExecutorService vs ForkJoinPool
conceptuallocked
Subscribe to unlock112Implement ForkJoinPool for CPU bound work
codinglocked
Subscribe to unlock113How does ExecutorService work under the hood
conceptuallocked
Subscribe to unlock114What is declarative versus imperative programming
conceptuallocked
Subscribe to unlock115Streams terminal vs intermediate
conceptuallocked
Subscribe to unlock116What is ForkJoinPool.commonPool()
conceptuallocked
Subscribe to unlock117How does parallelStream work
conceptuallocked
Subscribe to unlock118Output 155
conceptuallocked
Subscribe to unlock119Output 157
conceptuallocked
Subscribe to unlock120Output 158
conceptuallocked
Subscribe to unlock121How does ForkJoinPool work under the hood
conceptuallocked
Subscribe to unlock122Can interfaces be instantiated
conceptuallocked
Subscribe to unlock123How are interface methods implicitly defined
conceptuallocked
Subscribe to unlock124How are interface fields implicitly defined
conceptuallocked
Subscribe to unlock125Must a concrete sub-class implement all abstract interface methods
conceptuallocked
Subscribe to unlock126Can a concrete class implement multiple interfaces
conceptuallocked
Subscribe to unlock127Can interfaces have instance state or constructors
conceptuallocked
Subscribe to unlock128What types of interface methods can have implementations
conceptuallocked
Subscribe to unlock129Can abstract interface methods have method bodies
conceptuallocked
Subscribe to unlock130Can an abstract class be instantiated
conceptuallocked
Subscribe to unlock131Must concrete sub-class implement all abstract methods of abstract class
conceptuallocked
Subscribe to unlock132Can abstract classes define concrete methods
conceptuallocked
Subscribe to unlock133Can abstract classes define instance fields and constructors
conceptuallocked
Subscribe to unlock134Methods that cannot be overridden
conceptuallocked
Subscribe to unlock135What’s the difference between initialization and instantiation
conceptuallocked
Subscribe to unlock136What is behavior of final classes
conceptuallocked
Subscribe to unlock137What is behavior of final method parameters
conceptuallocked
Subscribe to unlock138Can abstract classes have non-public abstract methods
conceptuallocked
Subscribe to unlock139Can concrete classes have abstract methods
conceptuallocked
Subscribe to unlock140When will an awakened thread be able to proceed
conceptuallocked
Subscribe to unlock141What is ExecutorService
conceptuallocked
Subscribe to unlock142Streams stateful versus stateless operations
conceptuallocked
Subscribe to unlock143How does reduce work
conceptuallocked
Subscribe to unlock144How does collect work
conceptuallocked
Subscribe to unlock145Output 188
conceptuallocked
Subscribe to unlock146Create an optional with a value and without a value
codinglocked
Subscribe to unlock147What does Optional do
conceptuallocked
Subscribe to unlock148What does the finally block do
conceptuallocked
Subscribe to unlock149What does Future do
conceptuallocked
Subscribe to unlock150What does CompletableFuture do
conceptuallocked
Subscribe to unlock151What is a Stream and a parallelStream
conceptuallocked
Subscribe to unlock152How does forEach work
conceptuallocked
Subscribe to unlock153How does flatMap work
conceptuallocked
Subscribe to unlock154How does filter work
conceptuallocked
Subscribe to unlock155How does map work
conceptuallocked
Subscribe to unlock