
can we extend from a class which is having private constuctor

No, you cannot.
class A
{
private A() {
System.out.println("Hello");
}
}
class B extends A
{
public static void main(String[]args){
A a=new A();
}
}

thanq...
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.