Android Programming and Technical Programming Technical

How to avoid synchronization problems in threads?
Options
1) Use synchronized block
2) Use Synchronized methods
3) Use synchronized threads
4) both option 1 and 2 is right.

Read Solution (Total 0)

Android Other Question

What is the difference between task, process, application, and thread?

Options
1) task, process, and application every thing is same, but thread is a part of process.
2) process and application are same. Task may contain 1 or more applications, thread is an internal part of a process created by OS.
3) process and task are same. application means program, thread is part of task.
4)process and thread are same. similarly application and thread are same.
Main thread will have a looper. True or false?

Options
1) yes every thread by default will have looper
2) no only handler threads will have loopers
3) only handler threads will have loopers, but we can prepare normal threads looper also.
4) only main thread will have looper