Java is Call By value and Not Call by Reference….

Posted on 2 Comments

Call by Value and Call by reference is also known as Pass by Value and Pass by reference. Everyone who is working on java, always get confused with call by value and call by reference. Many people says when primitives are passed to method parameter then it is “call by value” and when objects are […]

Object Cloning in Java…

Posted on 2 Comments

Creating the duplicate copy of an object is called object Cloning, it is Performed by using clone() method of Object class. When an object is created using new keyword it takes a lot of processing time. if we want to create exact copy of an object, then using of clone() method saves a lot of […]