S
Q. What would be the result of attempting to compile and run the following code?
public class HelloWorld{ public static void main(String[] args){ double[] x = new double[]{1, 2, 3}; System.out.println("Value is " + x[1]); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What will be the output of given code
Q. An interface with no fields or methods is known as a ______.
Q. What is the purpose of an abstract method in an abstract class or interface?
Q. What type of constructor is used to provide different values to the distinct objects?
Discusssion
Login to discuss.