1. What will be the result of this code?
Alien[] aliens = new Alien[20];aliens[0].setName(“Ali Baba”);System.out.println(aliens[0].getName());
Assume that setName and getName work properly.
A. Ali BabaB. None of these are correct.C. NothingD. NullPointerException
2. Assuming the following code:
int minIdx = 0;//index to the youngest personint maxIdx = 0; //index to the oldest personfor (int i = 1; i < people.length; i++) { if ( people[i].getAge() < people[minIdx].getAge() ) { minIdx = i; //found a younger person } else if (people[i].getAge() > people[maxIdx].getAge() ) { maxIdx=
PayPal Gateway not configured
PayPal Gateway not configured