-
-
Servlet Request Object
What is difference b/w WITH ServletRequest Object:................RequestDispatcher rd = getServletContext().getRequestDispatcher( "/servlet/XYZServlet"); rd.forward(request, response);with ServletContext Object:.......... RequestDispatcher rd = getServletContext().getRequestDispatcher( "/servlet/XYZServlet"); rd.forward(request, response);what is difference b/w these two objects?which one is better...
-
-
-
-
-
Difference between forward and sendRedirect
What is difference between forward and sendRedirect
-
-
-
-
-
Connection c=DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:sid","scott","tiger" );
Statement s=c.createStatement();
ResultSet rs=s.executeQuery("select * from books");
while(rs.next())
{System.out.println("dno="+rs.getString(1)+"t"+"dname="+rs.getString(2)+"t"+"loc="+rs.getString(3));
}
}catch(Exception e){System.out.println(e);}
}
}">Problem in connection with Oracle without ODBC using Think DriverFollowing code is not workinggiving error Exception in thread Main java.lang.NoClassDefFoundError:jdbc1import java.sql.*;class jdbc1 { public static void main(String args[]) { try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection c=DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:sid","scott","tiger" ); Statement s=c.createStatement(); ResultSet rs=s.executeQuery("select * from books"); while(rs.next()) {System.out.println("dno="+rs.getString(1)+"t"+"dname="+rs.getString(2)+"t"+"loc="+rs.getString(3)); } }catch(Exception e){System.out.println(e);} } }
-
-
-
-
-
-
-
-
What is magic word in java? and How to find it?
ca fe ba besteps:when u open any .class file.u can see first 4 characters.u have read those characters from the class file and convert those characters into Hexadecimal using toHexString method in Integer wrapper class.
J2EE Interview Questions
Sub Category
Questions
Answers
Last Updated
Ans