How OOPS concept is achieved in Java?

Answer Posted / ranjan

Encapsulation which is achieved by making classes.

Inheritance which is achieved by extending class and implementing interfaces.

polymorphism is achieved by function overriding and function overloading. Operator overloading is not allowed in java although implicitly string class uses + operator..


note : Abstraction is nothing its just showing functionality and hiding complexity

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes is a char in java?

533


How many types of voids are there?

541


What is the difference between serializable and externalizable interfaces?

572


Is alive and join method in java?

540


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2856






What is the default value of float and double datatype in java?

538


how to create multithreaded program? Explain different ways of using thread? : Java thread

536


What is main in java?

516


If a variable is declared as private, where may the variable be accessed?

554


Explain the importance of throws keyword in java?

573


What is byte [] in java?

540


How do I convert a string to an int in java?

553


How do you bind variables?

533


Differentiate between a constructor and a method? Can we mark constructors final?

678


What is the purpose of the strictfp keyword?

611