2016 普华永道面试题

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.youkuaiyun.com/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






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值