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 a type parameter in java?

947


List the different types of classloaders in java.

934


What causes memory leak in java?

894


State one difference between a template class and class template.

1032


Explain importance of inheritance in java?

973


What is the importance of main method in Java?

1027


What do you mean by a JVM?

1161


What is the benefit of abstract class?

900


What is a variable analysis?

1039


What are the two types of exceptions in java? Which are the differences between them?

1048


What data structures are used to perform recursion?

1007


How does hashset work in java?

1072


What are the steps that are followed when two computers connect through tcp?

956


Difference between method overloading and overriding.

1026


What is a Hash Table? What are the advantages of using a hash table?

1043