Results 1 to 8 of 8

Thread: How many Classes in output

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    How many Classes in output

    Take one example, Class A a{ } interface B Class C c{ } when we compile this how many classes will give the output?

    NOTE : [This question was asked by Srivani]


  2. #2
    Junior Member
    Join Date
    Feb 2007
    Answers
    10

    Re: How many Classes in output

    The question is you asked is not clear.. just tell me i think you have 2 class and one interface..is it right or not and ask the question in right manner now......


  3. #3
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: How many Classes in output

    then you will be having 2 classes


  4. #4
    Junior Member
    Join Date
    Sep 2006
    Answers
    6

    Re: How many Classes in output

    u will hv 3 class files created.. but u will hv a 2 classes and one interface from java point of veiw.. as interface is also a ttype of class jst its behaves differently...


  5. #5
    Junior Member
    Join Date
    May 2007
    Answers
    15

    Re: How many Classes in output

    2 classes i think...


  6. #6
    Junior Member
    Join Date
    Dec 2006
    Answers
    9

    Re: How many Classes in output

    if a program contains 2 classes and one interface then after Compilation how many class files will be generated? is it Ur Question?

    if it so, Three class files will be generated.


  7. #7
    Junior Member
    Join Date
    Jun 2007
    Answers
    3

    Re: How many Classes in output

    the out put classes or two only.....coz.. a in dynamically override to interface memeber funs,and C , so two classes only produce the out put.iam right!


  8. #8
    Junior Member
    Join Date
    Apr 2007
    Answers
    1

    Thumbs up Re: How many Classes in output

    Three classes will be created because interface is also a class.


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