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 / anil kumar rai
output:5080130
a b c
concat a,b,c because its consider its as a string which
assign integer value
Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
What is purpose of keyword void?
Why java is said to be pass-by-value ?
What is substring 1 in java?
Explain illegalmonitorstateexception and when it will be thrown?
what is an objects lock and which objects have locks? : Java thread
What is the difference between Java and C++?
What is difference in between java class and bean?
Explain super keyword in java.
List the three steps for creating an object for a class?
What is the difference between a constructor and a method?
What type of value does sizeof return?
Is java a super set of javascript?
What are "methods" and "fields"?
What are the topics in advance java?
How do you declare an empty string?