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 are the two parts of a conditional statement?

508


How we create object in copy constructor?

636


What are the three types of design patterns?

506


What are the basics of core java?

542


What does bitwise or mean?

563






What is variable declaration and definition?

536


How do you add an element to a hashset in java?

488


What is the role of the java.rmi.naming class?

515


how does the run() method in runnable work? : Java thread

511


What is hashmap in java?

560


What is predicate in java?

556


What are structs in java?

564


What does it mean to flush a file?

564


How to read and write image from a file ?

549


How to display all the prime numbers between 1 and 100

497