logo

Crowdly

Browser

Add to Chrome

Course 19

Looking for Course 19 test answers and solutions? Browse our comprehensive collection of verified answers for Course 19 at bt.nixs.com.

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

Який буде результат компіляції та виконання фрагмента коду:

class MyClass44 {

public static void main(String[] args) {

boolean a = false;

boolean b = true;

boolean c = false;

boolean r1 = a || b && c;

boolean r2 = b || c && a || c;

System.out.println(r1);

System.out.println(r2);

}

}

100%
0%
0%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

1. class MyClass9 {

2. public static void main(String[] args) {

3. int a[][] = new int[3][];

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

5. a[2] = new int[] {4, 5};

6. System.out.print(a[1][1]);

7. }

8. }

0%
0%
100%
0%
0%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass43 {

public static void main(String[] args) {

boolean a = true;

boolean b = false;

boolean c = false;

boolean r1 = a || b && c;

boolean r2 = b || c && a || c;

System.out.println(r1);

System.out.println(r2);

}

}

0%
0%
100%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass63 {

public static void main(String[] args) {

int i = 10;

int n = i++ % 5;

System.out.println(i + " " + n);

}

}

0%
0%
100%
0%
0%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass93 {

public static void main(String args[]) {

int x =10;

int y = new MyClass93().change(x);

System.out.println(x + y);

}

int change(int x) {

x = 12;

return x;

}

}

100%
0%
0%
0%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass38 {

static int x = 10;

public static void main(String[] args) {

for(int x = 5; x < 5; x++) {

}

System.out.print(x);

}

}

0%
0%
0%
100%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass73 {

public static void main(String[] args) {

String s = “Java”;

s.concat(“ SE 6”);

s.replace(‘6’, ‘7’);

System.out.print(s);

}

}

0%
0%
0%
100%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class Person {

Person(String s, int i) {

++pid;

name = s;

age = i;

}

static int pid;

int age;

String name;

}

class Test {

public static void main(String[] args) {

Person p1 = new Person(“John”, 22);

Test te = new Test();

Person p2 = te.change(p1);

System.out.println(p2.pid + “ “ + p2.name + “ “ + p2.age);

System.out.println(p1.pid + “ “ + p1.name + “ “ + p1.age);

}

private Person change(Object o) {

Person p2 = (Person) o;

p2.age = 25;

return p2;

}

}

0%
0%
0%
100%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass4 {

public static void main(String[] args) {

int a[] = {1, 2, 053, 4};

int b[][] = {{1, 2, 4}, {2, 2, 1}, {0, 43, 2}};

System.out.print(a[3] == b[0][2]);

System.out.print(“ ” + (a[2] == b[2][1]));

}

}

100%
0%
0%
0%
0%
View this question

Який буде результат компіляції та виконання фрагмента коду:

class MyClass2 {

public static void main(String args[]) {

int x = 0, y = 10;

try {

y /= x;

}

System.out.println(“/ by 0”);

catch (Exception e) {

System.out.println(“error”);

}

} }

0%
0%
0%
100%
0%
View this question

Want instant access to all verified answers on bt.nixs.com?

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

Browser

Add to Chrome