I am new to Apex. When I query Accounts in a List it shows all the records in a list without for loop. But When I query the same in set, it only shows One record. When I Check Size of the set, it displays actual size 100.
set<Account> setAcc= new Set<Account>([select id from Account where Name Like 'Test%' limit 100 ]);
system.debug('Debugging Set of Account'+ setAcc);//Shows only one record
System.debug('Debugging Set of Account Size'+ setAcc.size());// shows actual size i.e, 100