Differentiate constructor and a method and how are it be
used?
Answer Posted / janet
Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is command line argument in java?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
Why can't we use static class instead of singleton?
How arrays are stored in memory in java?
What is function overriding and overloading in java?
Is null a string in java?
When should I use a singleton?
Can you explain the usages of class.forname()?
What does super keyword do?
How do you override a method in java?
What are jee technologies?
What is the primitive type short?
Can we override tostring method in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
Which eclipse is best for java?