网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.JCP失去活力 Java.net能否取而代.
.java开发常用工具总结.
.Spring1.2rc1中jmx支持的一些答疑.
.JAVA基础:Java 启动器如何查找类.
.避免使用空指针作为标志以防止出.
.J2ME综合技术:嵌入式LINUX中的J.
.Web Service实现包--AXIS2学习笔.
.jboss配置mysql数据库连接池.
.J2SE:六大代码问题检验你的Java知.
.触摸Java编程中的“文档”和“包.
.Eclipse开发J2ME程序之Hello Wor.
.EJB 技术的数据库应用.
.如何使用动态代理实现AOP功能.
.字符匹配.
.给在校生-JAVA学习,一条漫长的道.
.Effective java学习笔记1:考虑使.
.J2EE建议的学习路线!.
.Sun重整旗鼓 软件开源收购三大主.
.Java编程语言中启动器如何查找类.
.什么是 Enterprise JavaBeans 组.

SCJP Braindumps 05/15/2002

发表日期:2008-1-5



  HI guy, This dump will definetely enable u to pass sun certified Java progamer exam. I passed with 88% marks I could remember only these question in my exam. and If you know ur concepts then you are sure to pass. Download my dump and if you can take the exam soon then I am sure u will pass cause these question were in my exam. Dont waste your time
  searching for java dumps just read this but dont memorise the answer just know the concept and this dump will definitely see u thru.
  Good lUCk to all.
  
   2. 1) class Super{
  2) public float getNum(){return 3.0f;}
  3) }
  4)
  5) public class Sub extends Super{
  6)
  7) }
  which method, placed at line 6, will cause a compiler error?
  A. public float getNum(){return 4.0f;}
  B. public void getNum(){}
  C. public void getNum(double d){}
  D. public double getNum(float d){return 4.0d;}
  /b
  
  4. public class Foo{
  public static void main(String args[]){
  try{return;}
  finally{ System.out.println("Finally");}
  }
  }
  what is the result?
  A. print out nothing
  B. print out "Finally"
  C. compile error
  /b
  
  12. public class Test{
  public static void main(String[] args){
  String foo=args[1];
  Sring bar=args[2];
  String baz=args[3];
  }
  }
  java Test Red Green Blue
  what is the value of baz?
  A. baz has value of ""
  B. baz has value of null
  C. baz has value of "Red"
  D. baz has value of "Blue"
  E. baz has value of "Green"
  F. the code does not compile
  G. the program throw an exception
  /g
  /ArrayIndexOutOfBoundsException
  
  
  27. public class SychTest{
  private int x;
  private int y;
  public void setX(int i){ x=i;}
  public void setY(int i){y=i;}
  public Synchronized void setXY(int i){
  setX(i);
  setY(i);
  }
  public Synchronized boolean check(){
  return x!=y;
  }
  }
  Under which conditions will check() return true when called from a different class?
  A.check() can never return true.
  B.check() can return true when setXY is callled by multiple threads.
  C.check() can return true when multiple threads call setX and setY separately.
  D.check() can only return true if SychTest is changed allow x and y to be set separately.
  /c
  
  public class Foo{
  public static void main(String[] args){
  StringBuffer a = new StringBuffer("A");
  StringBuffer b = new StringBuffer("B");
  operate(a,b);
  System.out.println(a + "," + b);
  }
  static void operate(StringBuffer x,StringBuffer y){
  y.append(x);
  y = x;
  } // end operate
  }
  
  What print?
  
  a. "A,B" b. "A,A" c. "B,B"
  d. "AB,B" e. "AB,AB" f, "A,AB"
  
  Answer:
  F
  
  public class x implements Runnable{
  private int x;
  private int y;
  
  public static void main(String args[] ){
  x that = new x();
  (new Thread(that)).start();
  (new Thread(that)).start();
  }
  public synchronized void run(){
  for( ; ; ){
  x++;
  y++;
  System.out.Println("x=" + x + ", y=" +y);
  }
  }
  
  a. An error at line 11
  b. An error at line 7, 8
  c. The program prints pairs of values for x and y that might not always be the same on the same line (for example "x=2, y=1")
  d. The program prints pairs of values for x and y that are always the same on the same line (for example "x=1, y=1") in addition, each value appears twice (for example "x=1, y=1" followed by "x=1, y=1")
  e. The program prints pairs of values for x and y that are always the same on the same line (for example "x=1, y=1") in addition, each value appears only once (for example "x=1, y=1", followed by "x=2, y=2)
  
  1. public class x{
  2. public object m(){
  3. Object o=new Float(2.14F);
  4. Object [] oa=new Object[1];
  5. oa[0]=o;
  6. o=null;
  7. return o;
  8. } // end m() method.
  9. }
  
  When is the Float object creation in line 3 eligible for garbage collection ?
  
  a. just after line 5
  b. just after line 6
  c. just after line 7 (that is , as the method returns)
  d. just after line 8 (that is, as the method ends)
  
  
  1. abstract class AbstractIt{
  2. abstract float getFloat();
  3. }
  4. public class AbstractTest extends AbstractIt{
  5. private float f1 = 1.0f;
  6. private float getFloat(){return f1}
  7. }
  
  what result?
  
  a. compile success
  b. An error at line 6
  c. An error at line 4
  d. An error at line 2
  
  Answer:
  b
  
  2. import java.io.IOException;
  
  public class ExceptionTest{
  public static void main(String[] args){
  try{
  methodA();
  }catch(IOException io){
  System.out.println("caught IOException");
  }catch(Exception e){
  System.out.println("caught Exception");
  }
  }
  public void methodA(){
  throw new IOException();
  }
  }
  
  what result?
  
  a. The code will not compile
  b. Output is "caught Exception"
  c. Output is "caught IOException"
  d. The program execute nomally whihout print a message
  
  Answer:
  a
  non-static method methodA() cannot be refereced from a static context.
  
  3. public class Foo{
  public static void main(String[] args)[
  try{ return;}
  finally{ System.out.println("Finally");}
  }
  }
  
  what result?
  
  a. Print nothing
  b. Print "Finally"
  c. Not compiled and will Exception thrown
  d. Not compile because catch block missing
  
  Answer:
  b
  
  4. 1. class A implements Runnable {
  2. int I;
  3. public void run () {
  4. try {
  5. Thread.sleep(5000);
  6. i=10;
  7. }catch(InterruptedException e) {}
  8. }
  9. }
  10.
  11. public class Test {
  12. public static void main (String args[]) {
  13. try {
  14. A a = new A();
  15. Thread t = new Thread(a);
  16. t.start();
  17.
  18. int j= a.i;
  19.
  20. }catch (Exception e) {}
  21. }
  22. }
  
  Which statement at line 17 will ensure that j=10 at line 19
  
  A. a.wait(); B. t.wait(); C. t.join(); D. t.yield();
  E. t.notify(); F. a.notify(); G. t.interrupt();
  
  Answer:
  C
  
  5. 1. public class SyncTest {
  2. private int x;
  3. private int y;
  4. private synchronized void set X (int i){ x=i; }
  5. private synchronized void set Y (int i){ y=i; }
  6. public void setXY (int i) {set X(i); set Y(i); }
  7. public synchronized boolean check() {return X != Y; }
  8. }
  
  Under which conditions will check() return when called from a different class. Choose one
  
  A. check() can never return true
  B. check() can return true when set XY is called by multiple threads
  C. check() can true when multiple threads call set X and set Y separately
  D. check() can only return true if synchTest is changed to allow x and y to be set separately
  
  Answer:
  C
  
  6. Which is a method of the MouseMotionListener interface
  
  A. public void mouseDragged(M
上一篇:SCJP学习指南 人气:1145
下一篇:310-025 scjp exam dumps 06/10/02 人气:639
浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐