Tuesday, April 10, 2007
Why is Java not 100% pure OOP language?
Subscribe to:
Post Comments (Atom)
World of tricky Core Java Q&A(Java SE),Java EE and Open source technologies like Struts,Hibernate,Spring,Velocity etc
Disclaimer
Interview Questions On Java,Java EE Copyright © 2012
10 comments:
it also supports the interface mechanism which is against the Object Oriented Principles
Providing the wrapper classes for int,boolean etc mitigates this point of Java not being pre OOPL
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.
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
java does not support operator overloading that is also one reason why java not 100% pure oop language.
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
Java is 100% oop because it supports
1.inheritance.
2.multithreading.
3.operatoroverloading.
java is 100% pure oop language
now java is 100% pure oop language
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.
Post a Comment