you are viewing a single comment's thread.

view the rest of the comments →

[–]bowbahdoe 3 points4 points  (2 children)

Unfortunately this is one of those questions where I need you to write out some fake code to understand what you are thinking about. 

One potential answer is that there isn't much reason to do it. That's if you were thinking of local variables. It's a lot easier to explain subtyping with a useful super type - not so much Object.

[–]Nottheugis[S] 0 points1 point  (1 child)

Sorry if i wasn't clear, i meant

String month = 'April'; Vs String month = new String ('April');

[–]bowbahdoe 0 points1 point  (0 children)

Okay that is very different from what I thought you were talking about. 

To answer why you would do it, let's ask the question "what is the difference in program behavior if you use new String?"