Answer Posted / srinu
String is collection of characters are enclosed with double
quation.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Error, defect,fault, failure and mistake?
What is constructor chaining and how is it achieved in java?
What is the default value of float and double datatype in java?
What does the string method compareto () do?
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 is method overloading in JAVA? Why is it not present in C ?
Is java a super set of javascript?
Can we have a try block without catch block?
What does \ mean in regex?
Explain the hierarchy of java exception classes?
What is the += operator called?
What is java used for?
What is immutable class in java?
Difference between string s= new string (); and string s = "abv";?
What is the main use of generics in java?