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!

Дано код:

    class MyException extends Exception {}

Які з наведених нижче виразів генерують виключення MyException?

0%
0%
0%
0%
0%
0%
View this question
Дано код:

public class Test {

  public static void main(String[] args) {

    new B();

  }

}

class A {

  static { System.out.print(1); }

  A() { System.out.print(2); }

}

class B extends A {

  static { System.out.print(3); }

}

що він виведе?

0%
0%
0%
0%
0%
View this question
Дано код:

public class Test {

  public static void main(String[] args) {

    new B();

  }

}

class A {

  static { System.out.print(1); }

  A() { System.out.print(2); }

}

class B extends A {

  { System.out.print(3); }

}

що він виведе?

0%
0%
0%
0%
0%
0%
View this question
Дано код:

public class Test {

  public static void main(String[] args) {

    new B();

  }

}

class A {

  { System.out.print("1"); }

  A() { System.out.print("2"); }

}

class B extends A {

  static { System.out.print(3); }

}

що він виведе?

0%
0%
0%
0%
0%
0%
View this question
Дано код:

public class Test {

    int x = m();

    { System.out.print(1); }

    Test() { System.out.print(2); }

    int m() {

        System.out.print(3);

        return 0;

    }

    public static void main(String[] args) {

        new Test();

    }

}

що він виведе?

View this question
Дано метод:

void m() throws Exception {}

Які виключення допустимі в секції throws методу, що перевизначає (override) даний метод?

View this question
Дано текст:

<html><body></body></html>

Вкажіть всі регулярні вирази, які визначать рівно 4 входження (4 підрядки):

<html>, <body>, </body>, </html>

У дужках вказано регістр літер.

0%
0%
0%
0%
0%
0%
0%
View this question
Дано текст:

    

ab cd 12 34

Вкажіть всі регулярні вирази, які визначать рівно 4 входження (4 підрядки):

ab, cd, 12, 34

У дужках вказано регістр літер.

0%
0%
0%
0%
0%
0%
View this question
Вкажіть всі вирази, які скомпілюються.

Усі необхідні типи пакету java.util імпортовано.

0%
0%
0%
0%
0%
0%
View this question
Дано метод:

    void m() throws java.io.IOException,

            NullPointerException {}

Які виключення допустимі в секції throws методу, що перевизначає (override) даний метод?

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