Question: Java Test 21) What is Math.ceil(3.6)? 21) A) 3 B) 3.0 C) 4.0 D) 5.0 4 22) ________ is to implement one method in the

Java Test

21) What is Math.ceil(3.6)?

21) A) 3 B) 3.0 C) 4.0 D) 5.0 4

22) ________ is to implement one method in the structure chart at a time from the top to the bottom.

22) A) Bottom-up and top-down approach B) Top-down approach C) Stepwise refinement D) Bottom-up approach

23) What is the output of the following program? import java.util.Date; public class Test { public static void main(String[ ] args) { Date date = new Date(1234567); m1(date); System.out.print(date.getTime() + " "); m2(date); System.out.println(date.getTime()); } public static void m1(Date date) { date = new Date(7654321); } public static void m2(Date date) { date.setTime(7654321); } }

23) A) 7654321 1234567 B) 1234567 7654321 C) 1234567 1234567 D) 7654321 7654321

24) Which of the following statement is most accurate? (Choose all that apply.)

24) A) An object may contain other objects. B) A reference variable refers to an object. C) An object may contain the references of other objects. D) A reference variable is an object.

25) How many JFrame objects can you create and how many can you display?

25) A) three B) one C) two D) unlimited

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!