op2 Flashcards
(76 cards)
Java provides support for functional programming expressions.
True
Java supports multiple inheritance.
False
Java does not support pointer arithmetic on its references.
True
Variables declared as static can only be assigned a value once.
False
Java supports use of varargs.
True
A serialized object representation in Java contains the object data and metadata (e.g., threads) and its class file.
False
Upon creation of a Thread object, its run() method is immediately started.
False
After the run() method of a Thread object is complete, the Thread object is automatically deleted by the garbage collector.
False
A new Thread object must be used each time a runnable code is to be started.
True
The execution order of Java threads may be hard to predict.
True
The execution order of Java threads is deterministic.
False
Java objects by default comprise a single read lock, which can be upgraded to a write lock.
False
Java objects by default comprise a single read lock, which is used for locking synchronized code.
True
If a thread T wants to access synchronized code of an object which is already locked by another thread U, the thread T is put to sleep and put into a waiting queue.
False
Runnable is an interface to implement a run() method and used for Java threads.
True
After the run() method of a thread object is complete, the thread object continues to exist.
True
The run() method of a thread object can be invoked more than once.
False
The Java runtime environment resumes blocked threads in order of their waiting time.
False
JavaFX bindings define constraints for the layout of UI elements.
False
Stage objects in JavaFX are windows which can host UI elements.
False
JavaFX supports the observer design pattern.
True
Access to JavaFX elements like labels of buttons can be done by any thread of a Java program.
False
The Java ServerSocket class is used to create TCP sockets.
True
The Java ServerSocket class is used to create UDP or TCP sockets.
False