Code : Test.java
1. public class Test {
2. public void aMethod(int x, String y){}
3. }
|
Which of the following methods can be declared in Test class? |
Choice 1 | public void AMethod(int x, String y) {?} |
Choice 2 | public int aMethod(int x, String y) {?} |
Choice 3 | public void aMethod(int x, String yy) {?} |
Choice 4 | public void aMethod(String y, int x) {?} |
Choice 5 | public String aMethod(int x, String y) {?} |