Question: Please help answer questions 2, 7 and 7 in Java, thank you. Based on this class diagram, which statement is true? There are public and
Please help answer questions 2, 7 and 7 in Java, thank you.



Based on this class diagram, which statement is true? There are public and private fields. In every class we create, String fields must be private without exception. We will not be able to use the method getWeight() outside of the class. Since color is private, getcolor has to be private as well. Can JUnit tests include more than one per method? Yes, no problem No, it will fail Only if the method being tested returns a String Only if the method being tested returns a numerical value Assume the next variables are written in Python. How would you represent them in Java? x=10y=1.0z=x+y int x=10; float y=1.0f; float z=x+y x=10y=1.0fz=x+y int x=10; float y=1.0 float z=x+y int x=10; float y=1.0; z=x+y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
