An answer sparked a heated discussion! Share a little interview experience

I was pushed by a friend over there. After my resume passed, I made a telephone interview.

The interview time was about 10:30. I arrived downstairs about 20 minutes in advance. The company floor is a little complicated. It took about ten minutes to get to the destination (about the canteen).

In the first round, the two interviewers took turns asking questions. The first side lasted about an hour, and it was almost time for dinner at 11:40. I'm ready to go after the interview. The two interviewers asked me to wait a minute, and then I went directly to call the second interviewer. I'll watch everyone eat in the canteen.

After waiting for about ten minutes, the second interviewer called me to the 31st floor.

Also two interviewers, took turns asking for about an hour. It was almost 1:00 p.m. after the second meeting. The interviewer took me to the canteen for dinner, and then helped me make an appointment for the HR meeting at 2:00 p.m.

The whole process is very cool. There are three rounds of interviews, two rounds of technical interviews (both two interviewers) and one round of HR interviews.

1. Several ways to store data: sharepreference, database and file

2. What are the life cycle methods when using Android database: oncreate and onupgrade

3. What should I do if I want to add fields to the database?

4. Is database read / write thread safe?

5. The implementation principle of sharepreference is thread safe. What is the difference between apply and commit?

The commit method has a Boolean return value. It is an atomic operation when data changes are stored. When two editor objects operate on a shared preferences parameter at the same time, the last editor calling the commit method always changes the last data value.

The apply method has no return value. When two editors edit the preferences object at the same time, it is also the last object that calls the apply method to edit data. The commit operation of apply is also atomic, but it is only committed to memory, which is faster.

6. Handler mechanism

7. Principle of HashMap, hashtable and concurrenthashmap

8. Five layer model of computer network

9. HTTP status code

10. The most difficult problem you encounter? I said that our company's project does not adopt the dynamic loading framework, but the later integrated U3D project needs dynamic loading, but only so and resource dynamic loading are needed. Functionally, the third library does not support our needs. I just looked at the source codes of major versions and supported dynamic repair replacement loading, so and assets resource dynamic repair loading, Then he said the specific details again.

[thought map of Android detailed knowledge points (skill tree)]

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>