Tuesday, April 10, 2007

Why is Java not 100% pure OOP language?

Java takes inspirations from C and C++.The native datatypes like 'char','int','float','double' are straight pick from C, which is not an Object Oriented Language.Resonably enough, Java is not a 100% pure Object Oriented Language.

11 comments :

girija prasad on February 25, 2010 at 6:05 AM said...

it also supports the interface mechanism which is against the Object Oriented Principles

Saurabh Kumar Singh on May 16, 2010 at 6:46 AM said...

Providing the wrapper classes for int,boolean etc mitigates this point of Java not being pre OOPL

seanmullins on August 1, 2010 at 4:29 PM said...

Hi Girija,
can you expand on what you mean when you say interfaces are against Object Oriented principles?
From my experience most well designed oo systems use interfaces a lot.

Anonymous said...

by declaring the main method as static also clrifies this point,by declaring as static no need to call the main methos using any object,where java is based on object implementation

manth on August 12, 2011 at 12:31 AM said...

java does not support operator overloading that is also one reason why java not 100% pure oop language.

Anonymous said...

by declaring the main method as static also clrifies this point,by declaring as static no need to call the main methos using any object,where java is based on object implementation

Sudarson.M.K.V. said...

Java is 100% oop because it supports
1.inheritance.
2.multithreading.
3.operatoroverloading.

shravan on November 26, 2011 at 9:07 AM said...

java is 100% pure oop language

shravan on November 26, 2011 at 9:08 AM said...

now java is 100% pure oop language

Nivrit on January 17, 2012 at 1:26 PM said...

1)now java is 100% OOP language.

2)by declaring main as static does not violate the oops principle. super class or can say the class type objects are used to call the static member from any class.

3) java do support operator overloading but its not reccomended to do. if we take example of + operator- it is used for addition of two numerics as well as for concatinating two string.

Unknown on February 29, 2012 at 10:43 PM said...

yes .
java is not 100% pure oop.
because if u want for loop compulsory u have to depend on datatypes.
so java is not 100% pure oop

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker