Java written test face questions

Source: Internet
Author: User

**

Record some Java written exams, and interview with less certain questions:

The difference between 1,string,stringbuffer,stringbuilder

2,servlet is a single instance or multi-instance

3,hashmap<integer,string>, please write out a possible output result

4,hibernate, the three object states of the session

5,javascript closure, JS get form <input id= "test" type= "name"/>, please describe how to take

There are also sessions in 6,web, where the SessionID is allocated, the session expires when the browser is closed, and SessionID also exists in the client's cookie,

When it shuts down, the client will know that the SessionID has failed, (Expiration time)

7, integer array, know the maximum value is 20, please arrange from small to large, the algorithm complexity of 1

Can I change the value of a 8,final modified variable?

9, where is the memory allocated by the object, heap, stack?

**

Java written test face questions

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.