Câu hỏi phỏng vấn Android
Câu hỏi

What are some difference...

Câu trả lời

Here are the key differences between ART (Android Runtime) and Dalvik:

Compilation Approach

  • Dalvik uses Just-In-Time (JIT) compilation, where DEX bytecode is converted to native machine code on demand when the app is launched[1][2][3]. This results in slower app startup times.
  • ART uses Ahead-Of-Time (AOT) compilation, where DEX bytecode is fully compiled to native machine code when the app is installed[1][2][3]. This improves app launch performance.

Performance

  • ART provides significantly faster app performance and smoother UI compared to Dalvik[2][3]. Apps are more responsive with ART.

Battery Life

  • ART improves battery life by reducing CPU cycles needed to launch apps[1][2]. The AOT compilation approach is more efficient.

Storage Usage

  • ART requires more storage space compared to Dalvik, as the compiled native code takes up more space than DEX bytecode[2][3]. This can be an issue on low storage devices.

Boot Time

  • Dalvik has faster boot times since the runtime cache is built grad...
senior

senior

Gợi ý câu hỏi phỏng vấn

junior

What is View Group? How are they different from Views?

expert

Explain when would you call getApplicationContext() and why?

expert

What is Intent vs Sticky Intent vs Pending Intent ?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào