is java purely oop Language?

Answer Posted / devesh

no java is not pure oop language because in java we use premitive data types like char ,short,double,flour etc which are not object,so we can say java is not a object oriented programming.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation in simple terms?

774


What is difference between data abstraction and encapsulation?

843


What is abstract class in oop?

754


What are the 4 pillars of oop?

894


What makes a language oop?

824


Why do we need polymorphism in c#?

886


What is inheritance in oop?

806


What is the advantage of oop over procedural language?

853


How oops is better than procedural?

840


What is a class in oop?

780


Which type does string inherit from?

842


#include #include #include #include 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.

3518


What is polymorphism what is it for and how is it used?

777


program for insertion ,deletion,sorting in double link list

2447


What is multilevel inheritance explain with example?

872