static can be applied to a variable,method or even an inner class
static variable or a static method implies no object for the respective class i.e., instantiating the class is not necessary in order to access that method or variables.
for example
class ex {
static void display() { System.out.println("hello"); }
public static void main(
String[] ag)
{
display();
}
}
private is an access specifier.
if a method or a variable is declared as private in a class,they cannot accessed outside the scope of the class,not even in a child class.
void means the given method does not return any type.i.e., 0
A given method has to be atleast declared void in java since java requires a return for a method.
neways i hope i have confused 2 much..