• Post Reply Bookmark Topic Watch Topic
  • New Topic

Coding directly into a class  RSS feed

 
D. Formenton
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I remenber that is possible to insert some code to be executed at start of an application without any call. (I suppose the compiler put the code at the begin of executable, maybe?)

BUT I do not remember how to write this code!

Can someone give me an example or short explanation (or web reference to...)?
Thank you very much.

Domenico
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
D. Formenton
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes!
Thank you, very much.

Domenico
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!