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
Explain garbage collection in java?
What are the actions that can occur when a thread enters blocked state?
What is the difference between object oriented programming language and object based programming language?
What happens if main method is not static?
what is mena by object block any what is the use of that
What is finalize method?
What is a generic data type?
When should the method invokelater() be used?
Is string is a data type in java?
Where is jre installed?
What is this keyword in java?
What are desktop procedures?
Explain about the main() method in java?
How do you use nextline in java?
How many types of methods are there?