Explain, why the constructor is required in implemented
class?
Answer Posted / ejp
A constructor isn't required so the question is futile. Both
answers above are wrong.
Specifically, in reply #1, 'if constructor is not
there,variables might be taken the garbage values' is itself
complete garbage.
Reply #2, is mostly irrelevant, but this statement 'to call
them we need pass parameters in main method' is also wrong.
Parameters are not required, and the reference to the main
method is pointless.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What differences exist between iterator and listiterator?
You're given a Boolean 2D matrix, can you find the number of islands?
Which class is the superclass for every class in java programming?
Explain about fail fast iterators in java?
What is the structure of java?
What is port number in java?
What are the basic control structures?
How do you do a line break in java?
Can we have two methods in a class with the same name?
What is generics in java interview questions?
Explain about fail safe iterators in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What is an example of a keyword?
How do you find the maximum number from an array without comparing and sorting?
What is difference between call by value and call by reference?