Predict the output for the above code???....
public class monkey
{
public static void main(String[] args)
{
String str="akash";
System.out.print(str.indexOf('k'));
System.out.print(str.indexOf ('g'));
}
}

Posted on by