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!

Скільки об'єктів породжується при ініціалізації масиву new int[3][4] ?

(Java)

View this question
Який з наступних варіантів коду виведе на екран "perform" ?

(Java)

View this question
Які змінні класу А доступні його спадкоємцю класу B, якщо вони визначені не в одному пакеті?

1 class A {

2 public char ch = 'a';

3 protected short charCode;

4 protected short charCodeFin;

5 private int j;

6 int d;

7}

0%
0%
0%
View this question
Скільки блоків catch можуть відповідати блоку try?
View this question
Що буде виведено на екран в результаті виконання наступного фрагмента програми?

int a = 42, i = 0;

while (i <3) {

try {

System.out.print (42 / a);

}

catch (ArithmeticException e) {

System.out.print (42/2);

}

finally {

System.out.print (42/1);

}

a - = 7;

i ++;

}

View this question
Яким буде результат роботи наступного коду?

public abstract class SomeClass implements Runnable {

public Object lock = new Object ();

public void lock () {

synchronized (lock) {

try {

lock.wait ();

System.out.print ( "1");

} Catch (InterruptedException e) { }

}

}

public void notifyThread () {

synchronized (lock) {

lock.notify ();

}

}

public void unlock () {

synchronized (lock) {

lock.notify ();

System.out.print ( "2");

}

}

public static void main (String s []) {

final SomeClass c = new SomeClass () {

public void run () {

lock ();

}

};

final SomeClass c1 = new SomeClass () {

public void run () {

unlock ();

c.notifyThread ();

}

};

new Thread (c) .start ();

new Thread (c1) .start ();

}

}

(Java)

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

public class SomeClass {

public static void main (String args []) {

SomeClass s = new SomeClass ();

System.out.println (sx + "," + sy);

}

int getX () {

return x;

}

int y = getX ();

int x = 3;

}

(Java)

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

public class SomeClass {

public static void main (String [] args) {

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

int b [] = (int []) a.clone ();

a [0] = 0;

System.out.print (b [0]);

System.out.print (b [1]);

System.out.print (b [2]);

}

}

(Java)

View this question
Припустимо, ви моделюєте автомобіль, описуючи його властивості в форматі Java-класу. які з

наступних полів потрібно оголосити динамічними?

(Java)

View this question
Які твердження щодо класів TextComponent , TextField і TextArea вірні?

(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