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

I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1072


Can we create our own wrapper class in java?

539


What is string in java?

556


What will happen if a thrown exception is not handled?

557


Why convert an applet to an application?

614






What are meta-annotations?

552


Can private class be inherited in java?

547


Is array passed by reference in java?

578


What is a modifier?

857


Write a method that will remove given character from the string?

569


what are the states associated in the thread? : Java thread

591


Can a method be static?

520


Does a class inherit the constructors of its superclass in java programming?

522


Explain about static nested classes in java?

602


Is null a string?

549