Results 1 to 2 of 2
  1. #1
    james12 is offline Banned
    Join Date
    Jun 2014
    Posts
    36
    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 offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,038
    Blog Entries
    7
    Rep Power
    23

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

    Define a static initializer block ...

    kind regards,

    Jos
    I have the stamina of a seal; I lie on the beach instead of running on it.

Similar Threads

  1. Replies: 1
    Last Post: 11-03-2012, 12:38 AM
  2. Replies: 2
    Last Post: 06-20-2012, 12:18 AM
  3. Replies: 1
    Last Post: 02-01-2012, 09:37 PM
  4. Replies: 5
    Last Post: 12-21-2011, 07: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
  •