What isan abstract class and when do you use it?



What isan abstract class and when do you use it?..

Answer / hrpynux@gmail.com

An abstract class allows you to create functionality that subclasses can implement or override. An interface only allows you to define functionality, not implement it. And whereas a class can extend only one abstract class, it can take advantage of multiple interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is string value?

0 Answers  


What are Encapsulation, Polymorphism and Inheritance?

5 Answers  


Differentiate storage classes on the basis of their scope?

0 Answers   Fidelity,


how system.out.println() works?

2 Answers  


Why is sizeof not a function?

0 Answers  






Define immutable object?

0 Answers  


How do I write a self declaration?

0 Answers  


how many ways we can serialize the java object?

2 Answers   Satyam,


What is the nested interface?

0 Answers  


What are the steps that are followed when two computers connect through tcp?

0 Answers  


Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time

4 Answers   Huawei,


What is autoboxing and unboxing?

0 Answers  


Categories