A. To avoid having to declare variables.
B. To refer to a class without using prefixes.
C. To avoid calling methods.
D. To import the images you want to use.
MC3-8. A constructor is used to…
A. Free memory.
B. Initialize a newly created object.
C. Import packages
D. Create a JVM for applets.
MC3-10. Servlets are typically used for..
A. Creating graphics.
B. Extending a web server by providing dynamic web content.
C. Storing information in applets
D. Loading buttons and menus.
MC4-2. What is the nature of data typing in the Java programming language?
A. Strongly typed
B. Weakly typed
C. Untyped
MC4-4. When you use the new keyword to create an object, where is it created?
A. heap
B. Garbage collector
C. Queue
D. Stack
MC4-6. An overridden method can be in the same class.
A. True
B. False
MC4-8. How do you force the garbage collector to run?
A. Call System.gc()
B. Call Runtime.gc()
C. Either A or B
D. There is nothing you can do
MC4-10. What’s printed when the following program is executed: class PrintMe{