Java Test - 1

Java Test - 1

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Ulangan Harian 1 (struktur kontrol)

Ulangan Harian 1 (struktur kontrol)

10th Grade

35 Qs

tin học 11 ôn tập cuối kì 1

tin học 11 ôn tập cuối kì 1

12th Grade

40 Qs

Unit 2 Creating Systems to Manage Information Quiz

Unit 2 Creating Systems to Manage Information Quiz

12th Grade

41 Qs

UH INFORMATIKA KLS X AK 2

UH INFORMATIKA KLS X AK 2

10th Grade

40 Qs

EmTech Quiz

EmTech Quiz

11th Grade

40 Qs

J808 1.5 Planning tools

J808 1.5 Planning tools

10th - 11th Grade

35 Qs

Computer Network

Computer Network

12th Grade - University

40 Qs

L3 Digital Technology (entry test)

L3 Digital Technology (entry test)

11th - 12th 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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?