A friendly place for programming greenhorns!
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
Author
String -memory address
Deepa Raja
Greenhorn
Joined: Nov 27, 2006
Posts: 7
posted
Dec 08, 2006 02:24:00
0
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
posted
Dec 08, 2006 03:27:00
0
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
posted
Dec 08, 2006 03:38:00
0
1) no
2) read the JLS and think it over
42
Deepa Raja
Greenhorn
Joined: Nov 27, 2006
Posts: 7
posted
Dec 08, 2006 05:59:00
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter