int a=1,b=10;
System.out.println(a+b--);

Answer Posted / amit

U see 'a' and 'b' are integer type so they will be added.
if it had been char then the answer would be 111.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method declaration?

511


Can private class be extended java?

564


how to deploy apache tomcat server to weblogic server in java

1597


what is daemon thread and which method is used to create the daemon thread? : Java thread

526


What is append function?

562






What are constants?

594


What is the purpose of a transient variable?

579


How many characters is 16 bytes?

532


What is the use of arraylist in java?

524


Is char * a string?

539


What are some characteristics of interference class?

510


What is the difference between static binding and dynamic binding?

565


What is difference between path and classpath?

556


What is finalize()? Is finalize() similar to a destructor?

540


Can a static class have a constructor java?

544