about main method

why main method is public & static . Can we overload or override main method?if we r writing a code in try block what exactly done at that time.Please descibe?Why String class is immutable can we make our class immutable How?
[250 byte] By [attopa] at [2007-10-3 5:39:40]
# 1

> why main method is public & static .

Because.

> Can we overload

> or override main method?

>

No.

> if we r writing a code in try block what exactly done

> at that time.Please descibe?

>

Exception handling

Read this http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html

> Why String class is immutable

Because. Mainly performance.

> can we make our class

> immutable

Yes.

> How?

You don't know what immutable means. You should look that up.

cotton.ma at 2007-7-14 23:47:23 > top of Java-index,Java Essentials,Java Programming...
# 2
> can we make our class immutable How? http://www-128.ibm.com/developerworks/java/library/j-jtp02183.html
pbrockway2a at 2007-7-14 23:47:23 > top of Java-index,Java Essentials,Java Programming...