Question: 1)Give a concise definition of abstract data type. Use the definition from class. 2)Briefly describe the differences between a stack and a queue. 3)Briefly describe
1)Give a concise definition of abstract data type. Use the definition from class.
2)Briefly describe the differences between a stack and a queue.
3)Briefly describe what a final class and what a final method are.
4)Give a concise definition of a method signature. What is the method signature of the
toString and equals methods from the Object class?
5)Briefly describe the differences between the is-a and has-a relationship of classes.
6)Briefly describe the difference between an abstract class and a concrete class.
7)Briefly describe the differences between an abstract class and an interface.
8)Briefly describe the similarities between an abstract class and an interface.
9)Briefly explain how abstract classes and abstract methods are related to each other.
10)If a class implements the Comparable interface but does not override the compareTo method, what can be said about the class?
11)Explain why a class cannot be both abstract and final.
12)Briefly describe the differences between method overloading and method overriding.
13)What is super in Java?
140Briefly describe the use of super in a constructor.
15)In a method body, what is this and what can you do with it?
16)Java provides eight primitive wrapper classes. Explain what they are.
17)Can a Java class have zero constructors? (Explain yes or no.)
18)Explain the difference between an Error, Exception and RuntimeException.
19)Explain what checked and unchecked exceptions are.
20)Where is the throws keyword used in Java?
21)What is @Override?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
