Hi all,
I created a class named fun in java.lang package.The code snippet are as
follows:
class Object
{
public void show()
{
System.out.println("fun");
}
}
public class fun {
public static void main(
String [] a)
{
new Object.show();
}
}
JVM executed the my Object class's show method.
My query is:
Why did the JVM allowed me to create a my own Object class
when there is already an Object class in the java.lang package.