Why java is not a pure object oriented language?

Answers were Sorted based on User's Feedback



Why java is not a pure object oriented language?..

Answer / dhruba guha

Java is not truely object orient Progrmaing Language ebecoz

1) in OOPS everything has to be Object but java supports
Primitive data type.

2) Java does not support multiple inheritance directly,
through help of interface java support multiple inheritance.

3) java does not esupport circular inheritance.

4) in OOPS everything need to be store heap but java use 5
type of memory heap, stack, native stack, register, code
segment.

Is This Answer Correct ?    6 Yes 1 No

Why java is not a pure object oriented language?..

Answer / manikiran

Java fails in multiple inheritance. It is one of the feature
in OOPS concept .Java does not follow all rules of OOPS concepts

Is This Answer Correct ?    5 Yes 2 No

Why java is not a pure object oriented language?..

Answer / subbu

Java uses primitive datatypes. so it not a pure object oriented language.

Is This Answer Correct ?    6 Yes 5 No

Why java is not a pure object oriented language?..

Answer / el

Java allows reflection, which is a very powerful feature, but is not pure oop concept.

Is This Answer Correct ?    1 Yes 0 No

Why java is not a pure object oriented language?..

Answer / java&

public class Main {


public static void main(String[] args) {

new A().path1.fun6();
new A().path2.fun4();
new F().path1.fun1();
new I.C().path1.path2.path2.path2.fun4();
}

}
class A extends F
{
void fun1()
{
System.out.print("Class A");
}
}

class B extends A
{
void fun2()
{
System.out.print("Class B");
}
}

interface I
{
C path1=new C();
class C extends B
{

void fun3()
{
System.out.print("Interface I");
}
}

}

interface J
{
D path2=new D();
class D extends B
{

void fun4()
{
System.out.print("Interface J");
}
}

}
class E implements I,J
{
void fun5()
{
System.out.print("Interface J");
}
}
class F extends E
{
void fun6()
{
System.out.println(" class F");
}
}



/* What is this? */

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

do I need to use synchronized on setvalue(int)? : Java thread

0 Answers  


How Array List can be Serialized.

7 Answers   Polaris,


What is main function purpose?

0 Answers  


What is null object in java?

0 Answers  


What is e in java?

0 Answers  






if u open login & logout ,how can udisplay the timelogin & logout members ?

0 Answers   Virtusa,


what is type of statement in jdbc connection?

3 Answers  


What is lambda programming?

0 Answers  


Is it possible to override the main method?

0 Answers  


There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation?

6 Answers   KPIT,


Can interface be private in java?

0 Answers  


What is inheritance?

5 Answers   Accenture, Hexaware, Syntel,


Categories