Black Horse Android interview questions

Source: Internet
Author: User

HTC ethereum Android interview questions

1. What about object-oriented features?
2. What is the difference between abstract class and interface?
3. GC garbage collection mechanism
4. EJB
5. Broadcast
6. Exceptions in Android
7. Why does forseclose force close?
8. Android resolution adaptation
9. Android Layout
10. XML parsing Methods
11. Write a single example
12. Reflection: Calculate the field value and method name (this may be used by a framework company)

Motorola Android interview questions

1. Two people interview, one of which said a lot
2. Demonstrate the project you wrote on your resume (on the tablet)
3. Let's talk about the role of surfaceholder. Callback in your game.
4. Why is surfaceview more suitable for games?
5. What is the role of each folder under Res?
6. What does drawable-hdpi DPI mean?
7. How does your dart launch speed be controlled?
8. How do you move the background image? How can I adapt the screen size?
9. What bugs (difficulties) Did you encounter when you were playing games and how did you solve them?
9. How do I start a service? Function
10. What is the relationship between windows and activity?
11. One activity opens another activity and another activity? What happened when I went back?
12. How are constants defined in Java?
13. Can the constant final string STR = "AB" be changed to "Abd"? Why?
14. What is the role of stringbuffer?
15. Write a method to exchange the values of two variables?
16. Explain the usage of the task
17. Do you have any questions?
18. How much do you know about JNI?

Questions about Apsara stack android

1. What is the difference between sleep and wait? One is used to rest the thread, and the other is used to suspend the thread.
2. What is the use of class frontend addition + final? Solution
3. deadlock P
4. What is the role of finally final finalize? Done
5. What is the difference between synchronization and Asynchronization? P
6. How to Implement inter-process communication? OK
7. JNI
8. Task
9. Soft reference
10. How to Use interfaces to connect two layers

Interview Questions of a Company

Java question
1. When X. Equals (Y) is equal to true, X. hashcode () and Y. hashcode () can be different. Is this true?
2. What is Java serialization?
3. MVC

Android question
1. Several storage methods of Android
2. What are the startup methods of activity and tast?
3. Android Layout
4. Android animation Modes

1. Shengtuo Media
A) intent-filter attributes and their meanings;
B) contentprovider permission;
C) Describe the SQLite database (type and relationship );
D) How to dynamically load the layout;
E) differences between URL and Uri;
F) differences between the sax, Dom, and pull parser.
2. yy backup
A) ordered output of array element size;
B) the output file name is traversed by the external memory file;
C) onactivityresult (INT requestcode, int resultcode, intent data) method usage;
D) how to adapt the layout file to the wxga800 screen;
E) customize a contentprovider.
3. Jian Yi Technology
A) usage of aidl.
4. Huaxin BoYan Network Technology Research Institute
A) how to enable the program to start automatically;
B) how to prevent programs from being automatically destroyed by the system;
C) How to automatically download a program to your mobile phone by clicking a link on the website and install and run it automatically;
D) Talk about the broadcast receiver and its usage.
5. CLP tianxun
A) Describe the project you are working on. What are the characteristics of the project and how the project attracts customers;
B) MD5 encryption principle. Can it be decrypted.
6. lingxin Interaction
A) during project development, you are in the project team position, project process control, and whether the project can be downloaded online;
B) Your Opinion on B2C website applications.
7. ease of use
A) Draw a logical diagram of your project and give a brief explanation;
B) You can use sharepreference to process data stored in the SQLite database in your project. Why not use sharepreference;
C) For listview optimization, write a piece of key code;
D) Comparison of tabhost and gallery efficiency;
E) How to Deal with the loading problem caused by inertia when you drag the listview with your fingers quickly;
F) HTTP request, get and POST request headers.
8. garvi communications
A) Write a multi-threaded instance code;
B) enter a string that contains Chinese and English characters in the console. When the output is captured in any number of digits, the output must be complete without the occurrence of half a Chinese character;

Innovative factory Android interview questions
1. String S = new string ("ABC"); New has several objects
2. Differences between overload and override
3. Try {return} catch {} finally {}; return or finally first.
4.5 running exceptions.
6. Differences between abstract and Interface
7. hashtable and hashset

Android question:

1. What is the logoff relationship of handle?
2. Three reasons for memory overflow
3. asntask asynchronous task

Algorithm question:

Binary tree traversal

The script or macro gets the system version.

Sometimes you don't have to answer the correct questions, because you may not remember some things.
1. String S = new string ("ABC"); New has several objects
Two new objects. I have read the source code of string before. The field in string also has an object.

2. Differences between overload and override
The former is overloaded, and multiple parameters with the same name can be written in different types, but the return value must be the same method, or the number of parameters with the same name can be written in different ways, with or without a return value.
The latter rewrite refers to the method in which the subclass overwrites the parent class. This is generally used for polymorphism. The subclass points to the parent class reference and calls the method with the parent class reference when calling the method, the subclass method is actually called.
It should be noted that rewriting requires conditions. The method of the parent class cannot be final, and the method of finaly modification cannot be overwritten.

3. Try {return} catch {} finally {}; return or finally first.
I really don't know this. This is rarely used when I write a project. If I test it for me, I will open a breakpoint and track it in a single step to see the actual running sequence, if you need to know the principle, I will go through the book "deep understanding of virtual machines" and get the exact answer. At my current level, return should be executed first.

4.5 running exceptions.
Nullpiontexception
Classcastexception
Boundarrayexception
Ioexception
Filenotfoundexception
(I do not know if I remember correctly =)

6. Differences between abstract and Interface
Simply put, the latter is a subset of the former.
Abstract can modify abstract methods. A Class must use abstract to define the class as long as there is an abstract method.
Interfaces are used to modify classes. The methods in these classes are abstract methods. Therefore, when defining interfaces, you can directly remove the modifiers. The system will add them by default. All the fields in the interface are public constants, that is, the fields modified by public static final.

7. hashtable and hashset
Both use hash values to store data in the set.
The former can add multiple identical objects, and the latter can only add objects, that is, equals cannot be true.
It should be noted that after the object is stored in these two sets, do not change the field required for its equals determination. Otherwise, it cannot be obtained during get because the hash value is changed, the location of get will also change, but the storage location will not change, which may cause memory leakage.
Exposure.

 

Related Article

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.