Prasad Kharkar wrote:
this can be considered similar to Wrapper class
we can cal parseInt(String) method without extending the Integer class as follows
Integer.parseInt("123");
I respectfully beg to differ as this has nothing to do with wrapper classes, and one can easily create wrapper classes that have no static methods at all. This has everything to do with calling a static method on a class, nothing more and nothing less.
Cheer