Let's see who can answer this One.(JAVA CODE).
Code:
//Consider that a class is already created.
String s = new String("abc");
String s1="abc";
String s2= new String("abc");
How Many Objects are created in the above program(Total number of Objects)? Comment your Answer Below.
No comments:
Post a Comment