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: Question about data types

  1. #1
    Member ashl7's Avatar
    Join Date
    Mar 2013
    Posts
    32
    My Mood
    Mellow
    Thanks
    24
    Thanked 0 Times in 0 Posts

    Default Question about data types

    Hi everyone
    I was studying about data types in Java, I have some basic questions

    what is the meaning of default value for a data type?! what's the use of it?
    for example:
    default value of int is 0
    default value of long is 0L
    default value of float is 0.0f
    default value of reference data type is null

    what's the difference between bit and byte?! is bit a data type as well?

    what's the difference between float and double?

    the minimum value of character is \uoooo, and the max is \ufffff....what are these symbols?! aren't characters only a,b,c....?

    thanks much already


  2. #2
    Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: Question about data types

    you search and read this type of links:

    Java - Basic Data Types
    Java Tutorial - Lesson 2: Variables and Data Types
    Regards
    Android developer
    Trinay Technology Solutions
    http://www.trinaytech.com
    5705750475

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. Tutorial: Primitive Data Types
    By newbie in forum Java Programming Tutorials
    Replies: 3
    Last Post: July 5th, 2012, 11:56 PM
  3. [SOLVED] Converting primitive data types causing NumberFormatException
    By Melawe in forum What's Wrong With My Code?
    Replies: 11
    Last Post: December 10th, 2011, 12:30 AM
  4. Creating New File types question.
    By GodspeedPR in forum Java Theory & Questions
    Replies: 1
    Last Post: July 1st, 2011, 09:05 AM
  5. Replies: 4
    Last Post: September 5th, 2010, 10:29 AM