Why cant we use static and final keyword for constructor?
amrita111 4 Light Poster
Recommended Answers
Jump to Postwhy would you want to use those?
if you use static it'll go look for either a missing returntype, or a missing methodname.
let's say you could..public class Person{ private String name; public static Person(String newName){ name = newName; } }
just a few reasons …
All 5 Replies
stultuske 1,116 Posting Maven Featured Poster
giffy -5 Newbie Poster
jalpesh_007 -3 Newbie Poster
justinbellaa03 -3 Newbie Poster
stultuske commented: which does not mention static or final, so a lot of text, but not an actual answer to any part of the question. -3
amrita111 4 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.