Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

13. According to a thread\'s state diagram (i.e., Fig. 26.1, pg. 1048), a thread

ID: 3538376 • Letter: 1

Question

13. According to a thread's state diagram (i.e., Fig. 26.1, pg. 1048), a thread can transition directly from "waiting" to "terminated". A) True B) False 14. Which of the following classes is the context class that provides the most features for manipulating two dimensional shapes? A) Graphics2D B) LayoutManager C) Graphics D) Graphics3D 15. Which of the following is the most granular means for thread synchronization? A) the "Lock" interface B) monitors C) synchronized methods D) synchronized blocks 16. Which of the following two thread scenarios require synchronization of shared data (Choose all that apply)? A) thread-1 write, thread-2 write B) thread-1 read, thread-2 read C) thread-1 write, thread-2 read D) thread-1 read, thread-2 write 17. Which of the following is a valid default No-argument constructor for the class "Circle" ? A) Circle (double r) {this.r = r;} B) Circle (double r) {this.r = 0;} C) Circle (double ) {r = r;} D) Circle ( ) {this.r = 0;} 18. Which of the following terms bests describes invoking a subclass method via a superclass method that has been overriden in the subclass? A) inheritance B) polymorphism C) aggregation D) attribute 19. "static import" and static methods perform the same function. A) True B) False 20. A class must always have multiple constructors A) True B) False

Explanation / Answer

13)True

14)Graphics2D

15) the "Lock" interface

16) thread-1 read, thread-2 read and thread-1 write, thread-2 read

17) Circle ( ) {this.r = 0;}

18) polymorphism

19) False

20) True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote