int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b;
System.out.println("The value is"+a+b+c;
Answers were Sorted based on User's Feedback
Answer / manju
(I tried this pgm)
It will give compilation error(like insert ') ' )
if u insert that bracket and then run ,the answer will be
102030.(bcz its treated only as strings)
| Is This Answer Correct ? | 1 Yes | 2 No |
Why singleton pattern is better than creating singleton class with static instance?
What is the difference between inheritance and encapsulation?
What is a qualifier in a sentence?
Howmany classes that package java.applet.* contains?
Is arraylist ordered in java?
What is the basic of java?
What is scope of a variable?
What is a bufferedreader?
In Java why we write public static void main(String args[]) why not main()?
46 Answers Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,
what is encapsulation in java? Explain
Explain the differences between public, private, protected and static?
Does chrome use java?