1.You need making a copy constructor by yourself in the class A.(Instead the default copy constructor.)
2.The error has no relationship by constructor in the class A.
3.There is no question about the allocating address.
昨天去华为面试，有<em>一个</em>较变态的题，如题。rn已知：无序数组，折半查找，各元素值唯一。rn函数原型是：Binary_Seach(int array, int iValue, int iCount)rnarray是数组，在里面用折半查找的方法找等于iValue的值，找到返回1否则0，iCount是元素个数rnrn我当时就挺纳闷的，无序数组还怎么折半查找，先排序再折半查还不如线性查啊。是不是有什么特别的方法？还是这道题根本就是考排序和折半查找？
1.Give one or two examples of class clean-up operations that should not be delegated to a finalize() method? Explain. rnrn2.How would you implement in Java the equivalent of passing a function pointer in C/C++? rnrn3.What is a potential user-observable consequence of performing I/O tasks from within a Swing listener callback? What is a better alternative? rnrn4.What should be accounted for when updating swing components from an arbitrary thread?