Java Constructors Methods

Java Constructors Methods

University

10 Qs

quiz-placeholder

Similar activities

Mapeamento e Normalização BD

Mapeamento e Normalização BD

University - Professional Development

15 Qs

DB Analyzation

DB Analyzation

University

10 Qs

Classification in Machine Learning2

Classification in Machine Learning2

University

10 Qs

Quiz Pem Mobile

Quiz Pem Mobile

University

10 Qs

TPAV

TPAV

12th Grade - University

10 Qs

CSS Quiz 2

CSS Quiz 2

University - Professional Development

10 Qs

ECM3434 Business Analysis 1 - Data Modelling

ECM3434 Business Analysis 1 - Data Modelling

University

10 Qs

Data Mining - Classification Mining

Data Mining - Classification Mining

University

15 Qs

Java Constructors Methods

Java Constructors Methods

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

A Vijay Kumar

Used 484+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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