
if u can possible create the constructor in abstract class?

yes, you can have constructor in abstract class.But you cannot make instance of the abstract class. Instead, you can make a reference to that abstract class.
abstract class Test{ abstract void method(); Test(){ System.out.println("Abstract class constructor"); } } public class AbstractClassExample extends Test{ void method(){ } public static void main(String args[]){ Test t= new AbstractClassExample(); } }

yes, you can have constructor in abstract class.But you cannot make instance of the abstract class. Instead, you can make a reference to that abstract class.
abstract class Test{
abstract void method();
Test(){
System.out.println("Abstract class constructor");
}
}
public class AbstractClassExample extends Test{
void method(){
}
public static void main(String args[]){
Test t= new AbstractClassExample();
}
}
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.