Http://community.9cbs.net/expert/topic/3491/3491752.xml?temp =.80202881, jSP What built-in objects? What is the role? 2, describe the lifecycle and basic architecture of the servlet. 3, many threads have several implementation methods, what is it? Synchronize several implementation methods, what is it? 4, the scope public private private protected and the difference between when not writing? 5. Use Java to implement the database query (write a complete program). 6. Judgment 123456_78 is not a number with a regular expression. 7. What kinds of methods have you? Please list it. Implement a rapid sort with Java.
After finger, it doesn't matter. I only know a syschronized4. Public package External Private This type of Protected This class is default this package 5. Class.Forname (driver class); connection conn = drivermanger.getConnection (URL, Name, Password); statement stmt = Conn.createStatement (SQL); ResultSet RS = stmt.executeQuery (); while (rs.next ()) {// Todo} 6. Pattern P = Pattern.Complite (regstr); matcher m = p.matchers (); While (M.Find ()) {// Todo} 7. Legendary bubbling for (IN i = 0; i ; i ) {for (int J = i; j ; j ) {//// Todo}}
I didn't expect that I didn't take advantage of JAVA.
JSP built-in object
ServletContex type of application objects ServletConfig type of config objects JspWriter type out an object of type Object page object (this) PageContext type pageContext object of type HttpServletRequest request object type HttpResponse response object HttpSession session object type of exception object // out there --- Jsp.jspwriter object, display content request --- httpservlet on HTML, contains objects to request information response --- httpservlet, respond to the response session - HttpSession object, each customer Unique session with the current request, Exception - Throwable subclasses, requested for an exception that thrown when an error is incorrect Page - Equivalent to this