Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
- public class WrapperTest{
- public static void main(String args[]){
- String str = "2b";
- int i = Integer.parseInt(str,16);
- System.out.println(i);
- }
- }
b. The code will compile but will throw NumberFormatException when executed.
c. The code will compile and print 43 when executed.
d. None of the above.

Post new comment