
public class WrapTest3 { Public static void main(String args[]) { String s="98.6"; // insert code here } }
Which will cause compilation error:
a) float f1=Float.floatValue(s); b) float f2=new Float(3.144).floatValue(); c) float f3=Float.valueOf(s).floatValue(); d) float f4= (float)Double.parseDouble("3.14");
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.