Results 1 to 8 of 8
  1. #1
    Z.S.Tehrani is offline Member
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    0

    Default Nested(Inner) Classes

    Nested Classes

    1-What are the differences between static and non-static nested classes ?

    2-Where a nested class could be non-static/static ? in what condition ?

    3-Why a non-static nested class can't have static members ?
    Last edited by Z.S.Tehrani; 08-10-2008 at 08:47 PM. Reason: I made a mistake and use the word inner istead of nested which made my questions completely illogical

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Please at least attempt to show some effort here. What do you think the answers should be and why?

    To forum members: note that this has been cross-posted on many forums, that in the Sun forums this user has posted other homework questions, has never shown his own work, has never thanked posters who have helped him.
    Last edited by Fubarable; 08-10-2008 at 02:22 PM.

  3. #3
    Z.S.Tehrani is offline Member
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    Please at least attempt to show some effort here. What do you think the answers should be and why?

    To forum members: note that this has been cross-posted on many forums, that in the Sun forums this user has posted other homework questions, has never shown his own work, has never thanked posters who have helped him.
    what do you mean by showing some effort ? i didn't get that , if you mean i myself didn't search about them you are wrong i did that for #1 but i didn't get my answer completely and for #2,3 i had no idea about them and i asked others for help because that's what people do when they don't know s.th .
    I myself do search about my questions and also ask others for help ,is that wrong ?

    You are right i should have thanked who've helped me , i just did that and hope they forgive me .

    I try not to post a cross-post again .

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,812
    Rep Power
    25

    Default

    Just curious???
    Why do you ask these kinds of questions?
    They are like the kind you would ask if you were taking a test or doing homework.
    They don't look like the questions a programmer would ask.
    Someone trying to learn programming would have a problem with a program and they would post their code with questions.

  5. #5
    Z.S.Tehrani is offline Member
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Just curious???
    Why do you ask these kinds of questions?
    They are like the kind you would ask if you were taking a test or doing homework.
    They don't look like the questions a programmer would ask.
    Someone trying to learn programming would have a problem with a program and they would post their code with questions.
    Because , i don't know how to explain , i want to learn the logic of java and i think by learning that i could write my codes better .For writing a good code you should know how things work and behave . don't you think that when you learn logic of a program language well you will be good at it?

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,812
    Rep Power
    25

    Default

    Well there is theoretical knowledge and there is practical knowledge. A programmer should know both. Knowing theory doesn't always make a good programmer.

  7. #7
    Z.S.Tehrani is offline Member
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Well there is theoretical knowledge and there is practical knowledge. A programmer should know both. Knowing theory doesn't always make a good programmer.
    You are absolutely right.My goal is to make myself best at both of them . In the near future I will work more on coding . Thanks for your advice :)

  8. #8
    Z.S.Tehrani is offline Member
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    0

    Default I found the answers

    I did more research on the net and I think I found the answers,I attached it (Nested classes-00.zip) and hope it would be useful.

    Good luck
    Attached Files Attached Files

Similar Threads

  1. nested <ui:repeat> - problem
    By hackerofcrackers in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-20-2008, 11:06 AM
  2. Breaking from nested switch
    By javaplus in forum New To Java
    Replies: 3
    Last Post: 02-02-2008, 09:28 AM
  3. Nested loops?
    By gabriel in forum New To Java
    Replies: 4
    Last Post: 08-06-2007, 05:51 PM
  4. Nested For Loop
    By yuchuang in forum New To Java
    Replies: 1
    Last Post: 07-08-2007, 02:11 PM
  5. Nested Tags JSP
    By Marcus in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-25-2007, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •