byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?

Answer Posted / kalyan

it will shows complie time error,to execute we typecast the
int to byte

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can memory leak in java?

574


Can we declare the static variables and methods in an abstract class?

541


What programs use java?

464


What is purpose of applet programming?

630


What is protected access modifier?

565






When should the method invokelater() be used?

576


Why are the methods of the math class static?

570


Can we instantiate interface in java?

666


What is a char in java?

526


How do you input a string in java?

493


Is arraylist ordered in java?

564


What is sortedmap in java?

545


Will the jvm load the package twice at runtime?

566


What are features of java?

557


What is a variable in java?

524