Pergunta de entrevista da empresa Amdocs

Technical interview questions. 1. What is copy constructor. 2. Program to find nearest value in array having positive and negative values. 3pyramid program Order of execution of constructors and distructors Can we through exception from deconstructor

Resposta da entrevista

Sigiloso

29 de jan. de 2022

A copy constructor in a Java class is a constructor that creates an object using another object of the same Java class. That's helpful when we want to copy a complex object that has several fields, or when we want to make a deep copy of an existing object.

1