Huawei Company Programming Basics

What is the correct signature of hashCode()?

a) int hasCode();
b) int hashCode(int);
c) int hashCode(int,int);
d) double hashCode();

Read Solution (Total 3)

Huawei Other Question

Which excess modifier is applicable to an interface?

a)public
b)protected
c)private
d)all of these
Select the correct option.

a)ArrayList is synchronized and Vector is unsynchronized.

b)ArrayList is unsynchronized and Vector is synchronized.

c)Both ArrayList and Vector are synchronized.

d)Both ArrayList and Vector are unsynchronized.