

We would ignore attributes such as company and salary of the person.

Whereas, if we are modeling a person in a hospital patient system, we would capture and focus on the name, age, height, weight etc. We would ignore other attributes such as weight, height etc. In other words, Abstraction is the principle of perceiving real life things from a particular perspective, based on the system we are designing focusing only on those aspects that are relevant to this system and ignoring all other aspects.įor Example - If we are modeling a person in a payroll system, we would capture and focus on the name, age, title, company and salary attributes. Robinson, Deloitte, FDM Group, Guidewire, Infosys, Microsoft, Revature, Sphere Solutions, TIBCO Software, Tribro ,Ībstraction is one of the four key principles of object-oriented programming.Ībstraction is the principle of object-oriented programming in which unimportant characteristics of an object are refined, removed or hidden and only the key set of characteristics are represented to the outside world.

* Similar Java Interview Question Recently Asked Accenture, Allscripts, C.H. Object-oriented programming is based on 4 key principles - Abstraction, Encapsulation, Inheritance and Polymorphism. Think of a class as a blueprint, and object as an instance of this blueprint. Java is a class based object-oriented programming language, which means objects in Java are instances of classes. Object-oriented programming is a programming methodology based on the concept of 'objects' which contain data, in the form of fields, also called as attributes and code, in the form of procedures, also called as methods or functions. * Similar Java Interview Question Recently Asked Amazon, American Airlines, Charles Schwab, FedEx, Geico, Honeywell, Intel, J.P Morgan, 元 Technologies, Microsoft, New York Life, Northrop Grumman, Oracle, Paycom, State Farm, Ultimate Software, Veritas, Workday , What is object-oriented programming? What are the key principles of object-oriented programming? FAQ Key Concept Hence questions regarding the object oriented principles of Java programming language are commonly asked in interviews - for beginner as well as for senior level positions and for all job roles including Java programmers, designers, architects and managers.įollowing are some frequently asked questions in Java - Object Oriented Programming Java is an object-oriented programming language.
