* Required
*Examples | Tests |
---|---|
HashMap() is a constructor, which should be called before any method for a certain object.
|
*
True
False
|
HashMap() is a constructor, which should be called before any method for a certain object. Thus, its appearance will not follow other methods.
|
*
True
False
|
HashMap() is a constructor, which should be called before any method for a certain object. Thus, its appearance will not follow other methods.
|
*
True
False
|
A not empty HashMap object could not be empty without any operation followed. This will not result in an error since it will never happen.
|
*
True
False
|
After calling constructor, we could call methods like put(), putAll(), isEmpty() et al. before calling size().
|
*
True
False
|
For a HashMap object we can always add something by calling put() without followed by calling method size(), this would not incur any error in program.
|
*
True
False
|
Method remove() could be immediately followed by methods like put(), putAll(), isEmpty() et al. There is no error to call remove() first then immediately call put().
|
*
True
False
|