Archive: January, 2017

Final Keyword In Java

January 6, 2017 by Manisha Ambekar

Filed under java

Last modified January 6, 2017

The final keyword in java is used to restrict the user. The java final keyword can be used in many context. Final can be: 1. variable 2. method 3. class The final keyword can be applied with the variables, a final variable that have no value it is called blank final variable or uninitialized final variable. It can be initialized in the constructor only. The …

Wrapper classes

January 6, 2017 by Manisha Ambekar

Filed under java

Last modified January 6, 2017

Each of Java’s eight primitive data types has a class dedicated to it. These are known as wrapper classes because they “wrap” the primitive data type into an object of that class. The wrapper classes are part of the java.lang package, which is imported by default into all Java programs. The wrapper classes in java servers two primary purposes. • To provide a mechanism to …