![]() |
|
|
|
#31 |
|
Lew wrote:
> Roedy Green wrote: >> On Fri, 14 Aug 2009 08:51:13 -0400, Lew <> >> wrote, >> quoted or indirectly quoted someone who said : >> >>> Java references are addresses into memory - they point to objects >>> to which they refer. They aren't exposed to the programmer as >>> *machine* addresses, but then Java is not a machine language. >> >> In the original JVMs, references were handles, pointers to >> pointers. >> That made it easier to shuffle objects around in RAM. > > What they are in the JVM is independent of the fact that in the Java > language references function as memory addresses, at a high level. > Due to the restricted nature of references in Java - you can't > assign > arbitrary pointer values such as mid-object addresses, for example - > this high-level abstraction of an address is sufficient. I think I could make (address,offset) work for lots of different address implementations, including handles. (You can do it more or less even in existing Java with a class that holds a reference and a java.lang.reflect.Field.) What Java does that's really important is make references completely opaque. Does a reference fit in an int? None of your beeswax. What bits are in a null reference? None of your beeswax. What's the offset of the length field in a String? None of your beeswax. Beautiful stuff. One of the big mistakes Java made was to tell us that chars are 16 bits. Otherwise, a char could hold every Unicode character and we wouldn't need surrogates. Mike Schilling |
|
|
|
|
#32 |
|
Junior Member
Join Date: Nov 2009
Posts: 1
|
Hi Folks,
I have a requirement. My client has files (TXT) which contain Unicode characters which displays Chinese content (Simplified Chinese) in Browser. When Java print is invoked, it prints as ASCII characters. When printed from Browser, these characters appear in the printout but not through Java. Please help. Regards Hari N techhari |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Reset / Recover Forgotten Windows NT / 2000 / XP / 2003 Administrator Password | wskaihd | Software | 2 | 11-17-2009 02:01 AM |
| How to activate Remote Assistance with XP using Windows Live Messenger | Oziisr | General Help Related Topics | 0 | 02-01-2008 04:45 PM |
| Computer Security | aldrich.chappel.com.use@gmail.com | A+ Certification | 0 | 11-27-2007 02:11 AM |
| MCITP: Enterprise Support Technician | MileHighWelch | MCITP | 1 | 06-19-2007 10:25 PM |
| Re: Question about MS critical updates | John Coode | A+ Certification | 0 | 06-30-2004 06:08 PM |