what is default constructor and parameterised constructor
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|
Which method cannot be overridden in java?
What are the advantages of java over C++?
What is identifier give example?
When a byte datatype is used?
How do you replace all in word?
What classes can be used to store arbitrary number of objects ?
What is module in project?
How could Java classes direct program messages to the system console, but error messages, say to a file?
What do you mean by order of precedence and associativity?
Can finally block be used without a catch?
What is scope & storage allocation of static, local and register variables? Explain with an example.
what is the use of thread?Justify it by project point of view