Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Complete the following java code : . . . . . [ ] H = new . . . .[3]; H[0] = new Emp[ ]; H[1] = new Manager[ ]; H[2] = new String(" Eng Hany " );

user-image
Question ajoutée par Hany Abd El-Latif Attia Abd El-Hay , متدرب , iteshare
Date de publication: 2014/07/31
Dan Nemes
par Dan Nemes , Software developer , CGS Europe

Object [ ] H = new Object [3]; H[0] = new Emp(); H[1] = new Manager(); H[2] = new String(" Eng Hany ");

 

Actually the object instantiation "new Emp[]" and "new Manager[]" was also wrong.

Correct form is "new Emp()", using () instead of []. I don't know if this was an intended mistake or not.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?