Gaurav Pavan Kumar Jain

Ranch Hand
+ Follow
since Mar 19, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Gaurav Pavan Kumar Jain

Please find the code of program.

import java.io.*;
import java.sql.*;

public class NewTest
{

public NewTest()
{
}


public void enter_Data()
{
Connection con=null;
try
{
// Load Driver class

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");


// Create Odbc Connection

con=DriverManager.getConnection("jdbc:odbc:test","","");

// Create Statement
Statement stat=con.createStatement();

// Insert Data in database
BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter Name:-");
String name=bf.readLine();
stat.executeUpdate("INSERT INTO jav " + "VALUES (name)");
}

catch (Exception Ex)
{
System.err.println("Error/Exception"+Ex.getMessage());
}


finally
{
try
{
if(con !=null)
{
con.close();
}
}

catch(SQLException se)
{
System.out.println("SQL Exception");
}
}
}

public static void main(String args[])
{
NewTest obj=new NewTest();
obj.enter_Data();
}
}

I am trying to insert data in database from console at run time but it genrate error---> [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

Please help me.
Hi Folks

I had been apper for SCJP1.5 examination but cannot clear I scored only 40% in the exam after that I cannot make myself for exam. I just get nervous and feel I cannot pass if i will give one more please help me what should I do for the exams. It is very necessary for me to clear this exam.

looking fwd for your help.
nicks
HI Folks


How I can make my carrer in Cyber Security by learning Java Security. Is there any certifications?
16 years ago
Thank you very much Kaydell
Hi Folks

Can you help me how we can use printStackTrace method in Exception please explain with code.
Thank you nicholas very much kindly guide me how I can start my studies in this regards some more advice from you any other book that i have to read which part I have to make strong.


Please guide me

thank you very much
17 years ago
Thank you Aryan for your priceless advice.
17 years ago
Hi Folks

I want to make my carrer in Information Security Services I had passed BCA (Bachlor of computer applications. Please suggest me how I can make my carrer in Information security currently I am appering in SCJP1.5 also. So please guide me how I can go in this field with the help of Java.


Thanks in advance
17 years ago
Hi Folks

I am facing in drag and drop type questions which I faced earlier also in exam and cause fail in my earlier attempt. Please any one help me how I can solve the drag and drop questions in exam if anybody has some mocks then please suggest me it will realy helpful for me.

This time I want to pass this exam so please me.

Thank you advace
Hi Folks

Please suggest me in Indore where I can apply as a Java proffesional



Thanks in advance
17 years ago
Hi Folks

Please let me know from where I can get Topicwise Free mock questions for java1.5
Hi

Thank you very much it's clear my big doubt
Hi Folks

My question is following statement is true or not if true then why iam getting error in following code

" If any class extends to abstract class then it's sub-class must be declare as abstract if we are not inherting any method of that class abtract class to sub-class."

I am getting error "TestAbsClass2 is not abstract and does not override abstract method show() in TestAbs2_class

abstract class TestAbs2_class
{

public void show2()
{
System.out.println("Non-Abstract method1 Inherited");
}

abstract void show();
abstract void display();
}


class TestAbsClass2 extends TestAbs2_class
{


void display()
{
System.out.println("Abstract method1 Inherited");
}


public static void main(String args[])
{
TestAbsClass2 obj1=new TestAbsClass2();
//obj1.show();
//obj1.show2();

obj1.display();
}
}
Hi Folks

Currently i am not working as Java Proffesional and I am not getting job due to lack of Experience.

I am having knowledge of J2SE 5 version. Please Guide what will be the right path for growing in Java profession.

Please help me. Thanks in advance

17 years ago
To declare method as final abstract is it neccesary to declare class as abstract class?

true/False