Shredded interviewer Series (five): Tomcat + Mysql + Design Patterns interview topics

Tomcat


(Way to receive answers interview questions + See sidebar)

 

  1. The default port for Tomcat is how much, how to modify?
  2. Connector tomcat, which has several operating modes (optimized)?
  3. There are several ways to deploy Tomcat?
  4. How tomcat servlet container class instance is created? What principle is used?
  5. Tomcat how to optimize?
  6. How memory tuning?
  7. How to tune garbage collection policy?
  8. How to handle shared session?
  9. How to add JMS remote monitoring?
  10. Analytical tools professional point of what?
  11. The number of session on Tomcat
  12. How to monitor memory usage of Tomcat
  13. Where loading and recovery of the printing object class
  14. Tomcat complete process a request
  15. Tomcat working mode?

MySQL

 

  1. What database three paradigms?
  2. What database optimization experience there?
  3. Please describe briefly what kind commonly used index?
  4. And what indexes in mysql database mechanism work?
  5. MySQL's basic operation command
  6. Mysql replication principle and process
  7. mysql supports replication type?
  8. mysql with innodb distinguish myisam of?
  9. Meaning the difference between varchar and char in the mysql and (50) 50 representatives of varchar?
  10. MySQL InnoDB support in four transaction isolation level name, and the differences between progressive?
  11. Table has a large field X (for example: text type), and the X field will not be updated frequently to read as main, this field is split into sub-table what the benefits?
  12. Row lock in MySQL InnoDB engine is done by adding on what (or realization) of?
  13. MySQL in the global parameters to control memory allocation, what?
  14. If a table has only one field VARCHAR (N) type, utf8 encoding, maximum N is the number of (accurate to the order of magnitude can be)?
  15. What are the advantages and disadvantages [SELECT *] and [SELECT all fields] of two kinds of writing?
  16. HAVNG WHERE clause and the similarities and differences?
  17. MySQL when the record does not exist insert, update when the record exists, the statement how to write?
  18. MySQL's insert and update the select statement syntax

Design Patterns

 

 

    1. 请列举出在 JDK 中几个常用的设计模式?
    2. 什么是设计模式?你是否在你的代码里面使用过任何设计模式?
    3. Java 中什么叫单例设计模式?请用 Java 写出线程安全的单例模式
    4. 在 Java 中,什么叫观察者设计模式(observer design pattern)?
    5. 使用工厂模式最主要的好处是什么?在哪里使用?
    6. 举一个用 Java 实现的装饰模式(decorator design pattern)?它是作用于对象层次还是类层次?
    7. 在 Java 中,为什么不允许从静态方法中访问非静态变量?
    8. 设计一个 ATM 机,请说出你的设计思路?
    9. 在 Java 中,什么时候用重载,什么时候用重写?
    10. 举例说明什么情况下会更倾向于使用抽象类而不是接口?

Guess you like

Origin www.cnblogs.com/chengxuwang/p/11201073.html