Initializing a variable in java