Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
final, finally and finalize in Java
final, finally and finalize in Java
final:
The meaning of final keyword varies with it's usage with class,methods and variables.
Class: When final keyword is placed before class keyword then that class cannot be inherited i.e final class...
Difference between final,finally and finalize in java
1) Final:
Final is a keyword. It is used to store constant values in variable. The value can't be changed later on.
The class which is declared as final cannot be inherited.
The method which is declared as final cannot be overridden.
E...
Final Keyword
Final is keyword that can be used before a class or method or a variable.
Final Class
They can not be subclassed and the method in it are by default final.
public final class MyFinalClass {...}
public class ThisIsWrong extends MyFinal...
Difference between final and effectively final
Find the difference between final and effectively final as below:
Final:- Any variable that cannot be modified once it is initialized can be final variable. You cannot modified again that variable.
Ex: final int var=20;
in the above e...