Analytical:a.arraylist can store null values, or they can store duplicate values, without any effect on the collection. B. Once the instantiation does not change its size, this is the attribute of the array. The capacity of a collection is self-expanding. C.arraylist can store duplicate values and have no effect on the collectionD.arraylist No capacity This attribute, translated is the meaning of capacity, ArrayList capacity will automatically expand without giving value, the default value is ten.parsing:A. Compilation is not an error, the Write method has two parameters, one is an int is a byte array, and char can be considered to be an integer that is smaller than the int range All compilation does not go wrongB. Open the impossible with NotepadC. The code does not have an exception with text open write is aD. Writing only one char type cannot be garbledparsing:the three main systems of the Java Collection class are: Map Set Listiterator is an interface, and it's just an iterator. parsing:Listiterator is the addition of an element to the list collection through the Add () method.parsing:add elements to the ArrayList collection with a For loop, there is no error in the code, but the Java virtual machine gives the [], all B is correctparsing:set is an interface to the list at the same level, and there is no inheritance relationship between the two. parsing:The elements in the HashMap collection are unordered.parsing:HashMap is non-thread safe (unsynchronized), allows the key value to be null, and Hashtable is not allowed, Hashtable is thread safe (synchronous), all hashmap are more efficientparsing:log4j Output level: Fatal>error>warn>info>debugparsing:a method or field specific to a subclass cannot be called with a parent class object.
Analysis of the error problem in Java OOP exam