java - string memory allocation -


जो एक बेहतर है

  System.out.println ("हैलो वर्ल्ड");  

या

  स्ट्रिंग s = "हैलो वर्ल्ड"; Println (रों);  

इस सरल उदाहरण के लिए स्मृति आवंटन के संदर्भ में कोई अंतर नहीं है।


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -