CODEBURST : JAVA EDITION

CODEBURST : JAVA EDITION

University

20 Qs

quiz-placeholder

Similar activities

DAY 41 WORKSHEET ITI (Building Rules & Byelaws)

DAY 41 WORKSHEET ITI (Building Rules & Byelaws)

1st Grade - University

15 Qs

Cybersecurity Fundamentals Assessment

Cybersecurity Fundamentals Assessment

University

25 Qs

Hackharbor 3.0 Day 4:Tech

Hackharbor 3.0 Day 4:Tech

University

20 Qs

C programming Basics

C programming Basics

University

20 Qs

Quiz T2_Malaysia Practices on Sustainability

Quiz T2_Malaysia Practices on Sustainability

University

15 Qs

Quizz ISAA 2025

Quizz ISAA 2025

1st Grade - University

20 Qs

Cloud Computing Unit 1

Cloud Computing Unit 1

University

20 Qs

Calgary's Shaganappi Bridge

Calgary's Shaganappi Bridge

10th Grade - University

20 Qs

CODEBURST : JAVA EDITION

CODEBURST : JAVA EDITION

Assessment

Quiz

Engineering

University

Hard

Created by

HARI CHARAN REDDY YALLA

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following correctly overrides the `equals` method of the `Object` class?

public boolean equals(Object obj)
public void equals(Object obj)
private boolean equals(Object obj)
public boolean equals(MyClass obj)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which exception is thrown when a thread is waiting, sleeping, or occupied and the thread is interrupted?

InterruptedException
IllegalThreadStateException
IOException
TimeoutException

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

String str = null;

System.out.println(str + "abc");

nullabc
abc
Compile time error
NullPointerException

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of compiling and running this code?

int x = 5;

System.out.println(x++ + ++x);

11
12
10
13

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to restrict a class from being subclassed?

static
abstract
final
protected

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method must be implemented when a class implements the `Runnable` interface?

start()
run()
execute()
init()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to prevent method overriding?

final
static
private
abstract

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?