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!
(Java)
class A {
...
}
class B extends A {
...
}
class C extends B {
...
}
public class MyClass {
public static void main (String args []) {
A x1 = new A ();
B x2 = new B ();
C x3 = new C ();
x1 = x3;
x2 = x3;
System.out.println (x1.equals (x2) && x1.equals (x3));
}
}
(Java)
(Java)
(Java)
1 class A extends B {
2 ...
3 }
(Java)
java.lang.Object
+ - java.lang.Throwable
+ - java.lang.Exception
+ - java.lang.RuntimeException
+ - java.lang.IndexOutOfBoundsException
+ - java.lang.StringIndexOutOfBoundsException
+ - java.lang.ArrayIndexOutOfBoundsException
У методі testSomеValue
можуть бути порушені виключення StringIndexOutOfBoundsException і
ArrayIndexOutOfBoundsException , при цьому вони не обробляються в блоці try – catch .
Яке з перерахованих нижче тверджень буде вірним?
(Java)
(Java)
(Java)