similarities / differences between variables

Hello,

What are the similarities and/or differences between... ?

- instance variables

- reference variables

- stack variables

- object variables

For example :

String b = "bbb";//what is 'b' and what is "bbb"?

I hope someone can answer my questions. Thanks!

[314 byte] By [EetieDa] at [2007-11-26 17:38:25]
# 1
Single quotes indicate a char double is a String. I highly recommend you read some java tutorials and/or by a book. http://java.sun.com/docs/books/tutorial/java/index.html
zadoka at 2007-7-9 0:06:34 > top of Java-index,Java Essentials,New To Java...
# 2

> Single quotes indicate a char double is a String.

I think he was quoting the 'b' to indicate he meant the variable being declared and not it's value.

As for the actual question: you might want to try a different question. I think this is what you are going to see:

1. you read a question on a sample exam

2. you looked up the keywords in the index of your book and read the definitions, but didn't understand somethin

3. you posted the question verbatim to the forum

4. someone else looked up the keywords in the index of their book and posted the definitions in reply to your post.

Clarify which parts of the definitions you need help understanding, or you'll end up reading the same thing you already didn't understand in the text book.

bheilersa at 2007-7-9 0:06:34 > top of Java-index,Java Essentials,New To Java...