where u use Abstraction and Interface in real time
Answers were Sorted based on User's Feedback
Answer / praveen
If a user want to interact with my application he need an
interface. With the interface the user can access the
specific methods of a class that implemented the interface.
For example user want to call a method. He already know the
specific class implemented that interface, then he can call
the method through reference object.
Abstract class is used whenever a user restricted to
inheritance but not taking instance of a class or if any
methods are there that should be implement by the user.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / teja
When ever there is need of having same common features
among the subclasses of of super class we have to go for
AbstractClass,
When ever there is no common features for subclasses of
super class we have to go for interface
| Is This Answer Correct ? | 1 Yes | 0 No |
Explain the significance of listiterator.
What is use of static method?
How does linkedlist work in java?
What is difference between ++ I and I ++ in java?
What is Garbage Collection in Java
What is sizeof in java?
what ide u r using and wat version, how wil u build the project etc ?
What is a parameter in simple terms?
Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>
12 Answers Accenture, CTS, Extensio, IBM, iFlex, PA Consulting, Symphony, Tarang,
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What part of memory - Stack or Heap - is cleaned in the garbage collection process?
What is the difference between jsp and servlet?