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