Question: Need help with these two java questions! 1. Assume you have created a data definition class, Desk.java, to represent a desk and an implementation class,

Need help with these two java questions!

1. Assume you have created a data definition class, Desk.java, to represent a desk and an implementation class, Classroom.java, to represent a classroom that holds desks.

Write one Java statement that could be used in the implementation class to represent 20 Desk references.

2. Consider you have created the following code in an implementation class, based on having a Channel.java data definition class:

Channel[] station = new Channel[300]; JOptionPane.showMessageDialog(null, station[2]);

What will be output? Briefly (1-2 sentences) explain your answer using course terminology.

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!