Documentos de Académico
Documentos de Profesional
Documentos de Cultura
The answers for the following questions should be checked by the student himself by making small programs (reflecting the question) on the system. In case of clarifications, student may contact the faculty.
Wh the constructors cannot be abstract, static, final, native, strictfp, or s nchroni!ed " 7nlike methods, a constructor cannot be abstract, static, final, nati e, strictfp, or synchroni0ed. A constructor is not inherited, so there is no need to declare it final and an abstract constructor could ne er be implemented. A constructor is always in oked with respect to an ob)ect, so it makes no sense for a constructor to be static. There is no practical need for a constructor to be synchroni0ed , because it would lock the ob)ect under construction, which is normally not made a ailable to other threads until all constructors for the ob)ect ha e completed their work. The lack of nati e constructors is an arbitrary language design choice that makes it easy for an implementation of the -a a irtual machine to erify that superclass constructors are always properly in oked during ob)ect creation.
S.Nageswara Assignment Rao, Sr.Facu ty, !onsu tant and !orporate "rainer Student on Basic Java #ncase of doubts, the students may contact the facu ty at surenagrao$yahoo.co.in