Search Header Logo

Java Classes

Authored by Thomas Martinez

Computers

University

Java Classes
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which one this keywords are used to create a class in java

class

struct

int

none of the avove

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This is a general structure a method.

<Returnvalue type> <Method Name> (argument / s)

<Modifier> < type> <Method Name> (parameter / s)

public static void main (String[ ] args)

<Method Name> (parameter)

3.

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()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TextBook English=new Textbook();

In the above snippet, TextBook is a _______.

Object

Data member

Member function

Class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The process of hiding the implementation details from the user is called

Abstraction

Polymorphism

Inheritance

Encapsulation

6.

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

7.

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

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?