This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
If we are giving-- List<Smtable> svalues = new List<Smtable>(); it will show some Error. But... if we are creating an object in ArrayList like this-- ArrayList<Smtable> svalues = new ArrayList<Smtable>(); no Error is shown.
Why is it so? can't we create an object in type List?
And when it is given like this--- List<Smtable> smlabels = jobmgr.getSmvalues(); it wont show any Error and works fine.