Copper is more reactive than silver. Hence, it displaces silver from the silver nitrate solution according to the given reaction.
Cu + 2AgNO3 → Cu(NO3)2 + 2Ag↓
The silver thus formed is deposited on the surface of copper, thereby giving it a white shining appearance.
The solution becomes blue due to the formation of copper nitrate.