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
What is the static import?
Can we create an object of static class in java?
When do we use synchronized blocks and advantages of using synchronized blocks?
Write a function for palindrome and factorial and explain?
When will you define a method as static?
Can we create our own daemon thread?
Can we override a variable in java?
What is string [] args?
Differentiate between stringbuffer and stringbuilder in java.
What is the access scope of protected access specifier?
What is the main use of generics in java?
What is function overriding and overloading in java?
Is 0 an even number?
What is constant in programming?
Can we execute java program without main method?