It is created for Beginners in Java. This is to test the knowledge of any Java Developer wannabe.
Is accessible publicly
Is only accessible by other classes of the same package
Is only accessible from within the class
Is accessible by the class and its subclasses
A class needs to be instantiated as an object before being used
An objects exists in memory in run time
Class and object are just different names for the same thing
An object is a variable, where its type is the class used to declare the variable
Description
Methods
Associations with other objects
Name
B is a sub-class of A
A is a super-class of B
B has access to private members of A
B has access to protected members of A
An attribute
A method
Attribute or method
A sub-class
An object
An executable piece of code
An abstract definition of an object
A varibale
Javax.swing
Javax.gui
Java.awt
Java.swing
A Java Application
A Java Stand-Alone Application
A Java Applet
A Java Class
JButton aButton('test');
JButton aButton=new JButton("test");
JButton aButton=new JButton('test');
JButton("test") aButton;
0
1
Ar.length
Ar.length - 1
6
2+4
1+3
4
For (int i =0; i < 3; i++) System.out.println( nums[i]);
For (i = 1; i
For (i = 0; i
For (i = 1; i < 3; i++) System.out.println(nums[i]);
Ab
Ac
Ace
Bd
0
5
6
7
Class Circle extends Cylinder
Class Cylinder derived Circle
Class Cylinder extends Circle
Class Circle derived Cylinder
Public or private superclass member
Private superclass member
Public superclass member (and protected subclass members if it's in the same package)
Protected, public or private superclass member
Create an instance of a class (an object)
Create names for methods
To create some type of change in the state of an object
Static
Private
Protected
Compilation error
Runtime error
Num being 6.7
Num being 6
Compilation error
Runtime error
No errors
Runtime Exception
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
True
False
Compilation error
Runtime Error
Runtime Exception
Output of x is 1
Compile error
Runtime Exception
No error
No Output
Wait!
Here's an interesting quiz for you.