正在加载图片...
Disadvantages of container o Cannot hold primitives OHave to wrap it o Lose type information when put object into container OEverything is just Object type once in container o Have to do cast when get it out OYou need to remember what's inside o Java do run time type check OClassCastExceptionDisadvantages of container lCannot hold primitives ¡Have to wrap it lLose type information when put object into container ¡Everything is just Object type once in container lHave to do cast when get it out ¡You need to remember what’s inside lJava do run time type check ¡ClassCastException
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有