Java Constructors Methods

Java Constructors Methods

University

10 Qs

quiz-placeholder

Similar activities

Динамические библиотеки

Динамические библиотеки

University

10 Qs

Design Patterns-Introduction-Session-1

Design Patterns-Introduction-Session-1

University

11 Qs

OOP Review 2

OOP Review 2

University

10 Qs

Stings, Cloning and ArrayList

Stings, Cloning and ArrayList

University

10 Qs

Java Control Flow Statements

Java Control Flow Statements

University

10 Qs

funWithJava

funWithJava

University

10 Qs

Java Operators

Java Operators

University

14 Qs

Talent Next Java MCQ-1

Talent Next Java MCQ-1

University

10 Qs

Java Constructors Methods

Java Constructors Methods

Assessment

Quiz

Computers

University

Hard

Created by

A Vijay Kumar

Used 483+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many constructors does this Java class have?

0

1

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the job of a Java class's fields?

Used for communication with an object of this class type

Used for calculations when an object is constructed

Allows for import statements in this class

Store the state of an object of this class type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What of the following is the default value of an instance variable?

null

0

Depends upon the type of variable

Not assigned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we have multiple classes in same java file?

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of Constructors?

int

float

void

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this statement is incorrect?

All object of a class are allotted memory for the all the variables defined in the class

If a function is defined public it can be accessed by object of other class by inheritance.

main() method must be made public

All object of a class are allotted memory for the methods defined in the class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This is an example of a non-return method.

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?