All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.tests.source.Synchronized Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
public class Synchronized {
	public static int x;
	
	public static void main(String[] a)
	{
	    try{
			synchronized(a){
				x = (1<<-1)/a.length;
			}
		} catch (Throwable t){
			x = 1;
		}
		
		int y = x+2;
		System.out.println(y);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy