Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getting identifier expected error

807605Jul 18 2007 — edited Jul 18 2007
can 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2007
Added on Jul 18 2007
5 comments
364 views