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


How can we make a class virtual?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What are mutable classes?

0 Answers  


Can you declare an interface method static?

0 Answers  


what is struts-config-xml?and its use?

3 Answers  


What are the advantages of defining packages in java?

0 Answers  


How to sort array of 0 and 1 in java?

0 Answers  


Explain the difference between throw and throws in java?

0 Answers  


What is the difference between error and exception and explain in simple words not whatever is given in the book.

7 Answers  


What is difference between “==” and equals()?

1 Answers   IBM,


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


Define iterator and methods in iterator?

0 Answers  


What is a method declaration?

0 Answers  


can two class in a code be public??if yes then how??

2 Answers  


Categories