jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes understanding String operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "understanding String operation" Watch "understanding String operation" New topic
Author

understanding String operation

Abhishk Gupta
Greenhorn

Joined: Oct 08, 2008
Posts: 22
Here is my doubt:

What actually goes behind the scene when JVM sees this statement. How does it recognize “abc” as a String 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.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36575
    
  16
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: http://aspose.com/file-tools
 
subject: understanding String operation
 
Similar Threads
what is the difference between String and other reference types?
csv file
String Immutable
question regarding strings
Initializing reference variable