Home / MCQ Bank / Computer
Computer Array Difficulty: Medium

Determine output: public class Test{ public static void main(String[] args){ int[] x = {1, 2, 3, 4}; int[] y = x; x = new int[2]; for(int i = 0; i < x.length; i++) System.out.print(y[i] + " "); } }

Select the correct option to test your answer:

More Computer Questions

How many solution/solutions are available for a graph having negative weight cycle? Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file? In the Boyer-Moore algorithm, what is the purpose of the bad character rule? calloc() initialize memory with all bits set to zero. Which symbol is used to declare the preprocessor directives?