R
Q. Determine output: public class Test{ int a = 10; public void method(int a){ a += 1; System.out.println(++a); } public static void main(String args[]){ Test t = new Test(); t.method(3); } }
Here's an explanation of the code:
You must be Logged in to update hint/solution
Q. Which of the following is a garbage collection technique?
Q. Which of the following is a correct constructor for thread?
Q. what is the output of below java program?
Q. In java, jar stands for_____.
Q. What is the output of the below Java code snippet with arrays?
Q. Find the output of the following code.
Discusssion
Login to discuss.