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 the different forms of polymorphism?
What is derived datatype?
What is null in java?
What is the flag in java?
What is difference between filereader and bufferedreader?
What does the three dot emoji mean?
What is the properties class?
How to connect to a remote database using Applet?
Is java free for commercial?
How do you decide when to use arraylist and linkedlist?
What is difference overloading and overriding?
Is heap stored in ram?
Garbage collection in java?
Can a static block throw exception?
What is a void method?