Question: How many compile errors exist in the following code? public class Data { private int data; public Data(int d) { data = d; } public

 How many compile errors exist in the following code? public class

How many compile errors exist in the following code? public class Data { private int data; public Data(int d) { data = d; } public void print0 [ System.out.println("data:" + data); public class Data Test { public static void main(String] args) { Data d = Data(100); d.data = 200; d.print(); 3 13 3 03 O 2 OO O 1

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!