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


Please Help Members By Posting Answers For Below Questions

Why pointers are not used in java?

594


What are the two types of exceptions in java? Which are the differences between them?

520


Is void a data type?

544


describe synchronization in respect to multithreading? : Java thread

515


Why do you canvas?

620






What are internal variables?

575


Add a value x to array from index l to r where 0 <= l <= r <= n-1

642


What is the public field modifier?

548


What are 4 pillers of object orinted programming?

593


Differentiate between nested and inner class in java.

563


What is the base class of all exception classes?

598


Does list allow duplicates in java?

528


Can we catch more than one exception in single catch block?

607


What is derived datatype?

639


What is the purpose of the system class in java programming?

551