What is the result of the following program execution?
public class Test {
    public static void main(String[] args) {
        char ch = '0';
        for (; ch <= 9; ch++)
            System.out.print(ch);
    }
}
Explanation
'0' char is 48th char in Unicode character table
. 48 is greater than 9 - loop will not be executed at all
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback