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
What is static in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Can we sort list in java?
What are the 7 types of characters?
Can we inherit inner class?
What is constructor chaining in java?
What is a byte array?
What is isa relationship?
Can you make a constructor final in Java?
How many bits is a char?
What are the disadvantages of object oriented programming?
What is a list in java?
What is locale in java?
What is the difference between a vector & an array list?