As mentioned in this site , the statement 'wrapper classes doesnt contain constructors' is wrong .wrapper classes contains constructors,character contains only one , double contains three , where as rest of them contains two constructors.for more clarity check the API
You mentioned in this tutorial :
1. All the methods of the wrapper classes are static.
- whereas there are many non-static methods appear in java.lang.Integer class, example getShort(), getXxx().
2. The Wrapper class does not contain constructors.
- but two constructors in Integer(int value) and
Integer(String s) are there.
java questions on exceptionspreeti kumari March 3, 2013 at 12:15 AM
class Abc{ public static void main (String args[]){ try{ System.out.println("I m trying"); } } }
wrapperrose October 3, 2011 at 10:01 AM
awesome...nice explanatino...
wrappers classesAnusha December 13, 2011 at 11:49 AM
As mentioned in this site , the statement 'wrapper classes doesnt contain constructors' is wrong .wrapper classes contains constructors,character contains only one , double contains three , where as rest of them contains two constructors.for more clarity check the API
Wrapper classesShanti February 11, 2012 at 3:49 PM
How we fix the precision in wrapper classes in java
Wrong InformationNiraj January 8, 2013 at 4:15 PM
You mentioned in this tutorial : 1. All the methods of the wrapper classes are static. - whereas there are many non-static methods appear in java.lang.Integer class, example getShort(), getXxx(). 2. The Wrapper class does not contain constructors. - but two constructors in Integer(int value) and Integer(String s) are there.
Post your Comment