Challenge your Java knowledge with this trivia! Featuring tough questions on object-oriented programming, class accessibility, and object definitions, this quiz tests your understanding and skills in Java, enhancing your programming acumen.
Whatever programmer specifies
1
0
Size of array
Rate this question:
Class Circle extends Cylinder
Class Cylinder derived Circle
Class Cylinder extends Circle
Class Circle derived Cylinder
Rate this question:
A group of students in a class
An object definition, containing the data and function elements necessary to create an object
An action for a program
Rate this question:
A thing
An instance of a class
Something you wear
Rate this question:
Int
Double
String
Boolean
Rate this question:
Int
Double
Boolean
String
Rate this question:
Int
Double
Char
String
Rate this question:
Windows
Unix/Linux
Mac
All of the Above
Rate this question:
A new type of Applet.
A segment of code to be run a specified amount of times
A segment of code to be run infinite times
A segment of code to be run once
Rate this question:
Double
Char
Boolean
Int
Rate this question:
0
1
Ar.length
Ar.length - 1
Rate this question:
Faculty[] faculties={new Person(), new Staff(), new Student()};
Staff[] staff={new Person(), new Faculty(), new Student()};
Person[] persons={new Faculty(), new Staff(), new Student()};
Rate this question:
Int
Double
String
Boolean
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:
True
False
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:
True
False
Rate this question:
&
&&
|
||
Rate this question:
True
False
Rate this question:
Public functions are free, you have to buy private ones
Public functions are the only ones you can download
Public functions can be used by anyone, private can only be used by other code in the class you are writing
Public functions can’t be used
Rate this question:
Description
Methods
Associations with other objects
Name
Rate this question:
System.out.print("The number is : " + nums[0]);
System.out.print("The number is : " + nums[1]);
System.out.print("The number is : " + nums[8]);
System.out.print("The number is : " + nums);
Rate this question:
4 bits
7 bits
8 bits
16 bits
Rate this question:
Yes
No
Rate this question:
This
New
Sync
New()
Rate this question:
Adding a number to an int
Assigning a multiplication
Assigning a name to a variable
Assigning a value to a variable
Rate this question:
9
1
0
Num
Rate this question:
0
5
6
7
Rate this question:
VariableName variableType;
VariableName;
VariableType;
VariableType variableName;
Rate this question:
String
Int
Char
Double
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:
True
False
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:
Graphical User Interface
Gimme Ur Internet
Grand User Interface
Graphical Useful Interface
Rate this question:
If ((x < 3) && (y > 4))
If (x < 3 y >= 4)
If ((x < 3) || (y > = 4))
If ((x > 3) || (y < = 4))
Rate this question:
JButton aButton('test');
JButton aButton=new JButton("test");
JButton aButton=new JButton('test');
JButton("test") aButton;
Rate this question:
An object
An executable piece of code
An abstract definition of an object
A varibale
Rate this question:
6
2+4
1+3
4
Rate this question:
Ab
Ac
Ace
Bd
Rate this question:
Char
String
Double
Boolean
Rate this question:
Double
Boolean
String
Int
Rate this question:
Initialization
Loop Body
Test statement
The word "while"
Rate this question:
A Java Application
A Java Stand-Alone Application
A Java Applet
A Java Class
Rate this question:
2
3
4
5
Rate this question:
True
False
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:
A methods in object
An operator and keyword
An operator only
A keyword only
Rate this question:
Main
Try
Integer
String
Rate this question:
Quiz Review Timeline (Updated): Mar 18, 2023 +
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.