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

Answer Posted / ravikiran

compilation fails
possibl;e loss of precision
because results in an int

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if linked list contains loop in java?

449


Why main method is static in java?

588


What happens when a thrown exception is not handled?

575


How many threads does a core java have?

505


What are the loops in java?

515






How does java pattern compile work?

536


What is an argument in java?

501


How can an exception be thrown manually by a programmer?

503


What is data type in java?

482


How do you do exponents in java?

532


Explain restrictions on using enum?

624


What are the two ways in which thread can be created?

592


What are desktop procedures?

554


Explain notifyall() method of object class ?

662


What is the purpose of the main method?

538