Search Header Logo

Java

Authored by Milan Jasani

Computers

University

Used 42+ times

Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these keywords is used to define packages in Java?

pkg
Pkg
package
Package

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A Package is a collection of

classes
interfaces
editing tools
classes and interfaces

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

in java multi-threading, a thread can be created by

Extending thread Class
Implementing Runnable interface
Using Both
None

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these keywords is not a part of exception handling?

try
finally
thrown
catch

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is called internally by Thread start() method?

execute()
run()
launch()
main()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these keywords must be used to handle the exception thrown by try block in some rational manner?

try
finally
thrown
catch

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

Public
Protected
No Modifier
All of the mentioned

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?