I Just tried to find out what the compiler does if I try to find the index of a null charachter in a String.I remember somehwere that a null charachter is always appended to the end of a string, so i expected the code below to give me 5.
When I type out this:
String s = "Hello";
System.out.println(s.indexOf(""));
It gives an output of 0
Help please!