1) How are thread priorities and thread scheduling related? a. they aren't b. it depends on the thread-scheduling algorithm used to implement the JVM c. thread priority is specified when a thread is to be excuted next. d. thread priority is used to determing the next thread to execute from the waiting thread pool.
2) java_g is used for which of the following? a. executing a class with optimization turned off. b. using the jdb tool. c. compiling the specified source without optimization. d. a and b. 3) the JVM specification defines the process by which unused memory resources are collected and put onto the heap of resues a. true b. false
4) which is not the method of java.lang.Object a. wait() b. equals(object) c. getHashcode() d. notify() 5) java.lang.Thread utilizes which of the following methods to relinquish the thread instance's processing slot to another thread? a. sleep() b. wait() c. notify()
6) java_w performs which of the following? a. executes a specified class b. executes a specified class without window optimization c. executes a specified class in its own separate window d. execites a specified class without an associated console window.
1) b. Higher priority stuff is usually run first, or gets more CPU time, but it depends on the implementation. 2) What is java_g ?? I didn't see anything about this on the exam. 3) false. Garbage collection might have some rules in the JVM (I don't really know), but the actual implementation can varry a lot. 4) c. Instead of getHashcode(), it's hashcode(). 5) a. sleep() is the only method in the list that is a member of Thread. 6) Never heard of java_w