Quiz
Is $myValue a valid Identifier?
Can I cast a char to a byte?
To a short? To an Integer? with or without loss?
What is x ’s type for the following statements to be valid?
- x = ( (char)ch_value.getIntValue() ) ;
- x = (!(( (a.getX()+a.Y)>b.MAX_r) && (probe)) ;
- x = 5.45 * (byte) c.MAX_t / 2 ;
What would have been the output of the following block if it didn’t had one of the most common programming mistakes?
System.out.println(“i=“ + i + “ j=“ + j);