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 use of callablestatement?
Can we override compareto method?
when should you use stringbuilder class in a program?
What is nested top-level class?
What is the use of inner class?
Can we sort hashmap in java?
What is the difference between Grid and Gridbaglayout?
How does remove work in java?
What is finally and finalize in java?
What is class and its types?
how to run ecllipse with jettyserver for windows environment using batch file
Can we write a class without main method in java?
What is an example of declaration?
What is finally in Java?
How do you reverse a string in java without using string buffer?