getting identifier expected error
807605Jul 18 2007 — edited Jul 18 2007can any1 plese help me out in solving the <identifier > expected error in the given code below
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
/*
<applet code="part1" width=500 height=500>
</applet>
*/
public class part1 extends Applet implements ActionListener
{
Class.forName("oracle.jdbc.driver.OracleDriver");//error coming here
Statement stmt;
Connection conn=null;
//Making the database connection
conn = DriverManager.getConnection("jdbc:Oracle:thin:bharat/bharat@mdrrcc");//here again the error is coming
stmt = conn.createStatement();//here again same error
ResultSet rs;
String query;
query = "SELECT * FROM BHARAT";//again here
rs = stmt.executeQuery(query);//here again