Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A) Which of the following statements are true? 1. A Java class can implement only one Java interface 2. A concrete class can extend only

A) Which of the following statements are true?

1. A Java class can implement only one Java interface 2. A concrete class can extend only one parent class, but an abstract class can extend any number of parent classes 3. A Java class can only extend one parent class 4. A Java class can implement any number of Java interfaces

B) Which of the following can appear in a concrete class?

1. constants (finals) 2. abstract methods 3. variables 4. code to implement methods

C) Which of the following can appear in an abstract class?

1. method signatures for public methods 2. method signatures for private methods 3. code to implement methods 4. constants (finals) 5. variables

D) Which of the following can appear in a Java interface?

1. method signatures for private methods 2. method signatures for public methods 3. variables 4. constants (finals) 5. code to implement methods

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

Students also viewed these Databases questions

Question

Why was progress toward a solution to Greece's problems so slow?

Answered: 1 week ago

Question

4. Devise an interview strategy from the interviewers point of view

Answered: 1 week ago