Q -7 string quiz

if you run S.length() or S.size() in terminal it will give you the same answer then y they are different options?