datatype variable_name [ = value];
You can deploy Apex using:
Change Sets
the Force.com IDE
the Force.com Migration Tool
the Web Services API
To invoke Apex classes to run at specific times, first implement the Schedulable interface for the class, then specify the schedule using either the Schedule Apex page in the Salesforce user interface, or the System.schedule method.