how to make a copy of an array java

Java
int a[] = {1, 8, 3}; 
  
// Copy elements of a[] to b[] 
int b[] = a.clone();
Source

Also in Java: