Home > Back-end >  Consult when hasmap1=hashmap2 hashmap1 just hashmap2 reference at this time?
Consult when hasmap1=hashmap2 hashmap1 just hashmap2 reference at this time?

Time:05-16

Consult when hasmap1=hashmap2 hashmap1 just hashmap2 reference at this time?

The static HashMap Hash_name1=new HashMap (a);
The static HashMap Hash_name2=new HashMap (a);

Hash_name1=hash_name2;
At this time of hash_name1 just cited hash_name2 put? Rather than gave hash_name1 hash_name2 the assignment?

Thank you

CodePudding user response:

Yes, where hash1 and hash2 all point to the same instance

CodePudding user response:

For object=operation is to put the object pointer to a block of memory address,
  • Related