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!

Скільки вкладених компонентів може бути у контейнера ScrollPane ?

(Java)

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

public abstract class SomeClass implements Runnable {

private Object lock = new Object ();

public void lock () {

synchronized (lock) {

try {

lock.wait ();

System.out.print ( "1");

} Catch (InterruptedException e) { }

}

}

public void unlock () {

synchronized (lock) {

lock.notify ();

System.out.print ( "2");

}

}

public static void main (String s []) {

new Thread (new SomeClass () {

public void run () {

lock ();

}

}). Start ();

new Thread (new SomeClass () {

public void run () {

unlock ();

}

}). Start ();

}

}

(Java)

0%
0%
0%
50%
0%
View this question
Для чого потрібні класи-обгортки?

(Java)

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

try {

throw new ArithmeticException ();

System.out.print ( "2");

}

catch (ArithmeticException e) {

System.out.print ( "1");

}

finally {

System.out.print ( "0");

}

0%
0%
0%
View this question
Який метод потрібно викликати, щоб ініціювати перерисовку компонента?

(Java)

0%
0%
0%
0%
View this question
Який клас в Java є метаклассом?

(Java)

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

class Square {

int s (int a, int b) {

System.out.print (a * b);

return a * b;

}

void s (int r) {

System.out.print (3.14 * r * r);

}

}

public class MyClass {

public static void main (String args []) {

Square x = new Square ();

xs (3, 12);

xs (1);

}

}

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

(Java)

View this question
Яким кодом слід доповнити рядок 1 такого фрагмента програми, щоб в ньому визначався пакет NewPack?

1 ...

2 class A {

3 int a, b;

4 void sum () {

5 System.out.print (a + b);

6}

7}

8 class B extends A {

9 int c, d;

10 B (int b1, int b2) {

11 super ();

12 c = b1;

13 d = b2;

14}

15 void sum () {

16 System.out.print (c + d);

17}

18}

View this question
Яке ключове слово використовується для позначення блоку обробки викинутого виключення?
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