Results 1 to 2 of 2
  1. #1
    james12 is offline Member
    Join Date
    Jun 2014
    Posts
    37
    Rep Power
    0

    Default print "Hello" even before main() is executed. How to acheive it

    hi if I want to print "Hello" even before main() is executed. How can i Print that "Hello"....thanks in advance

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

    Default Re: print "Hello" even before main() is executed. How to acheive it

    Define a static initializer block ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 11-02-2012, 11:38 PM
  2. Replies: 2
    Last Post: 06-20-2012, 12:18 AM
  3. Replies: 1
    Last Post: 02-01-2012, 08:37 PM
  4. Replies: 5
    Last Post: 12-21-2011, 06:44 PM
  5. Replies: 5
    Last Post: 06-22-2010, 03:51 PM

Tags for this Thread

Posting Permissions

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