Originally posted by rahul dravid:
A final class can be overloaded? Is String and StringBuffer are final classes?
Classes can not be overloaded, and the
final keyword does not have anything to do with overloading.
Final classes cannot be subclassed.
In the
API documentation you can see that classes java.lang.String and java.lang.StringBuffer are both final.