Examlex

Solved

What Does the Following Code Snippet Display? Char Ch1 =

question 48

Multiple Choice

What does the following code snippet display? char ch1 = '\u0000';
Char ch2 = '\uffff';
Random generator = new Random() ;
For (int i = 0; i < 1000; i++)
{
If (i % 50 == 0)
{
System.out.println() ;
}
System.out.print((char) (ch1 + generator.nextDouble() * (ch2 - ch1 + 1) ) ) ;
}


Definitions:

Related Questions