• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is implicit and explicit interface? and Collection Framwork?  RSS feed

 
Amey Ambulgekar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all,

yesterday while in interview i faced some Questioned

1] "What is implicit and explicit interface" and its example??

2] in one line tell me definition of "Collection Frameworks" and in Industry is it frequently used or only sometimes they use?? and where they used it(any example of application of it)??

Thanking you.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amey Ambulgekar wrote:1] "What is implicit and explicit interface"? and its example??

I honestly don't know, but if I was to guess I would have thought that an "implicit interface" would be one implemented through a superclass (or subinterface) rather than directly through an implements clause. However, this page and this one would suggest that not only is there more than one interpretation (neither of them the same as mine), but that the phrase has a distinct meaning in C# that is not applicable to Java.

2] in one line tell me definition of "Collection Frameworks" and in Industry is it frequently used or only sometimes they use?? and where they used it(any example of application of it)??

The hierarchy of interfaces and classes for data structures provided in the Java standard libraries; and yes, it is used a lot.

As for the rest: Google and the Java tutorials are your friend. ShowSomeEffort.

Winston
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The example from C# is referring to implicit/explicit implementation of interfaces, which is not quite the same thing. However, I'm not convinced what the interviewer is referring to is standard terminology - I've no idea what they were looking for.
 
Henry Thai
Greenhorn
Posts: 2
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Example for implicit interface:





ParentImpl is an implicit implementation for Parent interface. Hope to help you . . .


 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Thai wrote:ParentImpl is an implicit implementation for Parent interface. Hope to help you . . .
I think you meant ChildImpl, but no, it isn’t an implementation at all, and that doesn’t help. You have not implemented any methods. There are several logical and syntax errors in what you posted. I have corrected the code tags; you should put the code after [code=java] and before [/code], and you cannot use coloured text.

And welcome to the Ranch
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!