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
* 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
相关文章推荐
- Spark 和hadoop的一些面试题2(准备)
- 【.Net码农】GridView事件大全
- 【.Net码农】Gridview中Datakeys 通过主键取得各列的值。
- Android ListView 相关问题(面试常用)
- 面试心得
- 面试小谈
- [.Net码农]gridview再次绑定的时候 标题字体变大 怎么解决
- 面试题-Integer与int的种种比较你知道多少?
- 剑指offer-面试题20:顺时针打印矩阵
- 面试题11:数值的整数次方的计算
- 程序员理想中的工作环境 转自ewangplay
- 我是一个无聊的程序员(但是我以此为荣)
- 你想在职场上变身成为《欢乐颂》霸气女高管安迪吗?
- 简历投递
- 在职场中混,"讲演稿"的重要性
- 职场人打开工作邮箱的频率与公司业绩相关吗?
- 剑指offer-面试题18:树的子结构
- 15个 MySQL 基础面试题,DBA 们准备好了吗?
- 总结的一些MySQL数据库面试题
- 黑马程序员:Xcode8网盘下载链接及更新简述