Core Java Interview Topics

Wednesday, January 9, 2019

Difference between abstraction and encapsulation?

Encapsulation is hiding the implementation details which may or may not be for generic or specialized behavior(s).
Abstraction is providing a generalization (say, over a set of behaviors).
Posted by shekhawat's blog at 2:24 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

shekhawat's blog
View my complete profile

Blog Archive

  • ▼  2019 (36)
    • ►  February (19)
    • ▼  January (17)
      • If there are 20 people in a tournament and each ...
      • Implementing a queue with stack as the internal ...
      • An algorithm to sort an array of integers which...
      • Method overloading and null error in Java?
      • Sometimes unexpected errors can result when overlo...
      • Methods with Varargs alongwith other parameters?
      • Method Overloading and Ambiguity in Varargs in Java
      • Difference between abstraction and encapsulation?
      • Is inheritance necessary for encapsulation, abstra...
      • Is polymorphism possible without inheritance?
      • What is the purpose of polymorphism?
      • Type Conversion of data Type
      • Can be call this() and supper() togther in same me...
      • Difference Between Constructor Overloading and Con...
      • What is the need of Constructor chaining in java?
      • Is serialVersionUID inherited by subclasses, if I ...
      • How are constructors called during serialization a...
Copyright by Narendar Singh Shekhawat . Travel theme. Powered by Blogger.