Select the correct option to test your answer:
Computer
Strings
Difficulty: Medium
What will be the output of the following Java code? class output { public static void main(String args[]) { String a = "hello i love java"; System.out.println(a.indexOf('i')+" "+a.indexOf('o') +" "+a.lastIndexOf('i')+" "+a.lastIndexOf('o')); } }
More Computer Questions
. . . . . . . . is a generalization of the facility provided by the MapReduce framework to collect data output by the Mapper or the Reducer.
What is the access specifier that restricts access to members of a class only within the same class and its derived classes in C#?
What is the primary purpose of a constructor in object-oriented programming?
What is the purpose of the 'else' statement in C's 'if-else' control structure?
Which of the following methods is used to determine whether the specified file exists in C#?