what is the method
is a collection of a statments that are grouped together to perform an operation
what is the meaning of the public
pubic identifies that this method can be used by any classes
what is the meaning of static
identifies that this method is a class method
what the meaning of void
the method does not return any value
public static void main(String[] args) {
double a;double b;
System.out.println( a=0/0.0);
what is the ouput
NaN
. What will be the error in the following Java code?
byte b = 50; b = b * 50; a) b cannot contain value 50 b) b cannot contain value 100, limited by its range c) No error in this code d) * operator has converted b * 50 into int, which can not be converted to byte without casting
d
c
If any operand is double the result of an expression is double.
what are legal
d