Search Header Logo

Java variables

Authored by ALDO STALIN J L

Computers

University

Used 95+ times

Java variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

0

Garbage value

Compilation error

Runtime error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

0

Garbage value

Compilation error

Runtime error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The instance variables in b are given the same values as a

The instance variables in a are given the same values as b

a and b are considered to be the same object

None of the mentioned options

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A single class can have

only one instance

two instances

any number of instances

None of the mentioned options

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static means

Class Level

Object level

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Main method is static because to execute main method without creating object By JVM

Yes

No

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is the ouput of the following code?

x=10 x=10

x=10 x=20

x=30 x=30

x=30 x=20

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