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 / anil kumar rai

output:5080130
a b c
concat a,b,c because its consider its as a string which
assign integer value

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is purpose of keyword void?

573


Why java is said to be pass-by-value ?

557


What is substring 1 in java?

597


Explain illegalmonitorstateexception and when it will be thrown?

627


what is an objects lock and which objects have locks? : Java thread

550






What is the difference between Java and C++?

625


What is difference in between java class and bean?

574


Explain super keyword in java.

595


List the three steps for creating an object for a class?

525


What is the difference between a constructor and a method?

582


What type of value does sizeof return?

549


Is java a super set of javascript?

599


What are "methods" and "fields"?

587


What are the topics in advance java?

535


How do you declare an empty string?

630