
In Primitive data types (i.e. Number, Boolean, String, etc.) the copying of variables is done in the form of copy by value.
Copy by value:
In primitive data types if we assign a variable to other variable, its data is passed to another variable and both of them refers to unidentical memory locations.