I'm trying to compile this Java code but compiler
says : "./Playground/Program.java uses or ovveride Deprecated APIs".
why it's not complies? 🤔
7/24/2020 4:19:20 AM
S.Adil 🇦🇫 you are doing unnecessary boxing
"new Integer(10)"'. you can simply pass the value.
Kevin ★ it's just
System.out.println(" Compiled" );
why bounded types not working? 🤔
P∆WAN M∆URY∆ I passed Integer type I know String occurring error but in Integer type code Playground showing Deprecated warnings 😔
P∆WAN M∆URY∆ is Generics not accepting wrapper class values? 🤔
S.Adil 🇦🇫 i can guess you will understand Kevin ★ link.
Hey S.Adil 🇦🇫 . Bounded type will not work because you are passing the string object. And String class not extended the Number class.
If you use bouded type parameter. Make sure your passed argument extended the Bounded parameter.
It has nothing to do with bounded type parameters.
S.Adil 🇦🇫 https://stackoverflow.com/questions/49904830/create-a-new-integer-object-that-holds-the-value-1
They can but you are wrapping the wrong way. new Integer() seems to be deprecated.
But shows a warning.
How can. Move. The blog
Send us a message