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 string in java? String is a data type?

1025


What is the basic of java?

1028


What is an i/o filter?

1826


Wha is the output from system.out.println(“hello”+null); ?

1145


Is java a virus?

961


Why is inheritance used in java?

1130


What is the difference between multitasking and multithreading in Java

1187


What is the use of conditional statement?

985


what is recursion in java

1181


Explain restrictions for using anonymous inner classes?

1095


How does the garbage collector works in java?

1093


what do you mean by stream pipelining in java 8? Explain

1028


Is intellij better than eclipse?

1094


What is a dynamic array in java?

1186


How the interruptible method gets implemented?

976