logo

Crowdly

Browser

Add to Chrome

Course 19

Looking for Course 19 test answers and solutions? Browse our comprehensive collection of verified answers for Course 19 at bt.nixs.com.

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

Який буде результат компіляції та виконання фрагмента коду:

class MyClass12 {

int a = 10;

public static void main(String[] args) {

new MyClass12().print();

}

public void print() {

int a = 8;

System.out.println(a);

}

}

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

Який буде результат компіляції та виконання фрагмента коду:

1. class MyClass8 {

2. public static void main(String[] args) {

3. new MyClass8().pass();

4. }

5.

6. public void pass() {

7. int a = 10, b = 20;

8. print(a);

9. }

10.

11. public void print(int a) {

12. int c = b / a;

13. System.out.print(c);

14. }

15. }

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

Який буде результат компіляції та виконання фрагмента коду:

int []a = {1, 2, 3, 4, 5, 6};

int i = a.length - 1;

while (i > 0) {

System.out.println(a[i]);

i--;

}

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

Яким буде результат компіляції та виконання фрагмента коду:

1. class MyClass7 {

2. public static void main(String[] args) {

3. int a[] = {1, 2, 3, 4};

4. System.out.println(a instanceof Object);

5. }

6.}

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

Який буде результат компіляції та виконання фрагмента коду

class MyClass64 {

public static void main(String[] args) {

int i = 10;

int n = ++i % 5;

System.out.println(i + " " + n);

}

}

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

Індекс останнього елементу масиву

0%
100%
0%
0%
View this question

 A та E - класи

B і D - інтерфейси

Які із тверджень вірні? 

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

Вкажіть допустимі ідентифікатори

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

Скільки екземплярів класу String буде створено при досягненні рядка 7:

1. class MyClass73 {

2. public static void main(String[] args) {

3. String s = “Java”;

4. s.concat(“ SE 6”);

5. s.toLowerCase();

6. System.out.print(s);

7. // how many?

8. }

9. }

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

A та E - класи

B і D - інтерфейси

C-абстрактний клас

Які із тверджень вірні? 

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

Want instant access to all verified answers on bt.nixs.com?

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

Browser

Add to Chrome