The fact about Java is that it does not support the multiple inheritance.
But I have a question that the base class of all java classes is Object.
Now we have tw
Object class is base class of all other classes.Here when you inherit class B from class A then class B can not be inherit from Object class.
public class B extends class A
{
}
And here, base class of class A is Object class.
So in short, if we not inherit any class then its base class would be object class.
You can also refer this:
http://docs.oracle.com/javase/tutorial/java/concepts/inheritance.html