What would happen on trying to compile and run the following code?
public class Test
{
public static void main (String args[])
{
int iRand;
iRand = Math.random();
System.out.println(iRand);
}
}
Correct Answer: A compilation error referring to a cast problem
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions