What is a constructor?

Answer Posted / saravanan

Class name and Methods name are same. It has no Return type.
When create a instance with class the method is
automatically called.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1823


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

1884


What do you understand by synchronization? Why is it important?

578


What are the different types of collections views being provided by the map interface? : java collections

617


What are the queues in the java collection framework? : java collections

555






How do I find jre path in windows?

533


What are the types of java collections? : java collections

547


What are the main classes of the list interfaces? : java collections

584


can u draw class/object diagram for ATM

5536


my interviewer asked me what technical specification you used how to answer that question

1935


What is the use of the list interface in the java collection? : java collections

607


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1602


please mail me the interview question based on java/j2ee

1541


What are the different types of classes implemented in the set interfaces? : java collections

612


Which sorting algorithm is used by collections.sort() in java ?

555