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
Explain about serializable interface in java?
Write a program to print fibonacci series up to count 10.
What is static synchronization?
What is the major drawback of internal iteration over external iteration?
What is the vector class in java programming?
Can I override protected method in java?
How would you convert bytes to string?
What is meant by collection in java?
What is the purpose of interface?
Can constructor be synchronized?
How would you use Bubble Sort to sort the number of elements?
Explain about the security aspect of java?
What is string builder in java?
What do you mean by thread safe?
What is type parameter in java?