its compiled successfully but when i run it it shows :
java.sql.SQLException:no data found
but i hav written code in try n catch block !!
help plz
Type: Posts; User: jatinrai199
its compiled successfully but when i run it it shows :
java.sql.SQLException:no data found
but i hav written code in try n catch block !!
help plz
class Testdb
{
public static void main(String ...arg)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c =DriverManager.getConnection("jdbc:odbc:jatindsn","system","pwd");
...
i am sorry for not explaining my question .. i posted in hurry ..btw i got solution
thnx newbie .......//
i am beginner in java
if there is any silly mistake please forgive me..
and if possible then plz tell me
" when we should make new classes in multiclasses program " !!
import java.util.*;
class MyComp implements Comparator
{
public int compare(Object o1 ,Object o2)
{
Temp t1 = (Temp)o1;
Temp t2 = (Temp)o2;
if(t1.salary>t2.salary)
return 1;...
thanks a lot ......
i am not getting desired output ..still there are not errors !!!!
//class MyServer
import java.io.*;
import java.net.*;
import java.util.*;
public class MyServer
{
ArrayList al = new...