Originally posted by velan vel:
hai what about ans F
QUESTION NO: 96
Which two are equivalent? (Choose Two)
A. 16>4
B. 16/2
C. 16*4
D. 16>>2
E. 16/2^2
F. 16>>>2
Answer: D, E
by
velan vel
Originally posted by Abhinav Gogna:
Actually the output is true.
The first part of the comparison (System.out.println(args.length > 4) returns true as we have 5 values in args
1) Test
2) One
3) Two
4) Three
5) -d
for the second comparison (args[4].equals("-d")), the value is true, since args @ 4th place (counting from 0) is "-d". Although "-d" is fifth but arrays start counting from 0. Hence the && operator will return as both the conditions are "True".