Course Solutions Uncategorized (Solved) : 1 Result Code Alien Aliens New Alien 20 Aliens 0 Setname Ali Baba Systemprintln Aliens 0 G Q27546078 . . . .

(Solved) : 1 Result Code Alien Aliens New Alien 20 Aliens 0 Setname Ali Baba Systemprintln Aliens 0 G Q27546078 . . . .

 

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=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Insert Memberss Values 1 Amy Jhonson 770123789 109 Harbinsroad 40 Basic Credit Card Insert Q29919202 . . . .(Solved) : Insert Memberss Values 1 Amy Jhonson 770123789 109 Harbinsroad 40 Basic Credit Card Insert Q29919202 . . . .

<p>Insert into Memberss Values('1','Amy','Jhonson','770123789','109Harbinsroad','40','Basic','Credit Card');</p><p>Insert into MemberssValues('2','Bicky','Branan','404934009','210Morningmist','202','Super','Credit Card');</p><p>Insert into MemberessValues('3','Charles','Knight','678098123','980Venturelane','100','Pro','Cash ');</p><p>Insert into MemberessValues('4','Debra','Holston','770945109','560Norcrossway','40','Basic','Cash');</p><p>Insert into Memberess Values('5','Eric','White','404908321','789Johnscreek','100','Pro','Credit Card');</p><p>Insert into MemberessValues('6','Felicia','Hampton','678109567','900Parkviewlane','202','Pro','Credit Card');</p><p><strong>Please use primary key and foreign key in this table.Include screenshot