package _01thread. _02Static_Demo;
public class _01StaticAttributeTest {
public static int staticInt = 0 ;
public int nonStaticInt = 0 ;
static int b;
static String c;
public static void main ( String[ ] args) {
String d= null;
if ( c== null) {
System. out. println ( c) ;
}
if ( c== "null" ) {
System. out. println ( c+ "qqqqqqqqqqqqq" ) ;
}
if ( d== null) {
System. out. println ( d+ "dddddddddddddddddddddd" ) ;
}
System. out. println ( b+ "sssssssssssssssssss" + c+ "vvvvvvv" ) ;
_01StaticAttributeTest t = new _01StaticAttributeTest ( ) ;
System. out. println ( t. staticInt) ;
System. out. println ( _01StaticAttributeTest. staticInt) ;
System. out. println ( t. nonStaticInt) ;
t. staticInt++ ;
t. nonStaticInt++ ;
_01StaticAttributeTest t1 = new _01StaticAttributeTest ( ) ;
_01StaticAttributeTest t2 = new _01StaticAttributeTest ( ) ;
System. out. println ( t1. staticInt) ;
System. out. println ( t2. staticInt) ;
System. out. println ( _01StaticAttributeTest. staticInt) ;
System. out. println ( t1. nonStaticInt) ;
t1. nonStaticInt++ ;
System. out. println ( t1. nonStaticInt) ;
System. out. println ( t2. nonStaticInt) ;
}
}