Java Quiz (Set 8) Java Quiz (Set 8) 1 / 10 Does garbage collection guarantee that a program will not run out of memory? True. False. 2 / 10 What is synchronization? Synchronization is the capability to control the access of multiple threads to shared resources. Synchronization is the process of writing the state of an object to another object. Synchronization is the process of writing the state of an object to byte stream. None of the above. 3 / 10 What is a transient variable? A transient variable is a variable which is serialized during Serialization. A transient variable is a variable that may not be serialized during Serialization. A transient variable is a variable which is to be marked as serializable. None of the above. 4 / 10 What is Deserialization? Deserialization is the process of restoring state of an object from a byte stream. Serialization is the process of restoring state of an object from an object. Both of the above. None of the above. 5 / 10 What is Serialization? Serialization is the process of writing the state of an object to another object. Serialization is the process of writing the state of an object to a byte stream. Both of the above. None of the above. 6 / 10 What are Wrapper classes? These are classes that allow primitive types to be accessed as objects. These are classes that wraps functionality of an existing class. Both of the above. None of the above. 7 / 10 What happens when thread's sleep() method is called? Thread returns to the ready state. Thread returns to the waiting state. Thread starts running. None of the above. 8 / 10 What happens when thread's yield() method is called? Thread returns to the ready state. Thread returns to the waiting state. Thread starts running. None of the above. 9 / 10 What invokes a thread's run() method? JVM invokes the thread's run() method when the thread is initially executed. Main application running the thread. start() method of the thread class. None of the above. 10 / 10 Which is the way in which a thread can enter the waiting state? Invoke its sleep() method. invoke object's wait method. Invoke its suspend() method. All of the above. Your score isThe average score is 0% 0% Restart quiz