Answer Posted / sankar r k
The function of the constructor is to assign values to the
instance variable when the object is created for the first
time.The name of the constructor and the class name will be
same.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How do I know if java is installed?
what is mutual exclusion? : Java thread
Can we override the private methods?
Explain the use of volatile field modifier?
What is a “stateless” protocol ?
What type of variable is gender?
What is the default size of load factor in hashing based collection?
What does @param args mean in java?
What is a arraylist in java?
What is the use of flag?
Can we override private method?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
Why packages are used?
When will you define a method as static?
What makes a function well defined?