Computer Applications
Which one of the following will be the output of the below statements?
String a[]={"Rohini", "Rajarshi", "Rajeev", "Rehan", "Rebecca"};
System.out.println(a[2].substring(2));
- jeev
- Ra
- Raj
- je
Related Questions
What is the output of the following Java code?
boolean flag = false; if (flag) { System.out.println("True"); } else { System.out.println("False"); }- True
- False
- No output
- Compilation error
Identify the static method from the list given below:
- length()
- nextLine()
- substring(int)
- isLetter(char)
System.out.println(Math.round(Math.ceil(-8.8)));will result in:- 8.0
- -8.0
- -9
- -8
Which one of the following Java statements assign 100 to the last element of a 3 × 3 array?
- x[2][2]=100;
- x[3][3]=100;
- x[2][3]=100;
- x[3][2]=100;