Answer Posted / chitraraman
Error in java means the mistake done buy the programmer
logically or syntatically.
Exception is an error thrown by java impllctly like
IOException,Array out of bound Exception
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can a source file contain more than one class declaration?
Which is better stringbuffer or stringbuilder?
What is the Scope of Static Variable?
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)
What are void methods?
Define max and min heap, also the search time of heap.
Can an interface be defined inside a class?
What is the difference between form & report?
How do you check if a string is lexicographically in java?
Why spring singleton is not thread safe?
Can we start a thread twice in java?
Which class is the superclass of all classes?
How is a structure different from array ?
What is the maximum length of a url?
Why we use methods in java?