For this question assume the following method:

public int stringSize(String s)
{
    return s.length();
}

What would happen if we called 'stringSize(null);'?

A NullPointerException would occur
  • A compiler error would occur
  • The code would return 0, since no string is provided
  • Nothing would happen

There are no hints for this question