hi !! can a class be named Object ?? like: class Object { public static void main(String args[]) { System.out.println("hello"); } } and be saved as Object.java?
Amit<br /> <br />The Less I have, The more I gain..Off the Beaten Path, I Reign.
if you are that original of a thinker try it. i want to. I would have to say no though because(if nothing else) your class is in the default package and so is java.lang.* which includes java.lang.Object
The difference is the package name. You class isn't in the java.lang package. Your class will still extend java.lang.Object though because ultimately every class has to! I think it owuld be very confussing to have another class called Object though.
Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.