oracle翻页,设计模式(UML)
你在项目中的角色,模块之间的划分问题.mvc,struts,Richclient方面的问题.
ejb与hibernate各自的优缺点.如何处理ejb中的异常问题.
英语的重要性.
hibernate机制中,如何处理大批量的sql。机制
jsp中有一个作用域:page.application。等等
bufferReader 和writer类的区别:
接口和类的区别:
sql中的preparestatement和statement中的区别
精通J2EE体系结构,对分布式应用有相当了解。精通Java、JavaScript、Jsp、JavaBean、Servlet编程,熟悉HTML/DHTML、JavaScript、XML等相关技术;熟练掌握Oracle/SQL/Server/Sybase/DB/数据库;熟悉Tomcat、WebLogic等WEB服务器;熟悉Linux、UNIX操作系统。
1.注意servlet中的SingleThreadModel模式,以及servlet的同步问题。
2.察看req.getSession()和req.getSession(boolean) 区别?
package com.vtradex;
public class test{
static char c;
public static void main(String[] args){
char c='f';
System.out.println("ss:"+c);
}
}
package com.vtradex;
public class test implements Runnable{
static char c;
private String holdA="this is";
private int[] holdB={1,2,3,4,5,6,7,8,9,10};
public static void main(String[] args){
test t=new test();
(new Thread(t)).start();
(new Thread(t)).start();
System.out.println("ss:"+c);
}
public synchronized void run(){
for(int i=0;i<10;i++){
System.out.println(holdA+holdB[i]+".");
}
}
}
package com.vtradex;
public class test {
public static void main(String[] args){
//System.out.println("ss:"+c);
}
public static Object getIt(){
Object rg=new Integer(3);
Object dg[][]=new Object[1][2];
dg[0][1]=rg;
dg[0][0]=rg;
rg=null;
return rg;
}
}
package com.vtradex;
import java.util.HashMap;
class A {
public int x;
private int y;
class B{
protected void method1(){
}
class C{
private void method2(){
method1();
}
}
}
public static void main(String[] args){
}
}
public test extends A{
public float z;
}
package com.vtradex;
import java.util.HashMap;
class test {
public static void main(String[] args){
Boolean b1=new Boolean(true);
Boolean b2=new Boolean(true);
System.out.println(b1==b2);
System.out.println(b1.equals(b2));
}
}
package com.vtradex;
import java.util.HashMap;
class test {
public static void main(String[] args){
f();
System.out.println("fddd");
}
static void f(){
char mychar='c';
switch(mychar){
default:
case 'a':System.out.println("a");break;
case 'b':System.out.println("b");break;
}
}
}
package com.vtradex;
import java.util.HashMap;
class test {
public static void main(String[] args){
int i=3;
int j=0;
double k=3.2;
if(i<k)
if(i==j)
System.out.println(i);
else
System.out.println(j);
else
System.out.println(k);
}
static void f(){
char mychar='c';
switch(mychar){
default:
case 'a':System.out.println("a");break;
case 'b':System.out.println("b");break;
}
}
}
package com.vtradex;
class test {
public static void main(String[] args){
Changer c=new Changer();
String[] arg={"aaa","bbb"};
c.method(arg);
System.out.println(arg[0]+""+arg[1]);
}
static class Changer{
void method(String[] s){
String t=s[0];
s[0]=s[1];
s[1]=t;
}
}
}
package com.vtradex;
class test {
public static void main(String[] args){
float f=3.2f;
int i=(byte)f;
}
static class Changer{
void method(String[] s){
String t=s[0];
s[0]=s[1];
s[1]=t;
}
}
}
package com.vtradex;
class test implements Runnable{
public static void main(String[] args){
Thread t=new Thread(this);
t.start();
}
public void run(){
System.out.println("hi");
}
}
package com.vtradex;
class test {
public static void main(String[] args){
f();
}
static void f(){
int i=9;
switch(i){
default:
System.out.println("de");
case 0:
System.out.println("0"); break;
case 1:
System.out.println("1");
case 2:
System.out.println("2");
}
}
}
第八章对象的容纳:
//第10章 Java IO系统
不仅有三种不同的种类的IO需要考虑(文件、控制台、网络连接),而且需要通过大量不同的方式与它们通信(顺序、随机访问、二进制、字符、按行、按字等等)。InputStream的作用是标志那些从不同起源地产生输入的类。这些起源地包括(每个都有一个相关的InputStream子类):
(1) 字节数组
(2) String对象
(3) 文件
(4) “管道”,它的工作原理与现实生活中的管道类似:将一些东西置入一端,它们在另一端出来。
(5) 一系列其他流,以便我们将其统一收集到单独一个流内。
(6) 其他起源地,如Internet连接等(将在本书后面的部分讲述)。
第十三章 创建窗口和程序片
第14章 多线程
假设类A 有两个同步方法f和g;比如某个thread1调用对象A的同步方法f或则g,那么别的thread2就不能再调用任何一个同步方法.直到thread1调用完毕,然后释放这个锁.
class A extends Thread{
public void run(){
}
public static void main(String[] args){
A a=new A();
a.start();
}
}
public A implements Runnable{
public void run(){
}
public static void main(String[] args){
Thread t=new Thread(A.this);
t.start();
}
}
第16章 设计范式
疑问:
class.this的用法
GUI四种布局器:
FlowLayout:默认方式.从左到右.直到顶部的空格全部填满再下一行.
BorderLayout:分为上下左右.所以应该使用add("North","new Button("Button:"+i++)");
GridLayout:允许我们建立一个组件表,添加组件时候,会从左往右,从上到下的顺序在网格中排序.
MS电话:021-34244720
地址:美罗大厦25楼
1.老外问英语:
你觉得有什么需要避免的事情,在你所应聘的职位中.
你希望你的工作是什么样子的?
为何要来为微软
2.中国人(20多岁):
在一个异构的环境中,如何传递消息,我的回答通过xml,soap,她提示协议通过http.tcp
建立一个socket的5个基本要素:server端的ip,端口,client的ip,端口.
如何确定client的ip和端口.
如何保持线程的同步:我的回答:pv信号量.
实现一个程序:在一个有序的数组中如何实现一个删除重复元素的操作.如:1,2,3,3,4,4那么结果应该是1,2,3,4
3.一个程序,实现一个字符串的反序.char* strRev(char* s);
4.两种加密算法,des rsa,说说rsa的基本原理.
MTU的含义(最大传输单元)
网络通信中的3次握手如何实现的?
5.vba方面的东东,如何和powerpoint实现编程.
6.有没有用c/c++开发过实现底层一点的程序?
7.虚函数和纯虚函数的区别.堆栈的区别,效率.
8.sps组sharepoint下的portal 有关门户网站方面的东东,基于office,网站性质的文档管理.
9.给我一份文档,让我看两周,然后再联系tracy,到时候再来一次面试来决定是否录用.
MS全球技术支持中心主要职责:
提供技术支持.包括一般的config方面的问题,还有fix bug.以及代码级别的debug,最后需要把问题反馈给美国总部,统一进行官方补丁的release.
熟悉UML,可以熟练使用一种或多种软件设计工具( Rational Rose、Microsoft Visio等);
精通J2EE体系结构,对分布式应用有相当了解。精通Java、JavaScript、Jsp、JavaBean、Servlet编程,熟悉HTML/DHTML、JavaScript、XML等相关技术;熟练掌握Oracle/SQL/Server/Sybase/DB/数据库;熟悉hibernate,
熟悉struts
熟悉Tomcat、jBoss,WebLogic等WEB服务器;
熟悉Linux、UNIX操作系统。
XSLT,xml
JDBC、O/R Mapping、DOM、SAX、SQL Server
熟悉XML,schema,等xml编程技术;
JTS、JMS、JDBC、XML、UML
-熟练使用Java语言开发应用系统
a.熟练掌握Java的基本类库(IO, Net, Swing, AWT, 多线程, Exception);
b.熟悉JSP和Servlet的原理,熟悉Struts框架,有Struts框架下应用系统开发的实际经验
c.熟练掌握JavaScript / HTML / CSS / XML applet,swing
-熟悉至少一种数据库系统 DB2 / Oracle / MS SQL Server / PostgreSQL / MySQL,能够编写较为复杂的SQL程序;熟悉SQL性能优化的方法;
-熟练使用以下工具的一种或多种:Eclipse / WSAD / JBuilder;
-熟练使用ANT、Junit、Cactus工具;
-具有面向对象系统分析和设计的实际经验;熟悉UML;
-熟悉设计模式(Design Pattern)及其Java实现者优先考虑;
-具有Rational Rose 或 Microsoft Visio经验的优先考虑;
-熟悉CVS或VSS的日常使用;
-有对日外包软件开发经验优先,日本语能力3级以上者优先;
-有Perl或Lotus Note开发经验者优先
http://www.tusc.com.au/tutorial/html/chap3.html
package com.vtradex;
import java.util.ArrayList;
import java.util.List;
class test {
public static int a[]={1,2,3,5,3,3,3};
public static List list=new ArrayList();
public static void main(String[] args){
// List list=new ArrayList();
for(int i=0;i<a.length;i++){
if(search(a[i],list)){
list.add(new Integer(a[i]));
}
}
for(int i=0;i<list.size();i++){
System.out.println((Integer)list.get(i));
}
}
public static boolean search(int a,List list){
for(int i=0;i<list.size();i++){
Integer inet=(Integer)list.get(i);
if(a==inet.intValue())
return false;
}
return true;
}
}
1. 请说明下列语法有何问题:
……
……
}
1. 请用Java撰写程序:假设一个String中,存放的是一篇英文文章,请统计出此篇文章中每个单词出现的频率(不区分大小写、不统计标点符号,文章中会出现的标点符号只有:「,」、「.」及空白符号),最后以出现频率由大到小的顺序打印出单词;例如:
ID
|
Name
|
Sex
|
Age
|
1
|
May
|
Female
|
15
|
2
|
Tony
|
Male
|
23
|
3
|
Linda
|
Female
|
29
|
4
|
Grace
|
Female
|
35
|
5
|
Joe
|
Male
|
55
|
No
|
St
a
ff_ID
|
Name
|
Relation
|
1
|
1
|
George
|
Father
|
2
|
1
|
Joyce
|
Mother
|
3
|
3
|
James
|
Husband
|
如果该名Stuff没有家庭成员,则FamilyMember.Name, FamilyMember.Relation可为Null
1.对于运算符,如果是二元运算,那么byte,short,char转换成int,别的情况都是需要转换成更宽的那种类型再进行计算 2.对于一元运算,如果是byte,short,char需要转换成int,别的不用转换. 所以对于代码: byte b1=1; byte b2=2; b1=b1*b2;--不被编译通过,因为b1和b2需要转换为int才可以使用.返回的是int型的. 2.对于异常,有两部分Exception和Error实现了Throwable接口,对于Error,我们不需要捕捉,代表编译器错误和系统错误.我们关心的是要是 来自Exception的就可以了。Exception也分为两部分,一块是checked Exception,是说在一个正常的程序中也可能产生的问题,比如I/O Exception。 另一块是指Runtime Exception,他是指程序bug,在正常的程序中不应该出现的,比如NullPoinerException. 3.对于error部分,比如下列代码: try{ throw new OutOfMemoryError(); }catch(Exception e){ System.out.println(1); }finally{ System.out.println(2); } System.out.println(3); 他只会输出2,不会输出3,因为是error在输出finally后就中止了.如果是Exception,那么会继续执行3的. 4.对于for语句,注意下列是否合法: int i=8; for(i++,int j=0;i<10;j++){} 非法 for(int i=7,long j=0;i<10;j++){} 非法 for(int i=7,j=0;i<10;j++){} 合法 就是说只能写在前面,一个. for(int i=7, int j=0;i<10;j++){} 非法. 5.比如 outer: for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ if(j==2) break outer; System.out.println("i:"+i+"j:"+j); } } System.out.println("over"); 输出结果是: i=0j=0; i=0j=1; over
1.TL职责
2.几个成员
3.向谁汇报?product manager
4.做过ems么?
5.材料用中文还是英文
6.需要直接面对客户么?
7.接下去的流程如何?
1.volatile关键字的使用(第三章): violate关键字能够保证变量不会保存在寄存器,而是在存储器中。保证变量真正被thread共享 对于使用synchronized关键字也可以实现的原因是:当virtual machine进入synchronized method或块时候,它必须重新加载本来已经cached 到自有存储器上的数据。在virtual machine离开同步method或块之前,它必须把自有寄存器存入到主存储器中 2.条件变量(第四章) 3.可以使用Lock。比synchronized更强大 4.atomic class(似乎可以略过不看)(第五章) 5.ThreadLocal并不能替代同步机制,两者面向的问题领域不同。同步机制是为了同步多个线程对相同资源的并发访问,是为了多个线程之间进行通信的有效方式;而ThreadLocal是隔离多个线程的数据共享,从根本上就不在多个线程之间共享资源(变量),这样当然不需要对多个线程进行同步了。所以,如果你需要进行多个线程之间进行通信,则使用同步机制;如果需要隔离多个线程之间的共享冲突,可以使用ThreadLocal,这将极大地简化你的程序,使程序更加易读、简洁。 截至5.24看到第五章
Stream classes are used to read and write bytes, and Readers and
Writers are used to read and write characters. Since all of the file I/O on
the exam is related to characters, if you see API class names
containing the word "Stream", for instance DataOutputStream, then the question
is probably about serialization, or something unrelated to the actual
I/O objective
jam as much code as they can into a small space
尽可能挤压很多代码到小的空间中
we had to declare its size beforehand 预先定义它的长度 so we'd have
been in trouble if we hadn't made it big enough
new BufferReader(new FileReader(new File("")))
in shape 在外形上, 处于良好状态
if you understand everything we've covered in this section,
you will be in great shape to handle any java.io questions you
encounter on the exam (except for serialization, which is covered in the next
section).
The Collections Framework in Java, which took shape with the release
of JDK 1.2 and was expanded in 1.4 and again in Java 5, gives you lists,
sets, maps, and queues to satisfy most of your coding needs. They've
been tried, tested, and tweaked. Pick the best one for your job and
you'll get—at the least—reasonable performance. And when you need
something a little more custom, the Collections Framework in the java.util
package is loaded with interfaces and utilities.
学习一下这种表达式List<? extends Animal> animals
chapter7 Generics and Collections中的Self Test需要再看一下
内部类:
class Outer{
class Innter{
}
}
Outer.Innter in = new Outer.new Innter();
Method-Local Inner Classes(方法内的内部类)
可以访问类的属性。但不能访问该方法的局部变量,但是用final就可以
class MyOuter2 {
private String x = "Outer2";
void doStuff() {
String z = "local variable";
class MyInner {
public void seeOuter() {
System.out.println("Outer x is " + x);
System.out.println("Local variable z is " + z); //Won't
Compile!
} // close inner class method
} // close inner class definition
} // close outer class method doStuff()
} // close outer class
final String z = "local variable"; // Now inner object can use it
Anonymous Inner Classes(匿名类)
Static Nested Classes(静态内部类)
class BigOuter {
static class Nest {void go() ( System.out.println("hi"); } }
}
BigOuter.Nest n = new BigOuter.Nest(); // both class names
6.
Which are true about a method-local inner class? (Choose all that
apply.)
It must be marked final.
It can be marked abstract.
It can be marked public.
It can be marked static.
It can access private members of the enclosing class.
答案是:
B and E. B is correct because a method-local inner class can be
abstract, although it means a subclass of the inner class must be created if
the abstract class is to be used (so an abstract method-local inner
class is probably not useful). E is correct because a method-local inner
class works like any other inner class—it has a special relationship to
an instance of the enclosing class, thus it can access all members of
the enclosing class.
A is incorrect because a method-local inner class does not have to be
declared final (although it is legal to do so). C and D are incorrect
because a method-local inner class cannot be made public
(remember—local variables can't be public) or static.