Oct
31

How to create immutable class in java

A class whose object can not be modify is called immutable class. All wrapper class like Byte, Short, Integer, Long, Float, Double and String are some example of immutable class. Example of Immutable class : 1 2 3 4 5 6 7 8…

Aug
6

Java Introduction

Java Programming  is a widely used robust technology. Let’s start learning of java from basic questions like what is java , core java, where it is used, what type of applications are created in java. What is Java : Java is a programming…

Nov
6

What is Spring Framework

Spring framework

Spring is an open source MVC framework for java applications, originally created by Rod Johnson in 2003. Spring Framework was created to address the complexity of enterprise application development and makes it possible to use plain-vanilla JavaBeans to achieve things that were previously…

Nov
2

What is String in Java ?

String in Java

String  is a core concept in every programming language, without string it is nearly impossible to write a program. That’s why java focused more on string concept. String in java is a object that represent sequence of character values. for example : 1…

Oct
31

Difference between String and StringBuffer

The key difference between String and StringBuffer : Index String StringBuffer 1 String is immutable Class. StringBuffer is mutable Class. 2 String is relativly slower than StringBuffer because every time it create a new object while performing concatenation. It is relatively faster than…

Oct
28

Difference between StringBuffer and StringBuilder

Diffrence between StringBuffer and StringBuilder

Here is some key deference between StringBuffer and StringBuilder : Index StringBuffer StringBuilder 1 Every Method present in StringBuffer is synchronized. No method is synchronized in StringBuilder. 2 At a time only one thread is allowed to operate on StringBuffer object. Hence it’s…

Oct
28

Difference Between Final Finally and Finalize.

Final Final is a modifier applicable for classes, methods and variable in java. If a class declared as final then we can’t extend that class. i.e we can’t create child class for that class. If a method declared as final then we can’t…