Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me with these Java questions? Thank you Multiple choice How many of the followings are true? I: You can only have abstract

Can someone help me with these Java questions? Thank you

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Multiple choice How many of the followings are true? I: You can only have abstract methods in abstract class II: Keywords like super and this can only be used in instance method and not static methods Ill: If a class you wrote doesn't extends other classes, it means the the class is parent class of 1. all and doesn't inherit any methods IV: If you have an @Override tag on a method that doesn't override anything, java will give you a warning but still compiles your code A. 1 B. 2 D. 4 2. How many of the followings are true? I: concrete classes can extend abstract classes Il: abstract classes can extend concrete classes IlIl: subclasses of abstract classes must override all abstract methods from the super class IV:abstract classes cannot contain non-abstract methods V: the constructor of an abstract class can only be access using super, not new A: 2 B:3 C: 4 D: 5 2. What package is the Object in the standard library located? A. java.util B. java.lang C. Object.java D. Object.lang 3. If I were to override the equals method in the object class in a School class, what would the method header be? A. public boolean equals(School other) B. public void equals(School other) C. public boolean equals (Object other)

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 A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago