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 / kiranksj
a is already defined in main so it throws an error
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why pointers are not used in java?
What are the two types of exceptions in java? Which are the differences between them?
Is void a data type?
describe synchronization in respect to multithreading? : Java thread
Why do you canvas?
What are internal variables?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What is the public field modifier?
What are 4 pillers of object orinted programming?
Differentiate between nested and inner class in java.
What is the base class of all exception classes?
Does list allow duplicates in java?
Can we catch more than one exception in single catch block?
What is derived datatype?
What is the purpose of the system class in java programming?