Multiple Inheritance is not allowed in java:

	    class Base1
	    {
	        public void disp()
   	        {
     	          System.out.println("Base1 disp");
   	        }
	    }
	    class Base2
	    {
	        public void disp()
	        {
   	          System.out.println("base2 disp");
 	        }
	   }
	   class Der extends Base1,Base2
	   {
	        public void test()
	        {
  	           disp();  //disp() function is available in both the base class(compile time error).
	         }
	   }
	   public class MainClass 
	   {
	       public static void main(String[ ] args)
               {
  	          Der d=new Der();
  	          d.test;
	        }
	   }
--> This will give compile time error because display function is available in both the parent class with same signature. Since two definitions are available for same function compiler will get confused which one to call. --> We can resolve multiple inheritance but it will create more confusion and complexity to the programmer. That is why they have removed multiple inheritance from java. Note: You can achieve multiple inheritance in java by using interface.
  	class Vehicle
	{
   	      public void run()
  	      {
    	        System.out.println("I can run");
    	      }
	}
	class Bicycle extends Vehicle
        {
	      public void runOnWheels()
	      {
  	         run();
	         System.out.println("I can run on 2 wheels");
 	       }
	}
        class Motorcycle extends Bicycle
	 {
	      public void runOnWheelsWithMotor()
  	      {
 	        runOnWheels();
    	        System.out.println("I can run on 2 wheels with a motor");
  	      }
	 }	
	public class VehicleDer
	{
	     public static void main(String[ ] args)
	     {
 	         Motorcycle m=new Motorcycle();
  	         m.run();
  	         m.runOnWheels();
  	         m.runOnWheelsWithMotor();
 	     }
	}