Constructors in Java
216 views · Published 1 February 2014 · 2:35 · Indexed 4 November 2026
Channel: Interview DOT · 2014 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Constructors in Java Constructor in Java: Constructor in Java ? Java Interview Question And Answer ? Constructors in Java : 1.Constructor in Java is block of code which is executed at the time of Object creation. 2.Constructor is entirely different than methods and has some specific properties like name of constructor must be same as name of Class. 3.Constructor also can not have any return type, constructor's are automatically chained by using this keyword and super. 4.Object initialization code is normally placed in Constructor. 5.We can overload constructors using different parameters. 6.Every Class in Java has constructor, if no explicit constructor is specified by Programmer, Java Compiler inserts a no argument constructor inside class. This is also called default Constructor in Java 7.Calling one constructor from another constructor in Java is called Constructor chaining. 8.You can use any access modifier with Java constructor. they can be public, protected or private. 9.Constructor in Java can not be abstract, static, final or synchronized. 10.Constructor can throw Exception in Java. 11.Constructors are not inherited. 12.Private Constructors can be u sed to create "Singleton" pattern. A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm Are you looking for a new Job ? InterviewDot.com - A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm
More from this channel
-
7:19
java pass by value
-
3:19
java interview best books
-
8:03
Explain java finally block
-
4:29
what are the advantages of OOPL Java Interview
-
2:40
what is java decompiler how to decompile java code
-
5:51
Top 4 Job Interview Tips How to prepare for Job interview
-
5:29
Top Job Interview TIPS What are your strengths How to answer
-
3:49
Top 16 Job Interview Questions Best Job Interview Questions