Why java is not a pure object oriented language?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Java1.4 and Java1.5

1834


What happens if I remove static from main method?

531


When can you say a graph to be a tree?

641


How to obtain a performance profile of java program

547


What is OOP Language?

632






Can we override static methods in java?

591


What is the difference between dom and sax parser in java?

538


when to use ArrayList and when to use HashMap in webApplication.

3892


Explain different forms of polymorphism?

661


What is the purpose of object oriented programming?

540


What are the different tags provided in jstl?

553


What is the difference between abstract class and interface1? What is an interface?

566


How to overcome the exception object reference not set to an instance of object?

626


What kind of variables a class can consist of?

641


Why is serialization required?

548