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 / selvan

it gives two error one is (; expected error ) second is ()
expected error).

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is prime number in java?

631


What are implicit objects in java?

640


What is local declaration?

585


How many bytes is a char in java?

638


How to create a thread in java?

693






Is arraylist ordered?

658


What is logical variable?

616


How will you serialize a singleton class without violating singleton pattern?

1600


What is the use of hashmap in java?

647


What is default size of arraylist in java?

647


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

629


Explain the difference between an Interface and an Abstract class?

724


What are the parts of methodology?

635


Can we override the static methods?

674


What is join () in java?

616