Is java is a fully object object oriented language?

Answer Posted / kailash karki

let me explain u all.
java is 100% oops. dont look at primitives cause java also created wrapper classes like Integer, Float etc. wrapper class is only created to remove this ambiguity. otherwise u tell me where u'l use Wrapper classes.
Integer a=new Integer(1);
Integer b=new Integer(2);
int c= a+b;
run and see, the a and b are two object and can be added without any error. cause internally all r treated as a object.(unboxing) . so no issue, java is purely 100% OOP

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a function argument in java?

739


Explain the difference between collection api and stream api in java8?

710


What are the fileinputstream and fileoutputstream?

813


What is :: operator in java?

691


What is default constructors?

717


What is the file extension for java?

826


What is the difference between ArrayList and Vector? which one is better in Java

812


How garbage collection is done in java?

754


What is the role of garbage collector in java?

694


What is the output of the below java program?

799


Why does java not support operator overloading?

888


What is the use of http-tunneling in rmi?

777


Can memory leak happen java?

774


Can we serialize singleton class?

754


Why do we need hashset in java?

703