Questions that I am having problems with.
This is from the Mock on The Roberts /Heller Cdrom
27.
A componet subclass that executed enableEvents()
to enable processing of a certain kind of event cannot
use an adapter as a listener for the same event.
true or false
29.
You want to modify your code so that cyan lines accumulate
on the screen rather then getting erased every time
repaint() calls update().
g.setColor(Color.cyan); Is this answer correct?
from Mughal
Which is the earliest line in the following code after
which the object created on line marked 0 will be a
canidate for being garbage collected?
( Would line 4 be the correct answer?
42.
public class Q76a9 {
static
String f() {
String a= "hello";
String b= "bye" ; 0
String c= b+ "!" ; 1
String d=b;
b=a; 2
d=a; 3
returm c; 4
}
public static void main(String args[])
{
String msg =f();
System.out.println(msg); 5
}
}
next question:
Write a Line of code that declares a variable named layout
of type layoutmanager and initializes it with a new object,
and lays out components in a grid 3 components high and
2 components wide.
another question:
Which statements , when inserted at the indicated position
will cause a runtime exception when attempting to run the program?
Class A{}
Class B extends A {}
Class C extends A {}
public class q3ae4 {
public static void main(String arg[]) {
A x = new A();
B x = new B();
C z = new C();
insert
}
}
When you answer these questions please explain a little why.
thanks
Here is a reward for you.
www.motley.com free legal mp3 hard rock
www.quake3arena.com A great game demo of q3 with bots! (AI)
www.unrealtournament.com another very cool game with bots.
exercise :
www.hammerstrength.com www.medxonline.com www.gnc.com www.superslow.com http://www.mikementzer.com/