2015 written interview experience--java Basics

Source: Internet
Author: User
Tags try catch

1. The size of the nine basic data types, as well as their encapsulation class.

2. Can switch use string to make arguments?

Answer: Swith can use parameter types in the Java language: only convertible int values, strings or enum variables is permitted

can be automatically converted to an integer type (byte,short,int), a string type, an enumeration type.

Java cannot be a boolean,float,double,long of the switch parameter (cannot be converted directly to int).

3. The difference between equals and = =.

4. What are the common methods of object?

5. Java Four kinds of references, weak strength soft virtual, used to the scene.

6. The role of Hashcode.

7. The difference between ArrayList, linkedlist and vectors.

8. The difference between String, StringBuffer, and StringBuilder.

9. Features and usage of MAP, Set, List, Queue, stack.

The difference between HashMap and Hashtable.

HashMap and Concurrenthashmap differences, hashmap of the underlying source code.

The difference between TreeMap, HashMap and Lindedhashmap.

Collection package structure, and the difference between collections.

Do you have return,finally in Try Catch finally,try?

Excption and error packet structure. Oom What situation you have encountered, SOF what you have encountered.

Three features and meanings of Java-oriented objects.

The meaning of override and overload to distinguish.

The difference between interface and the abstract class.

The difference between static class and non static class.

The implementation principle of Java polymorphism.

21. Two ways to implement Multithreading: Thread and runable.

22. Thread synchronization method: Sychronized, lock, Reentrantlock and so on.

23. Level of Lock: Method Lock, Object lock, Class lock.

24. Write out the producer consumer model.

Threadlocal's design philosophy and role.

ThreadPool usage and advantages.

The other things in concurrent bag: Arrayblockingqueue, Countdownlatch and so on.

The difference between wait () and sleep ().

The ratio of foreach to normal for loop efficiency.

Java io and NiO.

31. The reflection acts on the principle.

32. Generic features,list<string> can be converted to list<object>.

33. Principles and features of several ways to parse xml: DOM, SAX, pull.

Compare Java with C + +.

Java1.7 and 1.8 new features.

36. Design mode: Single case, factory, adapter, responsibility chain, observer, etc.

Use of the Notoginseng. Jni.

2015 written interview experience--java Basics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.