Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you have a constructor in abstract class?

Answer Posted / sam

Yes

abstract class test{
int i=10;
abstract void method();
test(){
System.out.println("Abstract class constructor");
}
}
public class test1 extends test{
void method(){
//implement abstract method of test
}
public static void main(String args[]){
test1 t=new test1();
}
}

Is This Answer Correct ?    29 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multithreading in java?

1111


What is numel matlab?

1412


Can a constructor be made final?

1165


What is the difference between a scrollbar and a scrollpane?

1117


What are the five major types of reference sources?

1207


What was java originally called?

1007


What is a ternary operator in java? What is an interface?

1045


What is the indent key?

1092


What is oop principle in java?

1269


What is the advantage of OOP in java?

1210


What is concurrent hashmap and its features?

1170


How we can skip finally block of exception even if some exception occurs in the exception block in java?

1002


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1145


What is the difference between multitasking and multithreading in Java

1239


What access modifiers can be used for methods?

1161