my dog learned polymorphism*
The moose likes Java in General and the fly likes Confusing String Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Confusing String Class" Watch "Confusing String Class" New topic
Author

Confusing String Class

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi all,
Please make my first topic which I am posting to be closed somehow by making me satisfied
It’s not urgent and not important anyways

It happened that I was free and started looking into the most commonly used Classes at work. I started with String class and already have a question after looking the first few lines.
The below code snippet, the inner class, is from String class itself and as I see at line 7 a declaration of String type variable “charset”.

I am confused about using a String type in String class which was not yet defined
Looked into the imports to get something but didn't help me much to understand the same
Any Idea or thoughts about what is happening exactly? Inputs are highly appreciated.
Thanks in advance


Have Fun with Java
little,little.. little by little makes a lot..
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

I am confused about using a String type in String class which was not yet defined

Why do you think that should be a problem? Would this also confuse you?


luck, db
There are no new questions, but there may be new answers.
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

oops thanks mate!
looks like i was just out of my mind... and need some sleep
Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusing String Class