Can i have a constructor for a servlet?
Has already been answered. For more clarity: Every
java class has a default conctructor. So Servlet also has one. Like other java classes you can also define other constructors for Servlet (remember to provide default one also), but that will be of no use since servlet runs in a servlet container and conatiner uses only default constructor to create servlet instance
Can i create any object for servlet class?
You can, but that will be of little use as Servlet's real capabilties are used only when it is run by container.
if can have then wer i shud write the constructor?within init()?
You can not define constructor of any class in any of its method.