Search Header Logo

Java Object Creation and Classes

Authored by ALDO STALIN J L

Computers

University

Used 375+ times

Java Object Creation and Classes
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the statement  int x; What is x ?

a variable
a data type
a class
an object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the statement 
 Bank tom = new Bank(5000.0);
Which is the class?

Bank
tom
new
5000.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the statement 
Bank tom = new Bank(5000.0);

Which is the object?

Bank
tom
new
5000.0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the statement  int x; What is int ?

a variable
a data type
a class
an object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many objects can be made from a class?  

None, you make classes from objects
one
As many as you want
All of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The ____ method executes first in an application, regardless of where you physically place it within its class.

execute()
main()
start()
run()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which package is imported implicitly?

java.applet

java.util

java.lang

java.io

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