Results 21 to 22 of 22
- 04-16-2011, 08:34 AM #21
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,603
- Blog Entries
- 7
- Rep Power
- 17
No, every single .class file has its own area of literal Strings; the class loader loads these Strings in the single String pool. So your example prints "true". There is a restriction to that single pool: Strings have to be shorter than 64K chars and every single area in a .class file can 'only' contain as much as 65K Strings. (not much of a restriction, but nevertheless ...)
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 04-16-2011, 08:42 AM #22
Similar Threads
-
I need some help with my while loops and return statements
By sch518 in forum New To JavaReplies: 7Last Post: 04-11-2011, 07:26 PM -
Return statements in methods
By adjit in forum New To JavaReplies: 12Last Post: 03-17-2011, 02:31 PM -
Help with simple control statement
By Kevin BSU in forum New To JavaReplies: 3Last Post: 11-15-2010, 04:27 PM -
If Statement return
By ricardo5222 in forum New To JavaReplies: 4Last Post: 11-01-2010, 11:43 AM -
Static Method and Return Statements
By berelson in forum New To JavaReplies: 2Last Post: 11-29-2008, 11:17 PM


LinkBack URL
About LinkBacks

Reply With Quote
Bookmarks