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


Please Help Members By Posting Answers For Below Questions

What are the characteristics of java?

520


What is the static method?

563


What is nested top-level class?

574


What is the use of optional ?

562


What is a two-pass assembler?

600






What are measurable parameters?

562


What is an eror in java?

552


Explain java coding standards for interfaces?

621


What are the differences between Java 1.0 and Java 2.0?

1667


Why is java called the platform independent programming language?

568


What is a type parameter in java?

524


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?

1827


What is the use of generics? When was it added to the Java development Kit?

551


What is variable and rules of variable?

508


What does yield method of the thread class do?

574