Sarath Tirumani

Greenhorn
+ Follow
since Feb 15, 2021
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sarath Tirumani

List<?> x1= new ArrayList<>();
var x2= new ArrayList<>();

Here x1 is of type List and x2 of type ArrayList
In the book it is mentioned that, we can only assign x2 to a List<Object>.
This might be a potential error as x2 cannot accept List<Object>. Please confirm (x1 can be assigned though)