• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM interpretation of extends and implements

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How does JVM differenciates between extend and implements ?
Say a class can extend one class and can implement many interfaces....how will JVM differenciate betwwen them.

I have faced this in an Interview.

Could anyone give any ideas..

Thanks in advance.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this SCJP specific ? Perhaps it belongs in jobs discussion.

Is your question about abstract classes and interfaces ? That would relate to extends and implements
 
Bhaskar Sinha
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Deepak,
This is absolutely a job specific interview question.
Yes You can interpret it according to that if it helps you to answer the question....
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sounds like a pretty generic interview question. They want to know the difference between implement and extend, and what the compiler does.

So, what did you say during the interview?

Henry
 
Bhaskar Sinha
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did not say anything on what the compiler does...I dont know..and that is what i am exactly looking for in this forum..

Could anyone please help
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one can actually tell you how the compiler interprets it and does its work. Thats not for a normal programmer to know. The interviewer probably wants you to tell the difference between abstract classes and interfaces
 
reply
    Bookmark Topic Watch Topic
  • New Topic