is java purely oop Language?
Answers were Sorted based on User's Feedback
Answer / rawther
java is not a purely object oriented language because it
doesnot support the feature multiple inhetiance .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / p.naveenreddy
ya ofcourse java is a pure objected oriented programing
language because any language which is supporting and
satisfying encapsulation polymorphism and inheritance we can
say that that language is a object oriented programing lanugage
1. eventhough it is supporting primitive data types they
are declared inside the class only hence outside the class
they are not available so it is satisfying encapsulatiopn to
maximum extent
2.directly we can say it is satisfying polymorphism
3.in java multiple inheritance is avoided but it is
supporting and satisfying major part of the inheritance
concepts
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sampath
there is only one perfect oop lnguage in the world.
that is smalltalk.
why not java............
because we can access the variable with out using object.
how..........???????
answer is
if a variable declare in main function we can call it with
out using object. may be u can argue with me even variable
declare in class. the perfect oops supports any operation
only with objects
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mohanapriya
java is partially object oriented concept.....
if we say any language is pure object oriented,everything
should be as object.
but in java except string,no other access through object...
that is int,char,etc...
we can do by creating object and access int,char,etc.....
but cant say that without creating object ,cant access.(can
access without creating object).....
so java-partially oops
smalltalk-pure oops.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rajashekar reddy
Yes, java is purely Object Oriented Language,
someone says that Java is partially OOL because datatypes are
declared without creating object But my question is without creating object how can we access these data types.
We can declare any data type within the method or within the class only and obviously every method is written inside the
class only.
Every class is an Blueprint of that particular object.
My conclusion is Java is purely Object Oriented Language.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raji
Java is not a pure object oriented language because it
support primitive data types( int,float,double,......). Pure
object oriented language means everything should be declared
in objects. SMALLTALK is an example for a pure object
oriented language.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / praveen kumar
Java is not a pure oop Language, for database accessing ,
it depends on the opearting systen native files.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / sandeep kaur
java is an Object Oreiented Language..but it is not a pure
Object oriented Programming Language..because it does not
support all the features of OOP.
One Reason:
All the data types are not objects..but java support all
these Data Types.But in OOP Language everything should be
objects and methods.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is protected in oop?
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
what is namespace? what are the uses of namespace?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
Which type does string inherit from?
What is polymorphism in oops?
How many human genes are polymorphic?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
different types of castings
Why is polymorphism used?
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.
Why is polymorphism important in oop?