If you want to execute a DDL statement from
java, it is enough to run a stored procedure.. In the stored procedure use execute_immediate (for 8i and above) for executing the DDL statements.
If your oracle version 8 and use
DBMS_SQL.PARSE,DBMS_SQL.DEFINE_COLUMN,
DBMS_SQL.EXECUTE, for executing DDL statements