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
Are arrays classes in java?
Can we pass a primitive type by reference in java? How
Can a class have an interface?
Is singleton thread safe in java?
What is double word?
Differentiate between class and structure.
Give reasons supporting that string is immutable.
Can a final variable be manipulated in java?
What are the steps that are followed when two computers connect through tcp?
Does hashset allow duplicates in java?
Can we use string in the switch case?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Is there any tag in htm to upload and download files?
Explain different types of wrapper classes in java?
How many bits is a string in java?