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 |
How many types of parsers are there?
What are the characteristics of Final,Finally and Finalize keywords.
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What are the differences between abstract class and interface?
Why would you desing a J2EE application so user data is entered by way of a JSP page and managed by an underlying Java Beans class?
Why are global variables used?
What do you mean by an interface in java?
how cani read a command line argument?(usingfile object).
Write a program to print fibonacci series
What is class and its types?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is valid keyword in java?