Q: A Java method is comparable to a __ in c language.
Solution: no solution
Q: All Java methods must have a return type. (TRUE / FALSE)
Solution: no solution
Q: State TRUE or FALSE. A Java method can have the same name as the class name.
Solution: no solution
Q: in Java, add a ___ to a constructor to convert it into a method.
Solution: no solution
Q: Java method signature is a combination of ___.
Solution: no solution
Q: In Java, a method name can not start with a ___.
Solution: no solution
Q: In Java, a method name can start with ___.
Solution: no solution
Q: In Java, a method name can contain numbers from 2nd character onwards. (TRUE / FALSE).
Solution: no solution
Q: Choose the correct identifier for a method name in Java.
Solution: no solution
Q: What is the output of the below Java program with an empty return statement? public class TestingMethods2 { void show() { System.out.println("SHOW Method.."); return; } public static void main(String[] args) { TestingMethods2 t2 = new TestingMethods2(); t2.show(); } }
Solution: Yes. A void method can use an empty return statement.
You Have Score    | /10 |