Java Constructors Methods

Java Constructors Methods

University

10 Qs

quiz-placeholder

Similar activities

Information Technology & Business Canvas Model

Information Technology & Business Canvas Model

University

13 Qs

Python Basic Quiz

Python Basic Quiz

11th Grade - University

10 Qs

HCI Quiz2

HCI Quiz2

University

10 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

II MCA ASP.NET ONLINE QUIZ

II MCA ASP.NET ONLINE QUIZ

University

15 Qs

BCA

BCA

University

10 Qs

Monday Week#2

Monday Week#2

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?