Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of the below Java program with arrays?
public class Polo { public static void main(String args[]) { String[] computer = {"RAM","HDD","MOUSE"}; String[] parts = {computer[0],computer[2]}; System.out.print(parts[1]); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What does Class.forName(“myreflection.Foo”).getInstance() return?
When an array is passed to a method, what does the method receive?
What is the output of the below Java program?
From Java five onwards, that one among these is suggested to replace Hashtable?
What temporarily redirects response to the browser?
Local inner class can access non-final local variable
Which method is used to invoke the garbage collector to perform the cleanup processing?
Which of the following is incorrect statement about packages?
Discusssion
Login to discuss.