Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Linked List Test Part 1

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
6
1
Pitanje 1
1.

What is the output of the code?

String a = "abcdef";

String b = a;

System.out.println(b);

1
Pitanje 2
2.

What is the output of the code?

String c = "abcdef";

String d = c;

c = null;

System.out.println(d);

1
1
1
1
Pitanje 3
3.

What is the output of the code?

String e = "abcdef";

String f = new String("abcdef");

System.out.println(e==f);

Pitanje 4
4.

What is the output of the code?

Object g = "hippononamus";

System.out.println(g);

Pitanje 5
5.

What is the output?

ListNode x = new ListNode("3", new ListNode("1",new ListNode("5", null ) ) ) ;

out.println(x.getValue());

out.println(x.getNext().getNext().getValue());

out.println(x.getNext().getValue());

Pitanje 6
6.