subject

Analyze the following code: public class test {public static void main(string[] args) {new b(); }}class a {int i = 7; public a() {seti(20); system. out. println("i from a is " + i); }public void seti(int i) {this. i = 2 * i; }}class b extends a {public b() {// system. out. println("i from b is " + i); }public void seti(int i) {this. i = 3 * i; }}a) the constructor of class a is not called. b) the constructor of class a is called and it displays "i from a is 60".c) the constructor of class a is called and it displays "i from a is 40".d) the constructor of class a is called and it displays "i from a is 7".

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
Analyze the following code: public class test {public static void main(string[] args) {new b(); }}cl...
Questions
question
Mathematics, 19.10.2019 20:50
question
Mathematics, 19.10.2019 20:50
question
Mathematics, 19.10.2019 20:50
question
Mathematics, 19.10.2019 20:50
Questions on the website: 13722361