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 vector and arraylist.
how to write a program for sending mails between client and server
What is the difference between checked exception and unchecked exception?
How do generics work?
Can a class have 2 constructors?
What is the difference between jdk, jre, and jvm?
What is the purpose of assert keyword used in jdk1.4.x?
What are the differences between heap and stack memory in java?
What are features of java?
How to do encapsulation in java?
Is 0 a real number?
What is downcasting?
Can I override protected method in java?
Where we write javascript code in html page?
Why is java so important?