A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java in General
understanding String operation
Joined: Oct 08, 2008
Dec 30, 2010 04:46:11
Here is my doubt:
String str = “abc”;
What actually goes behind the scene when JVM sees this statement. How does it recognize “abc” as a
instance and what function of String class are called to act.
There are only 10 types of people in the world: those who understand ternary, those who don't, and those who mistake it for binary.
Joined: Oct 13, 2005
Dec 30, 2010 05:59:26
The compiler recognises that as a String; you should compile a little class with that code in, and inspect it with javap -c Foo to see how it works.
I agree. Here's the link:
- it saves me about five hours per week
subject: understanding String operation
what is the difference between String and other reference types?
Initializing reference variable
question regarding strings
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013