Answers
1_ What is the output?
Answer: Code will not compile because we dont have return type in method header private void ValReturnMethod(int val, double val2)
it should be private doubleValReturnMethod(int val, double val2)
2_ What is the output?
Answer: 102
Since we are passing arg1 value as reference. The changes happend on that variable in function will reflect in actual copy of that variable. So arg1 value will display as 102.
3_ What is the output?
Answer: 102
Though w are passing arg1 and arg2 values, but we are suing arg1 value for calculation so arg1 value is 4 here.
4 * 25.50 = 102.
.