What do u mean by method and also contructer in java ?
Answer Posted / javachi
A method is a procedure to call the objects with their properties within or outside the classes, method is considered in object oriented programming as functions in structured programming.
constructor is a method used only for initializing the variables of the object class. this will reduce the code compatibility.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 3 types of control structures?
Is static variable stored in heap?
What is the use of math abs in java?
What is arguments in java?
What is size_t?
Define a package.
Explain about interthread communication and how it takes place in java?
What is the list interface?
What is heterogeneous in java?
how to create constants in java?
What is unmodifiable list in java?
Explain the private field modifier?
Can a vector contain heterogenous objects?
How many types of parsers are there?
How do you access command-line arguments within the code?