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 |
Explain the differences between abstraction and encapsulation?
What isan abstract class and when do you use it?
What do you mean by ordered and sorted in collections in java?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What modifiers may be used with a top-level class?
What are selection structures?
What is integer size in java?
What is meant by binding in rmi?
What is the use of ?this??
How do you trim a space in java?
where do we use init()
Which is bigger double or float?