When should we create our own custom exception classes?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between a checked and an unchecked exception?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
how to call a method in different package?
What is the difference between dom and sax parser in java?
What is a numeric format?
What are the advantages of passing this into a method instead of the current class object itself?
What are the disadvantages of object oriented programming?
What is the difference in between cpp and java? Can u explain in detail?
Can an integer be a string?
What is a heavyweight component?
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?