what is default constructor and parameterised constructor
with example?
Answer / tushar
Default constructor: this constructor is created by the compiler automatically whenever an object is created.User don't have to write default constructor every class has its default constructor
Parameterized constructor: this constructor is exclusively written by the coder to assign the initial value to an instance variable.By creating parameterized constructor you can overwrite the default constructor.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is stringreader?
Explain reverse a linked list iterative solution in java?
How finally used under exception handling?
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008)
Name four container classes.
What is java jit compilers?
What is a parameter used for?
what is instanceof operator used in java?
Can I use % with real numbers?
Name the methods that used to get and set the text label displayed by a Buttonobject?
What is the use of bin and lib in JDK?
What is the difference between inner class and nested class?