This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.