How do you differentiate abstract class from interface?
Answer / Vivekanand Sharma
"An abstract class in Java can have instance variables, constructors, and non-abstract methods in addition to abstract methods. An interface, on the other hand, only contains constants (variables with final keyword) and abstract methods without implementation. Interfaces are used for multiple inheritance as a class can implement multiple interfaces but can extend only one abstract class."
| Is This Answer Correct ? | 0 Yes | 0 No |
how we can make a write-only class in java?
What is array initialization in java?
What do you mean by collectors in java 8?
What is command line argument in java?
What are library required to connect to excel sheet.
What is persistence ?
Can a vector contain heterogenous objects?
What is thread safe in java?
How many bits does a boolean take?
what is singlton class?where it is use in real time senario.
What is ++ a in java?
What are the advantages of exception handling in java?