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
Difference between string, string builder, and string buffer?
What are synchronized methods ?
What is OOP's Terms with explanation?
How to calculate the length of a singly linked list in java?
Why declare Main() inside the class in java ?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Difference between ‘>>’ and ‘>>>’ operators in java?
What is array length in java?
What do you mean by JVM?
Where we write javascript code in html page?
How are the elements of a gridbaglayout organized?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
what is encapsulation in java? Explain
What is difference overloading and overriding?
What is parsing and its types?