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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -