Classes can't be defined as static. However, you can achieve something similar in concept. The closest thiing that fits your description is a class of the following:
<pre>
public class A {
static int b;
static
String = "justOne";
private A() {}
public static void amethod() {}
}
</pre>
Private constructor so no one can create an instance. All members are static. See java.lang.Math for example.
Another approach that's sort of similar is the singleton
pattern. The idea is to only allow one single instance to be ever created. Static members are still allowed. An example of that is:
<pre>
public class A {
private int a;
public static int b;
private static A me;
private A() {}
public static A getInstance() {
if (me == null) {
me = new A();
}
return me;
}
public void aMethod() {}
}
</pre>
In this example, constructors are private. A public static method is provided to return the same instance at all times.