Java Flashcards

Java Flashcards

University

16 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

University

15 Qs

Fun with ML

Fun with ML

10th Grade - Professional Development

20 Qs

Algoritma Remedial RPL

Algoritma Remedial RPL

University

20 Qs

Arduino ม.2 และ ม.3 ฉบับที่ 2

Arduino ม.2 และ ม.3 ฉบับที่ 2

KG - Professional Development

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Programación Orientada a Objetos

Programación Orientada a Objetos

University

11 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Java Flashcards

Java Flashcards

Assessment

Quiz

Computers

University

Hard

Created by

Gaurav Singh

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Java access modifier?

public

private

internal

protected

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a boolean variable in Java if it’s an instance variable?

true

false

null

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to prevent a class from being inherited?

static

final

abstract

private

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a Java char?

1 byte

2 bytes

4 bytes

Depends on OS

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these exceptions is unchecked in Java?

IOException

SQLException

NullPointerException

FileNotFoundException

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection class maintains insertion order in Java?

HashMap

HashSet

LinkedHashMap

TreeMap

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you try to inherit from a final class?

Compile-time error

Runtime error

The subclass will override it

It will work normally

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?