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, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
question
Computers and Technology, 25.06.2019 13:00
Which professional is an example of a person who belongs to the social elite in the united states
Answers: 1
question
Computers and Technology, 25.06.2019 13:40
We are looking at a “sum-scan” (a scan with addition as the operator).sum-scan has two variants. in an “exclusive sum-scan”, the output at each data element isthe sum of all the input elements that came before that element. in an “inclusive sum-scan”,the output at each data element is the sum of all the input elements up to?
Answers: 2
You know the right answer?
Analyze the following code: public class test {public static void main(string[] args) {new b(); }}cl...
Questions
question
Mathematics, 05.06.2020 02:58
question
Mathematics, 05.06.2020 02:58
Questions on the website: 13722359