
Java Programming Quiz

Quiz
•
Computers
•
University
•
Hard
sumathi A
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for the main method in Java?
public static void main(String args[])
public void main(String args[])
public static void main(String[] args)
public void main(String[] args)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a Java primitive data type?
int
float
String
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int data type in Java?
4 bytes
2 bytes
8 bytes
1 byte
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to create an object in Java?
class
new
import
package
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? int x = 5; int y = 10; System.out.println(x + y);
510
15
x + y
5 + 10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to inherit a class in Java?
extends
implements
inherits
super
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the final keyword in Java?
To define a constant
To prevent method overriding
To prevent inheritance
All of the above
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
javaquizvivek

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
9 questions
Passaggio parametri

Quiz
•
University
7 questions
Quiz on Java Operators

Quiz
•
University
10 questions
Examen Unidad VI. Archivos

Quiz
•
University
10 questions
P1_APLab2Quiz_B3B4

Quiz
•
University
9 questions
Costruttori

Quiz
•
University
10 questions
На сколько ты знаешь C#

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University