Java Test - 1

Java Test - 1

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

AP Computer Science A

AP Computer Science A

9th - 12th Grade

40 Qs

PTS - Informatika 11 MIA

PTS - Informatika 11 MIA

11th Grade

45 Qs

Kisi kisi soal Pemrograman Berorientasi Objek

Kisi kisi soal Pemrograman Berorientasi Objek

11th Grade

40 Qs

pascal

pascal

11th Grade

42 Qs

Python Programming

Python Programming

5th - 9th Grade

37 Qs

Intro to Java Exam Review

Intro to Java Exam Review

9th - 12th Grade

40 Qs

PBO

PBO

11th Grade

40 Qs

Topic 3 : Java Language

Topic 3 : Java Language

12th Grade

35 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?