is java purely oop Language?
Answers were Sorted based on User's Feedback
Answer / swapna
java is not a pure object oriented .its partially object
oriented.object oriented means every thing should be used in
terms of objects.in java we use datatypes with out creating
any objects.using java we can do fully object oriented
programming.so its a partially object oriented.
| Is This Answer Correct ? | 107 Yes | 20 No |
Answer / sujith
Perfect answer by Swapna. Java is not pure object oriented.
Data types are still not objects except String. I think the
only pure object oriented language still is smalltalk,
though i havent explored much with c#.
| Is This Answer Correct ? | 45 Yes | 13 No |
Answer / vijay tandel
Java is not pure OOP Language because it uses primitive data
types.
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / baalu aanand
No, because
1) data types not declaring by object except String, data
types are declaring in Literal types
2) It not support Multilevel inheritance
3) It does n't support operator overloading
So, java is not purely OOP concept
| Is This Answer Correct ? | 15 Yes | 4 No |
Answer / ravi
no ,
java is not a purely object oriented language because it
doesnot support the feature multiple inhetiance .
it support the feature interface instead of multiple
inheritance
| Is This Answer Correct ? | 23 Yes | 15 No |
Answer / mahaveer bhaskar
no, because it uses primitive data type
| Is This Answer Correct ? | 10 Yes | 2 No |
Java is purely OOPL.primitives are simple datatypes in java
all the collections classes are uses wrapper class only not
a simple data types In all the applications we uses wrapper
class only not a primitives.we use primitives only for a
learning purpose and java supports native language that so
primitives still lives in java
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / girish
No,java is not pure object oriented language ,not
everything done by an object.Pure oopl is small talk.
| Is This Answer Correct ? | 10 Yes | 7 No |
Answer / mathi
Java is not a pure oop lang. Smalltalk is a pure oop
language.
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / vinay chowdary
According to oopl specification a language which considers
each and every component as an object.
1.But in java primitive datatypes are there so we can
consider java as not fullfledged oopl.
2.all of u guys plz think that java also providing wrapper
classes for each primitive,so can't it be full object
orientation(plz respond me on this point)
| Is This Answer Correct ? | 3 Yes | 0 No |
Can you explain polymorphism?
What is stream in oop?
Is oop better than procedural?
Should you protect the global data in threads? Why or why not?
What is oops and its features?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is function overloading?,describe it with the example.
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are constructors in oop?
What causes polymorphism?
3. Differentiate verification and validation.
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort