Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2988 | 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?

class StringLiteral{
public static void main(String[] args){
String str="local\national";
System.out.print(str);
}
}
A. Local \ National B. local ational
C. local
ational
D. Compiler error

Answer and Explanation

Answer:local
ational

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.