Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
2
Reply
Can you make a constructor final in Java?
Sudhir Goswami
12y
1.7k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
No we can't make constructor final
Neha Kumari
8y
0
When you set a method as final, it means : "You don't want any class override it", but constructor by JLS definition can't overridden,so it is clean.When you set a method as 'abstract',it means:"Method don't have any body and you want another time implement it in child class", but constructor call implicitly when new keyword used so it can't haven't body.When you set a method as 'static', it means: "Method belong to class, not belong to object" but constructor implicitly called when construct time of class, so what it is static?
Munesh Sharma
11y
0
What is object cloning in Java?
What is the difference between static method and instance method in Java?
Message