Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   java is completely oops language (http://www.go4expert.com/forums/java-completely-oops-language-t15671/)

skp819 30Dec2008 11:44

java is completely oops language
Can anybody tell me that java is completely oops language. If yes can you tell me the reason?

xpi0t0s 5Jan2009 01:36

Re: java is completely oops language
Depends what you mean by "completely oops". If by that you mean that it doesn't support scalar values at all, in other words that absolutely everything must be an object, then no it isn't because as in C you can define, say, int x and x is not an object. However Java does support the object oriented paradigm in that you can define objects and the compiler will throw errors if you write code that breaks the OO rules, e.g. if a non-member function attempts to access a private atrtribute.

All times are GMT +5.5. The time now is 00:24.