. What are the differences between constructor and method of a class in Java?
Answer / nashiinformaticssolutions
Initializing the state of the object is done by constructors. A function Object () { [native code] }, like methods, contains a group of statements (or instructions) that are carried out when an object is created. A method is a group of statements that work together to complete a certain task and return the outcome to the caller. A method has the option of working without returning anything.
| Is This Answer Correct ? | 0 Yes | 0 No |
If a class is declared without any access modifiers, where may the class be accessed in java programming?
how to run servlet program between two computer through the internet ?
2 Answers Kiran Prakashan, TCS,
Is null false in java?
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
What happens when heap memory is full?
Difference between Application and Applet ?
Need to use public,static keywords in main function?
how to prepare for IT Officers Interview in Banks
0 Answers TATA, Tata Steel Limited,
What is empty string literal in java?
How do generics work in java?
Brief the life cycle of an applet.
What do you mean by exception handling in Java?