Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Techguy Sr eng.   on Oct 18 In Java Category.

  
Question Answered By: Eric Foster   on Oct 18

When you state :

String myString;
myString = "Ini string  loh...";

java compiler turns it in :

String myString;
myString = new String("Ini string loh...");


Because the "Ini string loh..." is read  as it were
new String("Ini string loh...") ....

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Is String really object ? Or get search suggestion and latest updates.


Tagged: