Results 1 to 5 of 5
  1. #1
    saideepak is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default Hepl me in constructing program

    I want to know how to write program without main and static method?

    can anyone explain

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,361
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by saideepak View Post
    I want to know how to write program without main and static method?

    can anyone explain
    Stick all your code in a static initialization block. Good luck with it but why should you want that?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default

    Quote Originally Posted by saideepak View Post
    I want to know how to write program without main and static method?

    can anyone explain

    the main() method is the entry-point in every java program. do you suffer from main-phobia?

  4. #4
    saideepak is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default

    its an assignment to me.

    plz u can explain with an example?

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

Similar Threads

  1. Problem with constructing an ArrayList
    By Diplo in forum New To Java
    Replies: 5
    Last Post: 12-07-2009, 03:52 PM
  2. Constructing the Interface!
    By myskynim in forum New To Java
    Replies: 3
    Last Post: 11-19-2009, 09:51 AM
  3. need urgent hepl!!!!!!!!!!!
    By ras_pari in forum New To Java
    Replies: 6
    Last Post: 10-30-2009, 05:57 AM
  4. Constructing simple Servlet
    By herbozo2003 in forum Java Servlet
    Replies: 1
    Last Post: 03-02-2009, 11:35 AM
  5. Need help with constructing code
    By Nine0joe in forum New To Java
    Replies: 6
    Last Post: 05-09-2008, 02:14 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
  •