Best way to compare 2 strings

Since equals is a built in method in java , we need to make sure that it should be called with object not with null. so in case if we call with null then we will endup with Null pointer exception. Ex : assume i need to check whether string a is equal to “hai” […]

Share this article on

Serialization and externalization in java

Serialization is the process of writing an object state into the file. state of an object means atrributes and its values and in future if we need that object we can rebuild it from the file and  we call that process as “de serialization” so to achive serialization in java,  any class must implement one […]

Share this article on
Next >