
Java Test - 1
Authored by Vikas Bandaru
Computers
9th - 12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to create a subclass in Java?
extends
super
this
class
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct syntax for declaring an array in Java?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to define a method that cannot be overridden in a subclass?
static
final
private
public
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to handle exceptions in Java?
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following is a valid method declaration in Java?
public void myMethod(int x, y)
public void myMethod(int x, int y)
public void myMethod(int x)
None of the above
6.
MULTIPLE SELECT QUESTION
1 min • 2 pts
Which of the following is a valid declaration of a static method in a Java class?
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a primitive data type in Java?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?