java - string memory allocation -


जो एक बेहतर है

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

या

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

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


Comments

Popular posts from this blog

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

gtk - Python Window Resize -

c# - read full xml file data over tcp -