Java Test - 1

Java Test - 1

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Quizes-Syntax-Master

Quizes-Syntax-Master

12th Grade

45 Qs

Java Assesment Unit 1, Unit2

Java Assesment Unit 1, Unit2

9th - 12th Grade

44 Qs

Java Easy

Java Easy

10th - 12th Grade

40 Qs

java

java

10th - 12th Grade

40 Qs

SAD2 TSA1

SAD2 TSA1

9th - 12th Grade

44 Qs

ข้อสอบปลายภาค JAVA

ข้อสอบปลายภาค JAVA

12th Grade

40 Qs

Quiz PBGTM Kelas XI

Quiz PBGTM Kelas XI

11th Grade

35 Qs

Basic Java Concepts

Basic Java Concepts

11th Grade

45 Qs

Java Test - 1

Java Test - 1

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Vikas Bandaru

Used 5+ times

FREE Resource

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?
int arrayName[];
int[] arrayName;
int arrayName;
Both A and B

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?
try
catch
throw
All of the above

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?
public static int myMethod()
static public int myMethod()
public int static myMethod()
All of the above

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a primitive data type in Java?
int
double
boolean
String

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?