Java runs on _______.
What is the difference between private and public functions ?
What is the proper way to declare a variable ?
What will be the value of "num" after the following statements?...
What is the role of the constructor?
If you want your conditional to depend on two conditions BOTH being...
What is the main function of any variable ?
Which of the following means that in order for the conditional to...
What is a loop ?
The last value in an array called ar can be found at index:
What loop will display each of the numbers in this array on a separate...
What is an assignment statement ?
Which one needs a web page to run
Synchronized is a keyword to tell a Thread to grab an Object lock...
The following prototype shows that a Cylinder subclass is derived from...
How to define a JButton with the caption test?
Methods that are marked protected can be called in any subclass of...
Primitive datatypes are allocated on a stack.
What is an Applet ?
Can you compare a boolean to an integer?
What is the keyword used in java to create an object?
What would display from the following statements? int [ ] nums =...
With inheritance, a derived subclass object can directly access any
The methods wait(), notify() and notifyAll() in Object need to be...
If we declare int [ ] ar = {1,2,3,4,5,6}; The size of array ar is:
What's the difference between an Applet and an application ?
An abstract class can have non-abstract methods.
Java keywords are written in lowercase as well as uppercase.
The default statement of a switch is always executed.
Class B inherits from Class A, what cannot be said:
Inner classes can be defined within methods.
What is a member of a class
A class is...
A null reference may be used to access a static variable or method.
Following code will result in: int num = 6.7;
Following code will result in: float num = 5/0;
Following code will result in: int a1 = 5; double a2 = (float)a1;
What displays from the following statements? String word =...
In a 'for' loop, what section of the loop is not included in the...
If none of the private/protected/public is specified for a member,...
Which is not a part of defining an object?
Which one is not correct?
Following code will result in: class A { public static void...
A class can be transient
How can you prevent a member variable from becoming serialized?
What is essential in making sure that your loop is not infinite ?
Integer a = new Integer(2); Integer b = new Integer(2); What happens...
Following code will result in: class A { public static void...
Which is NOT a section of all types of loops ?
Native methods can be 'abstract'
A class cannot be declared:
If class A implements an interface does it need to implement all...
Following code will result in: class A { int x = 1; public static...
What is an instanceof?
Following code will result in: int num = 8/0;
What does AWT stands for ?
Which package do you need to use widgets such as JApplet, JFrame,...
What is the correct syntax for java main method?
Which of the following is not a Java keyword?