abstract class A{
int list []=new int [100];
A(int x,int y){
rondom n=new rondom();
for (int i==;i<100;i++);
list [i]=x+r.next int(y-x+1);
abstract sort ();
abstract binary sarch(int temp);
class B extends A{
Answer Posted / sravan
in the above program he takes the parameterized constructor for any constructor we must and should create object but in that program object creation is not done so it gives error it is a compilation error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of static class?
What is a hashmap used for?
What are checked exceptions?
when you will synchronize a piece of your code? : Java thread
Can we convert list to set in java?
Why arraylist is used in java?
What is meant by structural programming?
Why destructor is not used in java?
Define the term string pool?
What is the transient keyword?
Why Java doesn’t support multiple inheritance?
What is the difference between the prefix and postfix forms of the ++ operator?
What are new features introduced with java 8 ?
Can we declare main () method as non static?
How would you use Bubble Sort to sort the number of elements?