Yes, the robot starts out running the main, and that is always static. It's the same way with java programs - you create a static main method that's responsible for launching everything else. Within that static main method, create your objects for everything else you want to do. For example:
Code:
public static void main(string[] args)
{
RobotCode myCode = new RobotCode();
while (myCode.isEnabled())
{
//do stuff
}
}