what are the oops concept in java explain with real time
examples
Answer Posted / praveena
OOPS Concepts are mainly 4
1.Abstraction
2.Encapsulation
3.Inheritance
4.Polymorphisam
Abstraction:Hiding unneccessary data from user is called
Abstraction access specifiers like public,private etc are
used to provide different level in abstraction.
Encapsulation:Taking data and object in a single unity is
called Encapsulation.A class is example for Encapsulation.
Inheritance:creating anew class from existing class is
called Inheritance.reusability is main advantage in
inheritance.
polymorphism:if single mthod performs different task is
called polymorphism.
| Is This Answer Correct ? | 89 Yes | 35 No |
Post New Answer View All Answers
Discuss different types of errors that generally occur while programming.
Who is the owner of java?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
why java uses class level type casting ?
Distinguish between a predicate and a function?
What are the various access specifiers for java classes?
What about method local inner classes or local inner classes in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
What are void pointers?
how to deploy tomcatserver to weblogic server? write d following steps?
What is size_t?
What are heap memory and stack memory and what are memory tables.
What is the byte order of byte buffer?
What function extracts specified characters from a string?
Is there a way to increase the size of an array after its declaration?