Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Value vs Reference Types

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Value vs Reference Types

    What is the difference between a value type and reference type?
    Which category does a String belong to? Which category does an enum belong to?


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Value vs Reference Types

    Quote Originally Posted by anis.laghaei View Post
    What is the difference between a value type and reference type?
    Which category does a String belong to? Which category does an enum belong to?
    Quote Originally Posted by anis.laghaei View Post
    Does Java support pointers? why or why not? if not, is there an equivalent concept in java that almost does the same?
    Quote Originally Posted by anis.laghaei View Post
    Can an enum have methods, fields and constructors? How? Why?
    Is Google down again?

    Please have the courtesy to show us the fruits of your own efforts if asking such questions. So in that vein, what do you think the answers are and why? And then let's discuss it.

Similar Threads

  1. Very Basic Question: Reference Data Types
    By Bill123 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 14th, 2012, 10:39 PM
  2. What are the 3 types of self-reference in JAVA
    By wholegrain in forum Java Theory & Questions
    Replies: 1
    Last Post: March 5th, 2012, 05:49 PM
  3. Primitive types
    By sudesh in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 30th, 2012, 01:44 AM
  4. incompatible types!!
    By sneha343 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 30th, 2011, 05:48 PM
  5. [SOLVED] Enum types, how does he know %s value?
    By beer-in-box in forum Java Theory & Questions
    Replies: 11
    Last Post: September 17th, 2011, 12:47 PM