Home / MCQ Bank / Computer
Computer Array

Which one of the following is a valid statement?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • char [] c = new char [5]

Related Computer Questions

Which generation computers used transistors for the first time? In a folder, which of the following key is used to rename the file or folder To show deleted text, which element is used? In the Boyer-Moore algorithm, how is the "good suffix rule" utilized? What will be the output of the following Java program? class exception_handling { public static void main(String args[]) { try { int a = args.length; int b = 10 / a; System.out.print(a); try { if (a == 1) a = a / a - a; if (a == 2) { int c = {1}; c[8] = 9; } } catch (ArrayIndexOutOfBoundException e) { System.out.println("TypeA"); } catch (ArithmeticException e) { System.out.println("TypeB"); } } } Note: Execution command line: $ java exception_handling one two