there is no way var al = new ArrayList<>() can fit on line 1, assuming we're talking about field declaration, source: https://openjdk.org/projects/amber/guid ... n%20types.public class X {
//line 1: insert code here
}
I think we should either point out that //line 1 could be part of a method (in that case all suggested answers would make sense) or assume that the class defines other instance members (which would likely make option String s = asdf valid, assuming that the field asdf is declared somewhere within the scope of X and is of type String)
Thanks,