Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reference variable in java  RSS feed

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I just want to know the need for reference variable in Java with an example?
I googled for it, but was bit confused with the references i got.

Can anyone of you please explain it bit detailed way through an example.

Thanks in advance.

Cheers
 
Saloon Keeper
Posts: 8580
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out the Oracle tutorials. Have you just started Java?

Your question should be answered in great detail in the first four lessons: http://download.oracle.com/javase/tutorial/java/index.html
 
Sheriff
Posts: 21288
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
References are Java 101. Moving to Beginning Java.
 
Java Cowboy
Sheriff
Posts: 16082
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See also Cup Size -- a story about variables here on JavaRanch.
 
Marshal
Posts: 58315
178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A "reference type" is any type which is not a "primitive". That means: everything except boolean, byte, char, double, float, int, long , and short.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!