Another question output based
String arr[] = { "DELHI ", "CHENNAI", "MUMBAI", "LUCKNOW", "JAIPUR" };
System.Out.println( arr[0].length > arr[3].length());
System.Out.println ( arr[4].substring(0,3));
Answers
Answered by
5
The output is:
(1) Error
Reasons:
(a) The symbol cannot be found - Out.
(b) It should be arr[0].length() > arr[3].length().
(2) JAI.
In this, the start index starts from 0. and the end index starts from - 1.
Hope this helps!
(1) Error
Reasons:
(a) The symbol cannot be found - Out.
(b) It should be arr[0].length() > arr[3].length().
(2) JAI.
In this, the start index starts from 0. and the end index starts from - 1.
Hope this helps!
uniyala84:
Thanks
Answered by
4
false
JAI
pls mark brainliest
JAI
pls mark brainliest
Similar questions