China.com Java Interview Title [Collection :)]

xiaoxiao2021-03-06  72

Some famous big company interview topics are often found.

I. Java basic knowledge 1. Java has those basic data types, String is the basic data type, what is the difference they have. Integer Literals, Floating-Point Literals, Character Litrals, Boolean Litral, String Iteral. String is not basic data type 2. String operation: Write a method to implement strings, such as input ABC, output CBA public static string Reverse (string s) {intlength = s.Length (); stringbuffer result = new stringbuffer (length); for (int i = length-1; i> = 0; I -) Result.Append (S.Charat) i)); return result.toString ();} Write a method to implement the replacement of the string, such as input BBBWLIRBBB, output BBBHHTCCC. 3. Conversion between data types How to convert numeric characters into numbers (Integer, Double) how to convert digital to characters to the first two digits, and go all over. 4. How to get the date and time of the year, hourly second DATE DAT = new date (); dat.getyear (); dat.getDay (); dat.getHours (); ... Get the number of milliseconds from 1970 to the current mill (); how to get a date is how to format the date DateFormate DF = DateFormate.getinstance (); DFMAT (DAT); 5. Arranges and Collections 6. Documents and Directory (I / O) Operation How to list all the files in a directory how to list all subdirectories in a directory to determine if there is a file or directory how to read and write 7. Java Implementation (inheritance, overloading, overlay) 8. Coding conversion, how to convert a string encoded by GB2312 into ISO-8859-1 encoded strings. 9. The difference between step, statement, and preparedStatement accessed in Java. 10. Find out the error that the following code may exist and explain the reason: Second, JSP & Servlet technology 1. Describe the differences between JSP and Servlets, common, and respective applications 2. What should I do when I need to handle HTML tags in web development? The processing is to filter those characters (<> & ") 3. Read the client's request in JSP, how to access the CGI variable, how to determine the true path of a JSP file. 4. Describe the role, differences between cookie and session, and their respective applications, and the SESSION work. 5. What is the difference between the two people who contain external files in the JSP. 6. Describe the role of ErrorPage in JSP, application range. 7. Explain how to use JavaBeans in JSP. 8. Simple introduction to the JSP tag library 9. How to forward the request forwarding in the JSP and Servlets. Third, J2EE related knowledge 1. Introduce the difference between J2EE, J2SE, J2SE. 2. J2EE is a technology or a platform that provides those technologies. 3. What is Application Server, what features and advantages it is. 4. Briefly introduce the advantages and principles of the connection pool.

5. WEB.XML's role 4, other 1. Web security considerations (form validation, authentication of browser Basic mode, application security, SSL, code consideration) 2. Simple introduce your MVC. 3. Briefly introduce the XML you know. 4. Documents and Coding Specifications 5. Paging, efficiency considerations in Java. 6. Briefly introduce the Structs you know. Find out the following procedures. Class test {private string par1; private string par2; test () {} public static void main (string [] arg) {Int a; if (a) {system.out.println ("par1 =" par1);} Else {system.out.println ("PAR2 =" PAR2);}}}

转载请注明原文地址:https://www.9cbs.com/read-120175.html

New Post(0)