您的位置:首页 > 职场人生

2016 普华永道面试题

2016-06-16 17:23 591 查看
1. JAVA

*  OVERLOAD   VS    OVERRIDE

    > OVERLOAD

       Among parameter type, number and sequence should have at least one different;

       Can't overload functions those just have different return value, parameter should also have differences;

       Can be used in parent , child and peer class.

    > OVERRIDE

      
The function name, parameters and return values should keep the same;

       Can not override function defined as a final one;

       Can be used in parent and child class;

       In child class, the override function can't diminish the access authority to method defined in parent class.

      
Also, in child class, the override function can't throw more exceptions than methods in parent class did.

   Override show polymorphism between parent and child, Overload show polymorphism between peer class.

*  STRING     VS    STRINGBUFFER      VS    STRINGBUILDER

   
> String value can not be changed ;                                   ->private final char value[];

    > StringBuffer and stringbuilder value can be changed ;                 ->char[]
value;


       It's better to use stringbuilder for source without thread. More efficient than stringbuffer.

       But if has thread involved, should use stringbuffer to ensure thread can be safe.

*  HOW TO UNDERSTAND OBJECT-ORIENTED CONCEPT IN JAVA

     Encapsulation, Inheritance, polymorphism

2. JAVASCRIPT

* HTML5 NEW FEATURES

   1. New Doctype

   2. No more types for scripts and links

   3. The semantic for header and footer

   4. Hgroup

   5. Mark Element

   6. Figure Element

   7. Small Element Redefined

   8. PlaceHolder

   9. Required Attribute

   10. Autofocus Attribute

   11. Audio support

   12. Video support

   13. Preload attribute in video element

   14. Display control

   15. Regular Expression 

From http://www.csdn.net/article/2012-02-21/312179
* <DIV> VS <IFRAME>

* HOW TO CREATE FUNCTION FOR OBJECT IN JS

* HTTP PROTOCAL

 

* GET    VS    POST

   >
Get is used to get data from the server, and POST is used to transfer data to server;

   > Post is much safer than Get, for Get, the data is placed in the request of URL, some private data in URL may be seen by the third party. Also, user can see the submitted data from browser directly. As for
POST, all operation is invisible.

   > The amount of data transmitted by GET is much smaller than POST, mainly due to the limitation of the length of URL. Then, POST can be used to transmit a large amount of data, so it can be used to upload file.

 

* WEBSTORAGE & JSON




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: