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...


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }



This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract voi..

Answer / Aditya Kumar

The given abstract class has an error. The correct syntax for an abstract method with no implementation should be 'public abstract void C();' and the keyword 'virtual' is not used in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is method reference in java?

1 Answers  


what do you understand by synchronization? : Java thread

1 Answers  


Can Java be said to be the complete object-oriented programming language

1 Answers  


What is the importance of static variable?

1 Answers  


what is the need of the Ajax?

5 Answers   iFlex,


Why object class is super class for every class in java?

1 Answers  


How concurrent hashmap works?

1 Answers  


How to create an immutable class?

1 Answers  


What do you mean by ternary operator in java?

1 Answers  


Implement a stack with push (), pop() and min() in O(1) time.

1 Answers   Amazon,


what is the diff between Servletcontext and servletconfig?

5 Answers  


What does file separator do in java?

1 Answers  


Categories