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

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

Q: What will be output of following program?

public class Datatype {
public static void main(String[] args) {
byte b=125;
System.out.println(b*2);
}
}
A. 250 B. -6
C. Runtime exception D. Compiler error

Answer and Explanation

Answer:250

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.