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 |
What is square root in java?
Why synchronization is important?
Explain the difference between abstract class and interface in java?
Is java an ide?
What is synchronization and why is it important in java programming?
Explain public static void main(string args[]).
What is xslt in java?
how to split string in java?
What is consumer in java?
What is the simpletimezone class in java programming?
Can we assign null to double in java?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.