byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / dinesh kumar
compilation fails
possibl;e loss of precision, because
ie type mismatch error from byte to int, instead of byte we
can replace int(before a+b), it will excuite succesfully
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the meaning of 3 dots in java?
What is anagram word?
If a class is declared without any access modifiers, where can the class be accessed?
How many types of operators are there?
When is finally block not called?
What is difference between public static and void?
What is class level lock ?
How do you escape in java?
What are parameters in a method?
What is classes in java?
How do you sort arraylist in descending order?
What is style and indentation?
What is the function of compareto in java?
Write a program to print 15 random numbers using foreach of java 8?
What is n in java?