xxxxxxxxxx
NO you cannot
xxxxxxxxxx
// Java program to access a
// non static variable from
// a static block
public class GFG {
int count = 0;
// Driver code
public static void main(String args[])
{
// Accessing static variable
// by creating an instance
// of the class
GFG test = new GFG();
test.count++;
System.out.println(test.count);
}
}