Java

Java

Professional Development

10 Qs

quiz-placeholder

Similar activities

SENZ AIOT SAVANTS - JV & JS

SENZ AIOT SAVANTS - JV & JS

Professional Development

10 Qs

Android Fundamentals - Day 1: Java

Android Fundamentals - Day 1: Java

University - Professional Development

10 Qs

Day 1 - Basics of Java

Day 1 - Basics of Java

Professional Development

14 Qs

Java Quiz#3(Local Variables)

Java Quiz#3(Local Variables)

Professional Development

10 Qs

CIT JULY 2022

CIT JULY 2022

Professional Development

10 Qs

Java SE: Programming I

Java SE: Programming I

Professional Development

10 Qs

Java@

Java@

University - Professional Development

6 Qs

7/2/2024

7/2/2024

Professional Development

10 Qs

Java

Java

Assessment

Quiz

Computers

Professional Development

Hard

Created by

REVATHI R

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the `public` access modifier in Java?

To make a class or method private

To make a class or method accessible from any other class

To make a class or method protected

To make a class or method default

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid Java data type?

Int

Float

Double

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between `==` and `.equals()` in Java?

`==` checks for reference equality, while `.equals()` checks for value equality

`==` checks for value equality, while `.equals()` checks for reference equality

`==` is used for primitive types, while `.equals()` is used for objects

`==` is used for objects, while `.equals()` is used for primitive types

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `finally` block in a Java `try-catch` statement?

To catch and handle exceptions

To provide an alternative code path if an exception occurs

To execute code regardless of whether an exception occurs or not

To skip over code in the `try` block

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a type of Java exception?

Checked exception

Unchecked Exception

Runtime Exception

All of the above

6.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

super keyword in java is used to ..............

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `abstract` keyword in Java?

To define an abstract class

To define a concrete class

To define an interface

To define a method

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?