when,where and how to use abstract class and interface
Answer Posted / vinaykumar
If you want to provide your own services for methods we
use interfaces.If you want to provide your own services or
to use the services of the methods in your class then wego
for abstract classes.abstract class is partially implemented
and partially unimplemented class where as interface is
completely unimplemented.both of the objects can not be
created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you create a method in java?
What is difference between == equals () and compareto () method?
How do you break a loop?
What checkbox method allows you to tell if a checkbox is checked?
How do you represent a space in regex java?
Can a static class implement an interface?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is isa relationship?
Similarity and difference between static block and static method ?
What is flush buffer?
What is anagram number?
What are register variables what are the advantages?
What is private protected in java?
What are the object and class classes used for?