aspose file tools
The moose likes Java in General and the fly likes String -memory address Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "String -memory address" Watch "String -memory address" New topic
Author

String -memory address

Deepa Raja
Greenhorn

Joined: Nov 27, 2006
Posts: 7
1.Can i get the memory address of the specified String Object??
2. Whether the empty String ("") creates the object in memory?

String a="";
if("".equals("")){
}

This code snippet cretes how many empty string objects?

Thanks.
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
sounds like homework...

what do you think ? why do you need to know ?

pascal
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
1) no
2) read the JLS and think it over


42
Deepa Raja
Greenhorn

Joined: Nov 27, 2006
Posts: 7
Hi Pascal,

I think If you give the answer that will be look good.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String -memory address
 
Similar Threads
this is boggling me....Strings...aaahhhh
Regarding null in Java
Memory Address
need help with this project please
String question