skip to main
|
skip to sidebar
Java Programs Free Source Code
Friday, February 13, 2009
Static Block Example
//Static Block Example - save as "static_block.java"
public class static_block {
private static int static_var;
static
{
System.out.println(static_var);
System.exit(1);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Java Programs
▼
2009
(19)
▼
February
(14)
Reverse Of a String
Reverse Of a Number
Reverse Of a Number Using Stack
palindrome Example
Generate Random Numbers
Multiple main methods in One Application
Method Overriding
Abstract Class Example
Encapsulation Example
Immutable class Example
Static Block Example
Syncronization Example
Thread Example
Creating a thread by implementing "Runnable" Inter...
►
March
(5)
About Me
Call me Uday !!!!, MCA from Bangalore
Very Simple . But really naughty , funloving and Energtic . --When day ends batman begins
View my complete profile
Followers
No comments:
Post a Comment