Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


What is array size in java?

0 Answers  


Which class is the superclass for all the classes?

0 Answers  


Why do people says “java is robust”?

0 Answers  


Why are inner classes required?

3 Answers   Oracle,


What is variable explain with example?

0 Answers  


What is difference between classpath and path variables in java?

0 Answers  


solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..

2 Answers  


What is the size of an array?

0 Answers  


What is number data type in java?

0 Answers  


Why does java have two ways to create child threads?

0 Answers  


What is Co-Variant return type in method overriding?

1 Answers   RBS,


Categories