This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 43885
    
  32
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: understanding String operation
 
It's not a secret anymore!