面试题就是下面的。1.说出strut1,sturt2,webwork的配置流程,并说出这些框架中常用的jsp标签
2,spring中是用哪个类的哪个方法托管bean的。
3,http有哪几种状态
4,说说你对多态的理解,用代码实现一下
5,jsp的内置对象以及作用
6,多线程应注意哪些问题
7,网络编程中 的socket应注意哪些问题
8,写一条sql语句用上order by,group by ,where
9,写出单例
10,序列号有什么好处
11,连接池的实现原理
12,jsp的编译原理
13,有一个访问量特别的网站,你有什么优化方案深圳 珍爱网面试题
2,spring中是用哪个类的哪个方法托管bean的。
3,http有哪几种状态
4,说说你对多态的理解,用代码实现一下
5,jsp的内置对象以及作用
6,多线程应注意哪些问题
7,网络编程中 的socket应注意哪些问题
8,写一条sql语句用上order by,group by ,where
9,写出单例
10,序列号有什么好处
11,连接池的实现原理
12,jsp的编译原理
13,有一个访问量特别的网站,你有什么优化方案深圳 珍爱网面试题
1,
strut1:
先导入jar包,然后配置web.xml中的filter,然后actionform,之后action,最后strut-config.xml
jsp标签:<html:form><html:logic><hitm:bean>
strut2:
导入jar包,配置filter,2.1.6前后有所不同,之后action,然后strut.xml
jsp:ognl表达式,以及el表达式
webwork:没有接触过
2:ApplicationContext ac = new ApplicationClassXMLPath("applicaton.properties");
Bean bean = (Bean)ac.getBean("beanname");
3,
1XX Informational
2XX Success
3XX Redirection
4XX Client Error
5XX Server Error细分好几十种状态呢!谁会去背那玩意儿?!
public abstract class A
{
public abstract Method();
}
public class B:A
{
public overide Method()
{
Console.WriteLine("B");
}
}public class C:A
{
public overide Method()
{
Console.WriteLine("C");
}
}
对于Method就体现多态。例
public class Program
{
public static Main(paras string[] args)
{
A test =new B();
A test2= new C();
test.Method();//输出B
test2.Method();//输出C
}
}6,多线程应注意哪些问题死锁,同步,线程安全。
8,写一条sql语句用上order by,group by ,whereselect * from ttt where ttt.b='' group by ttt.a order by ttt.c
(这个题有点无聊吧,考这几个关键词的顺序?)
9,写出单例
public class Singlone
{
private Singlone()
{
}
private static Singlone instance= new Singlone();
public static getInstance()
{
return instance;
}
}11,连接池的实现原理
public class ConnectionPool
{
private ConnectionPool()
{
}
private int states=0;
private static List<ConnectionPool> instancePool= new List<ConnectionPool>();
public static getInstance()
{
return instancePool.Single(x=>x.states==0);
}
void Close()
{
states=0;
}
void Open()
{
states=1;
}
}
13,有一个访问量特别的网站,你有什么优化方案
特别大?首先建立监控,查看流量造成的瓶颈,如果瓶颈为网络,通过负载均衡分配网络流量,如果瓶颈为数据库,考虑读写分离,分库,分表,如果瓶颈为CPU,考虑缓存,分布式缓存。
如果有答的不对的地方,请补充
呃,您这是在逗人家玩吧。
HTTP 是 stateless protocol 指的 session state
这里人家指的显然是HTTP status codesstate , status 中文都叫状态。
用中文描述技术问题果然还是不给力啊。
回答上述问题后,会给多少k?