-
Why java is/isn't pure object oriented?...give smart ans...0
-
Member • Sep 30, 2012
Because not everything in Java is OBJECT☕Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
Almost everything in java is an object....plz give ex..what is not object...Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
primitive values...
int, char, boolean etc...
this is only reason Java is not a pure OOP language.Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
k. primitive values can be converted to objects using wrapper classes...
So as everything is not object in java...so its not pure OO..but it is categorized as pure OO in some books..Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
Pure oop language is hard to create some basic definitions are used in almost all programming languagesAre you sure? This action cannot be undone. -
Member • Sep 30, 2012
Java is classified as pure object oriented language.
It has all qualities of OOP like polymorphism,inheritance,garbage collection and most important classes and objects.Are you sure? This action cannot be undone. -
Administrator • Sep 30, 2012
Well, the answer to the question lies in the advantages the object oriented approach offers; it's much more intuitive and 'natural' way of programming, I guess. The imperative type of programming would be just the instructions that the computer has to follow and execute in order to arrive at a desired state; but as far as I know, it does not allow (or makes it complicated) to implement the complex logic that the modern software systems demand.
Just out of curiosity, isn't it true that you can write simple procedural programs ( C - Like ) in most of the object oriented programming languages like C++ and Java?Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
Yeah true but many things which are really hard or near impossible in C program is way to simple in C++ and java languagesAre you sure? This action cannot be undone. -
Member • Sep 30, 2012
Its not hard but to simplify and for better performance some of non-Object Oriented concepts are added in OO languages like in Java .jeffrey samuelPure oop language is hard to create some basic definitions are used in almost all programming languages
Primitive variables have better performance than Objects. (int is faster than Integer.)
While C# have object type rather than no primitive type but still one can argue that C# is not a 100% object oriented language because :
Enumeration type and static methods: which can be accessible without instantiating a class object which is not strictly Object oriented concept.Are you sure? This action cannot be undone. -
Member • Sep 30, 2012
as we all know that java is object oriented programming.when we start it we are firstly taught java is object oriented.why it is oop then we have answer that it provide information hinding,modularity,reusability inheritance itc.objects are created in class.object is a thing which has its own method(behavior) or property(state).method perform any task and state clarify what type of method will be performed.Are you sure? This action cannot be undone. -
Member • Oct 2, 2012
Java is pure object oriented as everything contained within the class; even the main function is present inside the class....😀Are you sure? This action cannot be undone. -
Member • Oct 2, 2012
I suggest you to Google: "Why java is not a pure object oriented language" and what is requirement of a language to be pure object oriented.monujattJava is pure object oriented as everything contained within the class; even the main function is present inside the class....😀Are you sure? This action cannot be undone. -
Member • Nov 27, 2012
I have come across this question again.
While i believe that Java is pure OOP and the best criterion is that everything in JAVA is inside class.
The primitive data types are also defines inside the class .
The point where program execution i.e. main(), starts is defined in a class.
I will also add that when a primitive date type variable is defined,it is part of class and when class is instantiated ,that object is created in Heap (which is holding the primitive data types).
More ever, Java satisfies all other OOP requirements like
- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
- All Operations are carried on by Objects (by sharing messages ).
- All user defined types are objects.
But some people claim (i found on web also) that since JAVA has predefined data types (which are not objects) its not pure OOP. Is this a standard rule accepted by all?
Eventually all these (predefined data types) are going to be part of class as you can only define primitive data types as part of class .
What are your views ?Are you sure? This action cannot be undone. -
Member • Nov 29, 2012
Let me correct you...grsalviI have come across this question again.
While i believe that Java is pure OOP and the best criterion is that everything in JAVA is inside class.
The primitive data types are also defines inside the class .
The point where program execution i.e. main(), starts is defined in a class.
I will also add that when a primitive date type variable is defined,it is part of class and when class is instantiated ,that object is created in Heap (which is holding the primitive data types).
More ever, Java satisfies all other OOP requirements like
- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
- All Operations are carried on by Objects (by sharing messages ).
- All user defined types are objects.
Any language can only be pure object oriented if everything can only be accessed by an Object reference.
that means first you need to create a object of a class then only you can use that class.
Being everything inside class , only fulfills encapsulation property not all properties of an object.
Most basic thing of being pure object oriented is everything should only be accessed through object nothing else.
- All user defined types are objects. Wrong, what about static variable and enumeration type.
Hope it will clarify your doubt.Are you sure? This action cannot be undone.