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 is the maximum size of array in java?

510


What is array list in java?

585


Is empty set an element of empty set?

595


How do weakhashmap works?

581


What is class array in java?

501






Why does java not support operator overloading?

654


Can we sort hashset in java?

620


Can we override data members in java?

617


How many ways can we create singleton class?

497


What are the string methods in java?

576


explain autoboxing in java?

588


How do you achieve singleton?

525


What does java stand for?

541


What is the base class of all classes?

562


What is difference between throw and throws ?

590