subject

Given the following class import java. util. arraylist; public class rectangletester { public static void main(string[ ] args) { arraylist shapes = new arraylist(); shapes. add(new rectangle(1, 1)); shapes. add(new rectangle(2, 2)); shapes. add(new rectangle(3, 3)); shapes. add(new rectangle(4, 4)); rectangle datarecord; for(int index = 0; index < shapes. size(); index++) { datarecord = shapes. get(index); datarecord. calcrectarea(); datarecord. calcrectperimeter(); } } } which of the following could not be a constructor for the rectangleclass? i. rectangle(int s1, int s2) { myside1 = s1; myside2 = s2; } ii. rectangle(s1, s2) { myside1 = s1; myside2 = s2; } iii. rectangle() { }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:50
You are working as a security analyst in a company xyz that owns the whole subnet range of 23.0.0.0/8 and 192.168.0.0/8. while monitoring the data, you find a high number of outbound connections. you see that ip's owned by xyz (internal) and private ip's are communicating to a single public ip. therefore, the internal ip's are sending data to the public ip. after further analysis, you find out that this public ip is a blacklisted ip, and the internal communicating devices are compromised. what kind of attack does the above scenario depict?
Answers: 3
question
Computers and Technology, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
You know the right answer?
Given the following class import java. util. arraylist; public class rectangletester { public stati...
Questions
question
Health, 14.11.2020 03:00
question
Mathematics, 14.11.2020 03:00
question
Mathematics, 14.11.2020 03:00
question
Mathematics, 14.11.2020 03:00
question
Physics, 14.11.2020 03:00
question
Mathematics, 14.11.2020 03:00
question
History, 14.11.2020 03:00
question
Mathematics, 14.11.2020 03:10
Questions on the website: 13722363