Mention the two types of exceptions?

1 Answer

Answer :

A: Checked Exceptions – Exceptions which are checked (handled) during compile time by the compiler.
Example: IOException.

Unchecked Exceptions – Exceptions which are not checked during compile time.
Example: ArrayIndexOutOfBound.

Related questions

Description : Mention other ways in which java handles exceptions.

Last Answer : A: Java can handle exception using the try-catch block, throws keyword and throw keyword.

Description : What are exceptions?

Last Answer : A: Exceptions are runtime errors which prevent the program from working normally.

Description : How many types of Exceptions are there

Last Answer : There are 2 types of exceptions. They are a) System Exceptions e.g. When no_data_found, When too_many_rows b) User Defined Exceptions e.g. My_exception exception When My_exception then

Description : What are the various types of Exceptions ?

Last Answer : User defined and Predefined Exceptions.

Description : .. It was discussed on one of the TV channels this week that where there is healthy tap water, it is not worth sticking to mineral water. Is that true? My main question is whether you know much ... .5 liter bottles). (I would be interested in the opinion of professionals and non-fillers !!!)     

Last Answer : I think it would be hard to tell which of the two mineral waters is better. I’ve also heard that drinking mineral water shouldn’t be overstated either. Perhaps the best solution is to drink your home tap water even cleaned with a local filter. These devices are not cheap, but they are very good. 

Description : Is it universally consistent that wherever the Metric system is used, temperature is registered in Celsius, and wherever the Imperial system (feet, inches, miles) is used, the Fahrenheit system is used? Are there any exceptions?

Last Answer : According to Wikipedia , Celsius is used by all countries except the United States, the Bahamas, Belize, the Cayman Islands and Liberia. According to the CIA , At this time, only three countries ... Metric would be Burma. Perhaps related, the CIA is still calling Burma Burma rather than Myanmar.

Description : For those of you that are anti-choice: Why should there be exceptions for rape and incest?

Last Answer : answer:Well, we don’t have any of those here soo…. no they are not worth any less

Description : Customer only restrooms, to make exceptions are being disingenuous to the policy?

Last Answer : answer:I have a rule too. Don’t patronize any establishment which denies human dignity.

Description : When the political left vilifies " the rich" why don't they make exceptions for "the rich" people who behave according to their standards?

Last Answer : Perhaps it would draw undue attention to the fact that they themselves are quite wealthy as well?

Description : Is it possible to gain access to a Masters Program without taking the MAT test? Are there ever exceptions that can be applied for?

Last Answer : If your program is at a specific school, I would assume only their admissions department can authorize that. However, if you are working with a specific supervisor (not sure how your system differs from ... that at the graduate level, if your supervisor wants you, then admissions rules can be bent.

Description : I' before 'E' except after 'C'. But not 'their'. Any other exceptions to this rule?

Last Answer : Chief.

Description : Are there exceptions to "show not tell" in fiction writing?

Last Answer : answer:The second example you posted sounds like an example of purple prose, which is overly showy decorative language that draws attention to itself. I think the best option is to take the Buddhist ... keep in mind that stories can seem choppy and dry if there is too little description involved.

Description : What is the "core networking" in my firewall exceptions list, and should it be checkmarked?

Last Answer : Each Windows Firewall exception is involved with some bit of functionality that you will lose if they are turned off. Basic TCP/IP traffic such as DHCP, DNS, ICMP, Group Policy, and so on are supported ... rule group are disabled, your machine can't talk on the network. Make sure that it's enabled.

Description : Exceptions to the "I before E..." rule?

Last Answer : eider, as in eider down.

Description : Which of the following provide exceptions to third law of thermodynamics ?

Last Answer : Which of the following provide exceptions to third law of thermodynamics ? A. CO B. ice C. `CO_(2)` D. All the above

Description : The ‘Principle of Exception’ states that management should– (A) Check everything without exception (B) Invariably take corrective action without exception (C) Accept exceptions in emergencies (D) Concentrate their attention on exceptions

Last Answer : Answer: Concentrate their attention on exceptions

Description : Most of the fibre forming polymers are crystalline in nature, one of the exceptions being __________ which is amorphous in nature. (A) Nylon (B) Polyacrylonitrile (C) Polypropylene (D) Polyester

Last Answer : (B) Polyacrylonitrile

Description : Why is it a bad idea to throw your own exceptions?

Last Answer : Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.

Description : Are there any important exceptions for this general rule?

Last Answer : Pepsin (optimum pH 1-2), alkaline phosphatase (optimum pH 9-10) and Acid phosphatase (4-5).

Description : General exceptions are contained in (a) Chapter III of IPC (b) Chapter IV of IPC (c) Chapter V of IPC (d) Chapter VI of IPC

Last Answer : (b) Chapter IV of IPC

Description : Which are benefit of input/output interrupt: a. It is an external analogy to exceptions b. The processor initiates and perform all I/O operation c. The data is transferred into the memory through interrupt handler d. = Alllof these

Last Answer : d. = Alllof these

Description : The method of synchronising the processor with the I/O device in which the device sends a signal when it is ready is? a) Exceptions b) Signal handling c) Interrupts d) DMA

Last Answer : Interrupts

Description : To overcome the lag in the operating speeds of the I/O device and the processor we use ___________ a) BUffer spaces b) Status flags c) Interrupt signals d) Exceptions

Last Answer : Status flags

Description : Critical temperature is defined as the temperature above which a gas will (A) Not liquify (barring exceptions) (B) Immediately liquify (C) Never liquify however high the pressure may be (D) None of these

Last Answer : (C) Never liquify however high the pressure may be

Description : Is using of exceptions in C# recommended?

Last Answer : Yes, exceptions are the recommended error handling mechanism in .NET Framework.

Description : Difference between Checked and Unchecked exceptions ?

Last Answer : Ans. Checked exceptions and the exceptions for which compiler throws an errors if they are not checked whereas unchecked exceptions and caught during run time only and hence can't be checked.

Description : Can we define exceptions twice in same block ?

Last Answer : No.

Description : Which of the following exceptions in the WTO rules does not permit a country to use a tariff or quota that is more restrictive than its bound tariff? A. Anti-dumping B. Countervailing duties C. Safeguards D. Balance of payments protection E. Preferential trade agreements

Last Answer : E. Preferential trade agreements

Description : Define exception. State built-in exceptions. 

Last Answer : An exception is a problem that arises during the execution of a program. Java exception handling is used to handle error conditions in a program systematically by taking the necessary action ... browser's security setting. StackOverflowException: Caused when the system runs out of stack space.

Description : Find the false statement: (A) The relationship construct known as the weak relationship type was defined by Dey, Storey & Barron (1999). (B) A weak relationship occurs when two ... Ternary, Quaternary and Quintary relationships are shown through a series of application scenario's and vignette's

Last Answer : (C) Conceptual model is not accurate representation of "Universe of interest".

Description : Describe the following types of application software. 

Last Answer :  Productivity Software:  They include word processing, spreadsheet and database management.  They are used to speed up daily routine tasks.  They help to work in organized and efficient ... typing tutors, spelling tutor, language learning, medical, driving test,  flight simulation etc. 

Description : What are the different types of complexities?

Last Answer : A: Time Complexity (Temporal COmplexity) : The measure of the total amount of computer time taken to run for completion of an algorithm is known as time complexity. Space Complexity: The measure ... amount of memory space needed to run for completion of an algorithm is known as space complexity.

Description : What is type conversion? Name its types.

Last Answer : A: Converting a value of a particular data type into another data-type is called type conversion. It is of two types: (a) Implicit Type Conversion: When the conversion takes place on ... intervention. (b) Explicit Type Conversion: When the conversion takes place with the programmer's intervention.

Description : What are comments? Name the different types.

Last Answer : A: Comments are statements which enhances the readability and understanding of the program. They are not part of the program. The different types are: single line (//….), multiple line (/* … */) and documenting comment (/**….*/).

Description : Name the primitive data-types in java.

Last Answer : A: byte, short, int, long, float, double, char and boolean

Description : Data input is A) an abstract class defined in java.io B) a class we can use to read primitive data types C) an interface that defines methods to open files. D) an interface that defines methods to read primitive data types.

Last Answer : D) an interface that defines methods to read primitive data types.

Description : Data input is A) an abstract class defined in java.io B) a class we can use to read primitive data types C) an interface that defines methods to open files. D) an interface that defines methods to read primitive data types.

Last Answer : D) an interface that defines methods to read primitive data types.

Description : The major goal of inheritance in C++ is A) To facilitate the conversion of data types B) To help modular programming C) To facilitate the reusability of code D) To extend the capabilities of a class

Last Answer : D) To extend the capabilities of a class

Description : The different types of tables maintained by the operating system are ............. A) memory, logical , I/O file B) memory, I/O, file, physical C) memory, I/O, file, process D) memory, logical, I/O, physical

Last Answer : C) memory, I/O, file, process

Description : Which of the following is true about the characteristics of abstract data types? i) It exports a type. ii) It exports a set of operations A) True, False B) False, True C) True, True D) False, False

Last Answer : C) True, True

Description : An ER Model includes I. An ER diagram portraying entity types. II. Attributes for each entity type III. Relationships among entity types. IV. Semantic integrity constraints that reflects the business rules about data not ... ; IV (B) I&IV (C) I, II & IV (D) I & III

Last Answer : (A) I, II, III & IV

Description : It is possible to define a class within a class termed as nested class. There are ............ types of nested classes. (A) 2 (B) 3 (C) 4 (D) 5

Last Answer : Answer: A, C

Description : Match the following types of variables with the corresponding programming languages: (a) Static variables (i) Local variables in Pascal (b) Stack dynamic (ii) All variables in APL (c) Explicit heap dynamic (iii) Fortran 77 (d) Implicit ... (ii) (C) (iii) (i) (iv) (ii) (D) (ii) (i) (iii) (iv)

Last Answer : (C) (iii) (i) (iv) (ii) 

Description : Which of the following statements concerning Object-Oriented databases is FALSE? (A) Objects in an object-oriented database contain not only data but also methods for processing the data. (B ... Object-oriented databases store more types of data than relational databases and access that data faster.

Last Answer : (C) Object-oriented databases are more adapt at handling structures (analytical) data than relational databases.

Description : Which one of the following is correct for overloaded functions in C++? (1) Compiler sets up a separate function for every definition of function. (2) Compiler does not set up a ... functions cannot handle different types of objects. (4) Overloaded functions cannot have same number of arguments.

Last Answer : Answer: 1