How many types of thread in java? give the name
Answer Posted / swati
There are two types of thread in java.
1)-Single
2)- multi
By default one thread is running internally is main thread........
| Is This Answer Correct ? | 7 Yes | 16 No |
Post New Answer View All Answers
What is function and method in java?
Which is faster call by value or call by reference?
What are benefits of java?
How many types of variables are there?
What is the applet security manager, and what does it provide?
What is singletonlist in java?
What is difference between word and integer?
What is casting in java programming?
How do you declare an array that will hold more than 64KB of data?
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)
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What is skeleton and stub?
What is a layout manager and what are different types of layout managers available in java awt?
What is return used for in java?
What is java regex?