外企JAVA职位面试题,有兴趣的朋友进来解答一下! 1. What different between CORBA and RMI? 2. What is the JVM,JRE? 3. What different between EntityBean and SessionBean? 4. How to implement the transaction in EJB? 5. How to define the inner class? 6. What different between abstract class and interface in Jav a? 7. How to use "final" to class,method and data? 8. How to open a host and send a stream throught net in TCP/ IP using Java? 9. How to use JAVA thread? 10. How Java servlet work?
这个应该是去应聘web工程师的吧。
比如,数据结构,操作系统之类的/
你妹妹的,有那么牛吗!
CORBA can be implemented by any language
RMI is limited to java.
2. What is the JVM,JRE?
Java Virtual Machine
Java Runtime Enviroment 3. What different between EntityBean and SessionBean?
It's easy to differ them,but hard to say the difference!
EntityBean is publicly considered as a darg! 4. How to implement the transaction in EJB?
JTA (container or user defined) 5. How to define the inner class?
just define the class in another class(in anywhere). 6. What different between abstract class and interface in Jav a?
interface is more abstract than abstract class 7. How to use "final" to class,method and data?
final class can't be extended
final method can't be overrided, and can be inline by compiler!
final data can't be modified if it has initialized
8. How to open a host and send a stream throught net in TCP/ IP using Java?
Use java.net.Socket, you are stupid to ask such a foolish question,java
is famous as a network language,and socket is another mather.
9. How to use JAVA thread?
Thread or Runnable.
invoke the start mothod of a Thread instance. 10. How Java servlet work?
In short,init(),service(),destory();