What is the result of compiling and running the following code?

public class Quest {
    public static void main(String[] args) {
        byte b[] = new byte[80];
        for (int i = 0 ; i < b.length ; i++)
             b[i] = (byte)System.in.read();
        System.out.print(“Ok”);
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes