Type Conversion and Casting
Q) Which one is valid in the following? int a=3.14;// INVALID double d=35;//VALID Tell me the reason, Ans : As per the behavior of java data types I am listing out the order(numeric/integral) : (smaller to larger) byte short int long float double (So, we can not assign larger type value to a smaller type variable.) In java, we have two kinds of conversions: 1....