Question: Questions are based on JAVA: 1. Which of the following statements is true concerning a class. Select one: In a class, fields can ONLY be
Questions are based on JAVA:
1. Which of the following statements is true concerning a class.
Select one:
In a class, fields can ONLY be user-defined types
In a class, fields can ONLY be primitive data types or existing java types (From existing java classes)
In a class, fields can be primitive data types, existing java types, or user-defined types
In a class, fields can ONLY be primitive data types such as int , float , etc
2. Which of the following statements are false about classes?
A. a concrete class does not have to define all of the abstract methods that it inherits from an abstract class.
B. a final class can have instances
C. a final class can be extended.
D. a final class can be implemented
E. an abstract class cannot be inherited
F. an abstract class can be extended
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
