Java Test - 1

Java Test - 1

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

Full Networks

Full Networks

10th - 11th Grade

35 Qs

KHỐI 9 - GIỮA KÌ 1

KHỐI 9 - GIỮA KÌ 1

9th Grade

36 Qs

Quiz Bilangan dan Algoritma

Quiz Bilangan dan Algoritma

9th Grade

40 Qs

Quiz 1 EmpTech

Quiz 1 EmpTech

11th Grade

35 Qs

BTec DIT Comp3 - Revision

BTec DIT Comp3 - Revision

10th - 12th Grade

40 Qs

KOMPUTER AKUNTASI_MYOB

KOMPUTER AKUNTASI_MYOB

12th Grade

40 Qs

GCSE Computing Quiz

GCSE Computing Quiz

7th - 11th Grade

45 Qs

Mapel Perkembangan teknologi bidang TJKT

Mapel Perkembangan teknologi bidang TJKT

10th Grade

35 Qs

Java Test - 1

Java Test - 1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

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?