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


Please Help Members By Posting Answers For Below Questions

What is role of void keyword in declaring functions?

566


How do you write a scanner class in java?

557


How do you call a reference in java?

512


What's the difference between int and integer in java?

529


Difference between Linked list and Queue?

602






How many bytes are a float?

501


How do you square a number in java?

545


Explain about oops concepts.

625


What is integer size in java?

502


Explain about transient variables in java?

636


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

600


If an application has multiple classes in it, is it okay to have a main method in more than one class?

532


What is java and its types?

547


What do you mean by checked exceptions?

529


What is oops in java?

561