Welcome Guest | Sign in | Register
Final and Datatypes - Discussion Page For Q.2735 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Final and Datatypes > Questions and Answers

Q: class A{
Public static void main(String args[]){
String s1=Float.toString(5.55);
System.out.println(s1);
} }
A. 5.55 B. null
C. compile time error D. runtime error

Answer and Explanation

Answer:compile time error

Explanation:
we can not convert float to String . if you try it will throw compile error.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.