what is difference between abstract and interface?
can i give real time example for the two topics?
Answer Posted / richa
abstract class can have some concrete methods and abstract
methods too.abstract class can use accessibility modifier
in abstract class.
but in interface all the method are abstract.In interface
no accessibility modifier is allowed by default it takes
public access modifier.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What comes to mind when someone mentions a shallow copy in java?
What types of index data structures can you have in java?
What is string builder in java?
How do you sort in descending order in java using collections sort?
How thread scheduler schedule the task?
What is a cup of java?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Can we assign integer value to char in java?
Can we call virtual funciton in a constructor ?
What are the different types of inheritance in java?
Difference between static binding and dynamic binding?
What's the difference between comparison done by equals method and == operator?
Can list be null in java?
What are constructors in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?