logo

Crowdly

Browser

Add to Chrome

Програмування мовою Java

Looking for Програмування мовою Java test answers and solutions? Browse our comprehensive collection of verified answers for Програмування мовою Java at moodle.chnu.edu.ua.

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

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

public class Test {

public static void main (String [] args) {

Test t = new Test ();

t.test ();

}

void test () {

Test: {

test:

for (int i = 0; true; i ++) {

if (i% 2 = = 0) continue test;

if (i> 10) break Test;

System.out.print (i);

}

}

}

}

(Java)

View this question
Що буде виведено на екран операцією друку в сьомому рядку наступного фрагмента програми, якщо відомо, що при створенні об'єкта x використовувався конструктор за замовчуванням?

1 class A {

2 int x;

3 int y = 0;

4 A (int a) {y = a; }

5}

6 ...

7 System.out.print (xx + "" + xy);

8 ...

0%
0%
0%
0%
0%
View this question
Яке значення з'явиться на консолі після виконання наступної програми?

class Parent {

int x = 2;

public void print () {

System.out.println (x);

}

}

class Child extends Parent {

int x = 3;

public static void main (String [] args) {

new Child (). print ();

}

}

(Java)

View this question
Яке твердження щодо автоматичного збирача сміття ( garbage collector ) вірно?

(Java)

View this question
Яке з наведених тверджень про абстрактний клас є неправильним ?
View this question
Яке твердження щодо конструкторів класу правильне? (Мова програмування Java)
View this question
Яке твердження щодо мови Java вірно?

(Java)

0%
0%
0%
0%
View this question
Спадкування це:

(Java)

View this question
Які твердження щодо стану об'єкта вірні?

(Java)

View this question

Для яких елементів класу працює поліморфізм?

(Java)

View this question

Want instant access to all verified answers on moodle.chnu.edu.ua?

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

Browser

Add to Chrome