byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / janardhan
Above code , there is compile time error will coming, 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 ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I enable java in safari?
How do you create a sop?
What is an 8 bit word?
Can classes declared using the abstract keyword cab be instantiated?
Can I declare class as static or private?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
How can we achieve thread safety in java?
What is the difference between integer parseint and integer valueof?
How do you sing an Applet ?
What is the statements?
What is the method to expand and collapse nodes in a jtree?
What are different data types?
What is meant by class?
Explain the scope or life time of class variables or static variables?
How many characters is 16 bytes?