Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2989 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Variables and Loops > Questions and Answers

Q: public class TypeConversion {
public static void main(String[] args) {
double d=2D+2d+2.+2l+2L+2f+2F+2.f+2.D;
System.out.println(d);
}
}
A. 18.0 B. 9.0
C. Run time exception

D. Compiler error

Answer and Explanation

Answer:18.0

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




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