oops

oops

Professional Development

10 Qs

quiz-placeholder

Similar activities

ความขัดแย้ง

ความขัดแย้ง

Professional Development

10 Qs

Clarinet Quiz

Clarinet Quiz

6th Grade - Professional Development

13 Qs

Mock Test

Mock Test

Professional Development

10 Qs

Lines of Defense

Lines of Defense

8th Grade - Professional Development

12 Qs

Kinh tế tài nguyên nước

Kinh tế tài nguyên nước

University - Professional Development

14 Qs

Quiz

Quiz

University - Professional Development

15 Qs

Pendalaman Unsur Intrinsik Cerpen

Pendalaman Unsur Intrinsik Cerpen

9th Grade - Professional Development

15 Qs

Basic Fire

Basic Fire

Professional Development

10 Qs

oops

oops

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Tharun AmiReddy

Used 2+ 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

Which statement about Java classes is true?

A class must always contain a main method

A class can have multiple constructors

A class can’t have private fields

An object can be created without a class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which members are not inherited by a subclass?

Constructors

Private fields

Static methods

Both (a) and (b)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

B can override A’s private methods

If class B extends class A, what is correct?

B can call A’s constructor directly

B automatically inherits all public and protected members

B cannot access A’s fields at all

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is method overriding?

a) Same method name, different return type, same class

b) Same method name, different parameters, same class

c) Same method name, same parameters, different class (inherited)

d) Different method name, same class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is runtime polymorphism?

a) Method Overloading

b) Method Overriding

c) Constructor Overloading

d) Static method hiding

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is true about interfaces?

a) A class can implement multiple interfaces

b) An interface can extend multiple interfaces

c) An interface can extend a class

d) Both a and b

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When an object is created:

a) Only methods are loaded into memory

b) Only data members are loaded into memory

c) Both data members and methods are loaded

d) Only constructor is loaded

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?