Question: **using java** In the program below that demonstrates constructor overloading, which line of codes invokes constructor line 5-8? Write only the line number. Example: Line

 **using java** In the program below that demonstrates constructor overloading, which

**using java**

In the program below that demonstrates constructor overloading, which line of codes invokes constructor line 5-8? Write only the line number. Example: Line 3 (5 marks] 1. class Student 2. int ids; 3. String names; 4. 5. Student (int id, String name) { 6. ids = id; 7. names name; 8. } 9. 10. Student () { 11. ids = 0; 12. } 13. 14. void display () { 15. System.out.println(ids+" "+names); } 17. 18. public static void main(String args[]) { 19. Student si new Student (111, "Karan"); 20. Student s2 = new Student (); s2.display(); 22. } 23. 16. = 21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!