It is created for Beginners in Java. This is to test the knowledge of any Java Developer wannabe.
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
Rate this question:
Description
Methods
Associations with other objects
Name
Rate this question:
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
Rate this question:
An attribute
A method
Attribute or method
A sub-class
Rate this question:
An object
An executable piece of code
An abstract definition of an object
A varibale
Rate this question:
Javax.swing
Javax.gui
Java.awt
Java.swing
Rate this question:
A Java Application
A Java Stand-Alone Application
A Java Applet
A Java Class
Rate this question:
JButton aButton('test');
JButton aButton=new JButton("test");
JButton aButton=new JButton('test');
JButton("test") aButton;
Rate this question:
0
1
Ar.length
Ar.length - 1
Rate this question:
6
2+4
1+3
4
Rate this question:
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]);
Rate this question:
Ab
Ac
Ace
Bd
Rate this question:
0
5
6
7
Rate this question:
Class Circle extends Cylinder
Class Cylinder derived Circle
Class Cylinder extends Circle
Class Circle derived Cylinder
Rate this question:
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
Rate this question:
Create an instance of a class (an object)
Create names for methods
To create some type of change in the state of an object
Rate this question:
Static
Private
Protected
Rate this question:
Compilation error
Runtime error
Num being 6.7
Num being 6
Rate this question:
Compilation error
Runtime error
No errors
Runtime Exception
Rate this question:
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
Rate this question:
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
Rate this question:
True
False
Rate this question:
Compilation error
Runtime Error
Runtime Exception
Output of x is 1
Rate this question:
Compile error
Runtime Exception
No error
No Output
Rate this question:
Compiler error
Runtime Exception
No errors
Output is B
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
A methods in object
An operator and keyword
An operator only
A keyword only
Rate this question:
True
False
Rate this question:
Yes
No
Rate this question:
Yes, always.
No, not when A is abstract
Rate this question:
Compiler error
Runtime Exception
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
By marking it private
By marking it volatile
By marking it transient
You can not.
Rate this question:
This
New
Sync
New()
Rate this question:
Public void main(String[] args)
Public static void main(string[] args)
Public static void main()
None of the above
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Main
Try
Integer
String
Rate this question:
A Java program that does not run through a web browser
A Java program that is run through a web browser
An object-oriented programming language
An interactive website
Rate this question:
Windows
Unix/Linux
Mac
All of the Above
Rate this question:
None of the above.
Applets are run over the web.
Applets can paint words, applications cannot.
An application is only available on Windows
Rate this question:
To add numbers together
To keep track of data in the memory of the computer
To print words on the screen
To write Java codes
Rate this question:
VariableName variableType;
VariableName;
VariableType;
VariableType variableName;
Rate this question:
Quiz Review Timeline (Updated): Jun 16, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.