Given: And the commands: What is the result?
A.
Lazy lion is jumping
B.
Lion is always jumping
C.
Crazy elephant is jumping
D.
Elephant is always jumping
E.
Compilation fails
Given: And the commands: What is the result?
A.
Lazy lion is jumping
B.
Lion is always jumping
C.
Crazy elephant is jumping
D.
Elephant is always jumping
E.
Compilation fails
C
D
Elephant is always jumping.
D
TESTED
Tested: D
public class Jump {
static String args[] = {“lazy”, “lion”, “is”, “always”};
public static void main(String[] args) {
System.out.println(args[1] +” “+ args[2] +” “+ args[3] + ” jumping”);
}
}
0,1,2 index should be there for args