Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE SOLVE THIS JAVA MCQS CAREFULLY In a student grading system, objects from different classes communicate with each other. These communications are known as ____________.

PLEASE SOLVE THIS JAVA MCQS CAREFULLY

In a student grading system, objects from different classes communicate with each other. These communications are known as ____________. A. Inheritance B. Message Passing C. Polymorphism D. SMS and MMS

Which modifier is implicitly applied to all interface methods? A. protected B. public C. static D. default

Which of the following is true about an abstract method inherited into a class C? A. It must be defined in C before C can be instantiated B. It must be defined in C or C should be abstract C. If it is defined in C and it is only method in C, then C would be a non-abstract class D. All of above is true

What are valid arguments to the instanceof operator? A. any primitive type B. a class object and a class type C. boolean type only D. class types only

Which of following is/are true i. If you make any method as final, you cannot override it. True ii. If you make any class as final, you cannot extend it. True iii. If you make any method as final, it is static by default. iv. If you make any class as final, you cannot instantiate it. A. Only i and ii B. Only ii and iii C. Only iii and iv D. None is true

In a student grading system, objects from different classes communicate with each other. These communications are known as ____________. A. Inheritance B. Message Passing C. Polymorphism D. SMS and MMS

Which of following is right about abstract class a. It cannot be extended. b. The abstract class can be used to provide some implementation of the interface. c. It must have at least one abstract method. d. All of above

Suppose the class Chair extends the class Furniture. Both classes are non-abstract. Which of the following assignments are legal? I. Chair c = new Chair(); II. Furniture f = new Furniture(); III. Furniture f = new Chair(); IV. Object o = new Chair();

A. I and II only B. II and III only C. All are legal statements D. I, II and III only

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions