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 |
Can we extend the String class?
Is hashset sorted in java?
Can an integer be null java?
suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible
What is the use of coding?
What is r in java?
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this
11 Answers IBM, L&T,
Is the milky way in a void?
How many types of flags are there?
Can we synchronize static methods in java?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Which java ide is used the most?