What is the importance of finally block in exception handling ?
Correct Answer
A finally block will always be executed, whether or not an exception is actually thrown Even in the case where the catch statement is missing and an exception is thrown, the finally block will still be executed Last thing to mention is that the finally block is used to release resources like I/O buffers, database connections, etc
More questions
1. Which of the following attribute can hold the JavaScript version?
Correct Answer: Testing an executable application for portability across system platforms and environments, usually for conformation to an ABI specification
5. What is the proper way of setting up an Android-powered device for app development?
Correct Answer: The following are steps to be followed prior to actual application development in an Android-powered device: - Declare your application as ?debuggable? in your Android Manifest - Turn on ?USB Debugging? on your device - Set up your system to detect your device
Correct Answer: For launching an application, we will need to create an intent that explicitly defines the activity that we wish to start For example: Code Intent intent = new Intent(this, MyTestActivityclass); startActivity(intent);
8. Whats the difference between a NSArray and a NSMutableArray?
Correct Answer: A NSArray?s contents can not be modified once it?s been created whereas a NSMutableArray can be modified as needed, ie items can be added/removed from it
9. Values that are used to end loops are referred to as _____ values.