14 lines
		
	
	
	
		
			329 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			329 B
		
	
	
	
		
			Java
		
	
	
	
	
	
class Example1 {
 | 
						|
 | 
						|
    //Static class
 | 
						|
    static class X {
 | 
						|
 | 
						|
        static String str = "Inside Class X";
 | 
						|
    }
 | 
						|
 | 
						|
    public static void main(String args[]) {
 | 
						|
        X.str = "Inside Class Example1";
 | 
						|
        System.out.println("String stored in str is- " + X.str);
 | 
						|
    }
 | 
						|
}
 | 
						|
// Output: String stored in str is- Inside Class Example1
 |