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

Answer Posted / ravi

It will show compile time error
possible loss of precision
found int
reqired byte

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are streams?

629


Can we override protected method in java?

576


What is string in java?

554


Is string is a class in java?

516


What is arraylist class in java?

507






What is :: operator in java?

500


What is the purpose of garbage collection in java, and when is it used?

559


Which class represents the socket that both the client and server use to communicate with each other?

565


Why java is call by value?

542


How to handle a web browser resize operation?

537


What is the difference between iterator and list iterator?

529


Give an example of call be reference significance.

605


Is java a software?

511


What languages are pass by reference?

532


Is intellij better than eclipse?

535