Search Header Logo

OOP with Java

Authored by RR14CS001 VEERASINGH

Computers

University

Used 2+ times

OOP with Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

What is the use of final keyword in Java?

When a class is made final, a subclass of it can not be created.

When a method is final, it can not be overridden.

When a variable is final, it can be assigned value only once.

All of the above

2.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

Size of int in Java is

8 bits

16 bits

32 bits

48 bits

3.

MULTIPLE SELECT QUESTION

2 mins • 10 pts

When is the object created with new keyword?

At compile time

At run time

Depends on the code

At execution time

4.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

Identify the corrected definition of a package.

A package is a collection of editing tools

A package is a collection of classes

A package is a collection of classes and interfaces

A package is a collection of interfaces

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Java is a platform independent programming language

True

False

6.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is a correct difference between print() and println()?

print() prints the output and move to new line, println() prints the output and stays on same line

print() prints the output and stays on same line, println() prints the output and move to new line

None of the given

Both of the given

7.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is meaning * in import statement?

To import selected classes from a package

To import all classes from a package

To import all classes from a package and multiply it

None of the given

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers