class WrapperTest
{
public static void main(String[] args){
Byte b = new Byte(3);
Short s = new Short(34);
}
}
when I try to compile this is the problem I got
G:\WORK PLACE\work>javac WrapperTest.java
WrapperTest.java:4: cannot find symbol
symbol : constructor Byte(int)
location: class java.lang.Byte
Byte b = new Byte(4);
^
WrapperTest.java:5: cannot find symbol
symbol : constructor Short(int)
location: class java.lang.Short
Short s = new Short(34);
^
2 errors
Please tell me What is the problem of that constructor.