Search:

Type: Posts; User: dabdi

Search: Search took 0.12 seconds.

  1. Re: Conditions and 'might not have been initialized' error.

    Right. I still miss that const and final are not really the same thing.


    Initialization do not have to be expensive. Initialization of local objects to null is a good solution.
    A similar...
  2. Re: Conditions and 'might not have been initialized' error.

    Actully it is better to initialize every time. The java compiler is weak in detecting all paths unless you make it so obvious

    public class Test {
    public static final int get() {
    return 0;
    }...
  3. Re: Conditions and 'might not have been initialized' error.

    Local variables should always be initialized.


    double af = 0.
Results 1 to 3 of 3