Java: define terms initialization, declaration and assignment

后端 未结 7 705
轻奢々
轻奢々 2020-11-22 16:12

I find the defs circular, the subjects are defined by their verbs but the verbs are undefined! So how do you define them?

The Circular Definitions

7条回答
  •  天涯浪人
    2020-11-22 17:06

    String declaration;
    String initialization = "initialization";
    declaration = "initialization"; //late initialization - will initialize the variable.
        // Without this, for example, in java, you will get a compile-time error if you try 
        // to use this variable.
    
    declaration = "assignment"; // Normal assignment. 
        // Can be done any number of times for a non-final variable
    

提交回复
热议问题