java does support multiple inheritances via interface.we cant extend multiple classes but we can implement multiple interfaces
multiple inheritance via interfaces is possible in java.We can inherit multiple interfaces but cant inherit multiple classess
Java does not support multiple inheritance, but by using threads we can use multiple inheritance.Take a look of example Single Inheritance Example class A { int x; int y; int get(int p, int q){ x=p; y=q; return(0); } void Show(){ System.out.println(x); } } class B extends A{ void Showb(){ System.out.println("B"); } } class C extends B{ void display(){ System.out.println("C"); } public static void main(String args[]){ A a = new A(); a.get(5,6); a.Show(); } } Multiple Inheritance Example class A{ int a; float b; void Show(){ System.out.println("b in super class: " + b); } } class B extends A{ int a; float b; B( int p, float q){ a = p; super.b = q; } void Show(){ super.Show(); System.out.println("b in super class: " + super.b); System.out.println("a in sub class: " + a); } public static void main(String[] args){ B subobj = new B(1, 5); subobj.Show(); } } Output: C:\>java B b in super class: 5.0 b in super class: 5.0 a in sub class: 1