Given the declaration : int [ ] ar = {1,2,3,4,5}; What is the value of...
The range of indices for an array always start at:
The following prototype shows that a Cylinder subclass is derived from...
Choose the best definition for a Class.
Choose the best definition of an object
Choose the appropriate data type for this value:...
Choose the appropriate data type for this value:...
Choose the appropriate data type for this value:...
Java runs on _______.
What is a loop?
Choose the appropriate data type for this field:...
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?
Synchronized is a keyword to tell a Thread to grab an Object lock...
What is an Applet?
The last value in an array called ar can be found at index:
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?
Given the declaration int [ ] nums = {8, 12, 23, 4, 15}, what...
What is the size of a Char in Java?
Can you compare a boolean to an integer?
What is the keyword used in java to create an object?
What is an assignment statement?
What will be the value of "num" after the following statements?...
Which is not a part of defining an object?
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:...
With inheritance, a derived subclass object can directly access any
Primitive datatypes are allocated on a stack.
What is the main function of any variable?
Which of the following means that in order for the conditional to...
What does GUI stand for?
How to define a JButton with the caption test?
What displays from the following statements? String word =...
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?
A class is...
What would display from the following statements? int [ ] nums =...
Which one needs a web page to run?
Given the declaration : int [ ] ar = {1,2,3,4,5}; What is the value of...
The methods wait(), notify() and notifyAll() in Object need to be...
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...
Following code will result in: int num = 6.7;
Java keywords are written in lowercase as well as uppercase.
If class A implements an interface does it need to implement all...
Which package do you need to use widgets such as JApplet, JFrame,...
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:...
Which of the following always need a Capital letter...
In a 'for' loop, what section of the loop is not included in the...
A class cannot be declared:
How can you prevent a member variable from becoming serialized?
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...
Following code will result in: class A { public static void...
What is a member of a class?
The size of a frame is set using ...
What's the difference between an Applet and an application?
The default statement of a switch is always executed.
The most common use of an array is to:
Class B inherits from Class A, what cannot be said:
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;
What is essential in making sure that your loop is not infinite?
Object-Oriented Programming means
A UML association from class A to class B means
Following code will result in: class A { public static void...
Choose the appropriate data type for this value:...
The size of an applet is set using ...
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