Initialization is the assignment of a value to a variable for the first time. Do not confuse initialization with declaration - they are distinct operations. Take the following example: 1: int a; // Declaration 2: a = 1; // Initialization Inner Class Most classes are defined at the top level. Any class or interface defined within a top level class is considered an inner class. There are four categories of inner classes: Top-level nested Classes and Interfaces, Non-static Inner Classes, Local Classes, and Anonymous Classes.
Initialization is the act of assigning a value to a variable for the first time or it can also be a series of actions taken to create a situation. For example, the initialization phase of a socket program would include getting the protocol and port number, determining the remote server's address, and creating and binding a socket.
is the process of setting the initial value of a variable. It is very similar to assignment but is not identical: Initialization is done only once for each variable, when that variable is created, whereas assignment can be done as many times as desired. In particular, you cannot assign a value to a const, but you can, and indeed must, initialize it when it is created.