Results 1 to 5 of 5

Thread: What is the use of interface in realtime environment

  1. #1

    What is the use of interface in realtime environment

    Hi friends,

    What is the use of interface in realtime environment?
    plz answer.


  2. #2
    Junior Member
    Join Date
    Sep 2006
    Answers
    9

    Re: What is the use of interface in realtime environment

    Krishna,
    I think you are very much interested on realtime...
    Interfaces as the name suggests is like a thing where you can can get a feel of the available business methods to interact, in fact the real execution will be defined somewhere else, which is not important to us, just like the keypad on your mobile. You just know how to use the keypad, forget about the real implementation or execution. It is like a way to interact with the system.


  3. #3
    Junior Member
    Join Date
    Dec 2007
    Answers
    2

    Smile Re: What is the use of interface in realtime environment

    there are so many examples around you

    1 . Based on the situation / Place u act differently
    like, if u r at ur home or Company or among friends
    u act differently
    so thats a interface

    2. Water can take different forms(ice, water, vapour) depending on the situation like cold , hot , or too hot


  4. #4
    Contributing Member
    Join Date
    Nov 2007
    Answers
    46

    Re: What is the use of interface in realtime environment

    interfaces:
    - it contains methods and variables.
    - variables may be abstact or final
    - methods must be abstract type.
    - access specifiers must be public.
    real time scenerio:
    ex: there are two users(A,B) in one company but not at one place. however, B using the same class methods and A also want to use that at this scenerio intefaces are helpful. A and B both using same class but they are using diffrent methods in that class.


  5. #5
    Junior Member
    Join Date
    Jul 2008
    Answers
    4

    Re: What is the use of interface in realtime environment

    Hi..
    This is sduam panigrahy

    USE OF INTERFACE IN REALTIME:

    i. Interface in java is used for implemntion the concept of polymerphism i.e a behaviour can behave differently depading upon the requirment. and situation where it is used.
    i.e suppose i declared a interface called as calculateArea and in that i am declering a methood named as area. whennever i ll implement that interface as the rule of interface says that i have to provide the implementation for the area methood.
    so if i implement that interface in Circle class then i ll provide the implementation for the area methood of interface as to calculate the area of the circle.

    ii. And also java doesnot supports the concept of multiple inheritance, so interface is the alternative for that.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact