java - Whats the difference between vs -



java - Whats the difference between <[]> vs <null> -

<[]> vs <null>

the first empty set containing no objects. can created code:

set<node> expected =new hashset<>();

the sec set containing 1 null element. if not, can null have type set?

not sure how code sec item.

<[]> means object include no elements. null not element. after u phone call construction method new hashset<>();, set point real memory. null point nowhere.

java collections junit set

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -