logo

Crowdly

Browser

Add to Chrome

*Програмування на Jаvа

Looking for *Програмування на Jаvа test answers and solutions? Browse our comprehensive collection of verified answers for *Програмування на Jаvа at dl.nure.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Given the following class, which of the following is true? (Choose all that apply)

1: public class Snake {

2:

3: public void shed(boolean time) {

4:

5: if (time) {

6:

7: }

8: System.out.println(result);

9:

10: }

11: }

100%
0%
100%
0%
0%
View this question

Given the following code, which of the answer choices can fill in the blank to print true? (Choose all that apply.)

String m1 = Duration.of(1, ChronoUnit.MINUTES).toString();

String m2 = Duration.ofMinutes(1).toString();

String s = Duration.of(60, ChronoUnit.SECONDS).toString();

String d = Duration.ofDays(1).toString();

String p = Period.ofDays(1).toString();

System.out.println(_____________);

0%
0%
100%
0%
100%
View this question

Which of the following lines of code compile? (Choose all that apply)

0%
100%
0%
0%
0%
100%
View this question

The following method is designed to delete a directory tree recursively. Which of the following properties reflect the method definition? (Choose all that apply.)

1: public static void deleteTree(File file) {

2: if(!file.isFile())

3: for(File entry: file.listFiles())

4: deleteTree(entry);

5: else file.delete();

6: }

100%
0%
0%
100%
0%
0%
View this question

What is the result of the following code snippet?

3: int m = 9, n = 1, x = 0;

4: while(m > n) {

5: m--;

6: n += 2;

7: x += m + n;

8: }

9: System.out.println(x);

0%
0%
0%
0%
100%
0%
View this question

Which of these compile when replacing line 8? (Choose all that apply)

7: char[]c = new char[2];

8: // INSERT CODE HERE

0%
0%
0%
0%
0%
0%
100%
View this question

Which represent the order in which the following statements can be assembled into a program that will compile successfully? (Choose all that apply)

A: class Rabbit {}

B: import java.util.*;

C: package animals;

100%
0%
0%
100%
0%
100%
0%
View this question

Which of the following are true? (Choose all that apply)

0%
100%
0%
0%
0%
0%
100%
View this question

Given the following class, which of the following lines of code can replace INSERT CODE HERE to make the code compile? (Choose all that apply)

public class Price {

 public void admission() {

 INSERT CODE HERE

 System.out.println(amount);

 } }

100%
0%
0%
100%
100%
View this question

Which of the following are true statements? (Choose all that apply)

0%
0%
100%
100%
0%
0%
View this question

Want instant access to all verified answers on dl.nure.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome