Home / MCQ Bank / Computer
Computer Exceptions Difficulty: Medium

Given the code. What is the result when this program is executed? public class Test{ static int x[]; static{ x[0] = 1; } public static void main(String args[]){ } }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following Java program? import java.io.*; class Chararrayinput { public static void main(String[] args) { String obj = "abcdef"; int length = obj.length(); char c[] = new char[length]; obj.getChars(0, length, c, 0); CharArrayReader input1 = new CharArrayReader(c); CharArrayReader input2 = new CharArrayReader(c, 0, 3); int i; try { while((i = input2.read()) != -1) { System.out.print((char)i); } } catch (IOException e) { e.printStackTrace(); } } } When you connect to an online information service, you are asked to provide some kind of identification such as your name, an account number and a password. What is the name given to this brief dialogue between you and the information system? What is the time complexity of the above recursive implementation used to reverse a string? What is the difference between stat() and fstat()? Which of the following graphs don't have chromatin number less than or equal to 2?