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;
Answer Posted / 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 |
Post New Answer View All Answers
How to create an immutable class?
What does n mean?
What is the scope or life time of instance variables?
Give few examples of final classes defined in Java API?
What is integer size in java?
What do you understand by the term polymorphism?
Which java version is latest?
What is tree in java?
What is difference between fail-fast and fail-safe?
How many bytes is a string java?
Is math class static in java?
How many characters is 16 bytes?
What is class and object in java?
What is constructor and its types?
Write a code to show a static variable?