Explain role of constructor in a java application?
Answer Posted / harsh
Constructor is "object creator".
its role is to create objects thats it.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the characteristics of java?
What is the static method?
What is nested top-level class?
What is the use of optional ?
What is a two-pass assembler?
What are measurable parameters?
What is an eror in java?
Explain java coding standards for interfaces?
What are the differences between Java 1.0 and Java 2.0?
Why is java called the platform independent programming language?
What is a type parameter in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is the use of generics? When was it added to the Java development Kit?
What is variable and rules of variable?
What does yield method of the thread class do?