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
What is the purpose of a default constructor?
What is a file pointer?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is an object class?
Why is string class considered immutable?
What is a ?
What is java algorithm?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Which variables are stored in stack?
Does a function need a return?
Do extraneous variables affect validity?
What is the driver class?
How many techniques can be employed to create a string object?
How do you convert int to char in java?
Difference between throw and throws?