Differentiate constructor and a method and how are it be
used?
Answer Posted / arunji,shc
constructor it should be same name of class but method name
is userdefined.
when the object created constructor call automatically but
method through the object have to call.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is output buffer?
How we can generate random numbers in java?
Which number is denoted by leading zero in java?
Difference between this() and super() in java ?
Is java owned by oracle?
Which sorting is best in java?
What are the application of stack?
What two classes are used to read data only?
What is preflight request?
Why are global variables used?
Explain the difference between protected and default access.
What do you mean by global variable?
Can java list contain duplicates?
Is java an open source?
explain copyonwritearraylist and when do we use copyonwritearraylist?