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 is the final class?
What is the size of boolean variable?
What is singleton class example?
What modifiers may be used with a top-level class?
Can a class have an interface?
What is appletviewer?
Explain illegalmonitorstateexception and when it will be thrown?
How long will it take to learn java?
What is jvm? Why is java called the platform independent programming language?
What is a data structure java?
What is the byte order of byte buffer?
Is it possible to override private or static method in java?
What is difference between wait and notify in java?
What do you mean by flow of struts?
What is public static?