Java Package

© examsiri.com
Question : 11 of 16
 
Marks: +1, -0
Given:
1. public String makinStrings() {
2.   String s = “Fred”;
3.   s = s + “47”;
4.   s = s.substring(2, 5);
5.   s = s.toUpperCase();
6.   return s.toString();
7. }

How many String objects will be created when this method is invoked?
Go to Question: