Q13.Given the following class definition, which of the following methods could be legally placed after the comment //Here: V1 T* E, P ~, Y+ Z9 h0 S
1. public class Rid {
5 H2 R! X8 M' [2 \ 2. public void amethod(int i, String s){}( `6 R' J- ~* @) O
3. //Here! f7 w3 S% b/ m- D4 I; E. f6 o7 ~9 C
4. }
& }# ?1 A# ^! x' G9 ^ a. public void amethod(String s, int i) {}5 ~6 d3 ]: N( g( [ |$ n0 R0 `
b. public int amethod(int i, String s) {}' {. C& H7 W7 L. x' y, a9 M
c. public void amethod(int i, String mystring) {}6 w* Z/ a' H3 `2 |# X/ _6 @
d. public void Amethod(int i, String s) {}; `, p0 Y# f9 F9 ?$ H
Q14.Given the following class definition, which of the following statements would be legal after the comment //Here
" _6 x0 \" A+ d+ J. i( F# ]' | 1. class InOut {
+ n: b1 h8 V- ~$ _0 ]1 M 2. String s= new String(“Between”);0 x6 K- i ?# ?/ e6 x( p
3. public void amethod(final int iArgs) {
) A& u0 u- k: ~5 N- [, M 4. int iam;( H, y% H7 E, P+ a3 G
5. class Bicycle{
" J h. I1 u: X# s 6. public void sayHello(){
5 b1 r, w: e) Z, b- n* p( C$ o% i+ h 7. //Here1 j0 d+ |% E# D3 V4 O
8. } //End of bicycle class4 T/ K5 }7 s( V3 U- u
9. }* G& e- g- O7 h2 _9 o" \
. S" `0 y1 D+ y& R1 o: y* V
10. } //End of amethod |