Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Thread: Java basics

    by Norm
    Replies
    5
    Views
    1,402

    Re: Java basics

    It depends on if the variable is at the class level or inside of a method. Local variables must be given an initial value.
  2. Thread: Java basics

    by Norm
    Replies
    5
    Views
    1,402

    Re: Java basics

    One assigns a value to a variable when it is defined.
    The other does not and lets the compiler give a default value to the variable.
Results 1 to 2 of 2