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