a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 50|回复: 0

[考试试题] 2011年JAVA认证模拟题(36)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
  Q106 Which of the following classes have a paint() method?
5 X, X% j, B) a* N2 P/ _  A Canvas! E7 m, ?6 q6 V4 o: W; O2 t4 v8 u
  B Image( [2 N5 V1 C, B; s% p6 N6 d; c
  C Frame& J% |+ @. L& l* S& Y
  D Graphics0 r$ {: f# g+ M9 a! d( K6 Z, ~: ~% F
  Q107 Which of the following are true about the File class?
! k6 l! \& D9 f2 C- Q( Q. R  A A File object can be used to change the current working directory.
  B& O! x2 \" l6 w. e" n  B A File object can be used to access the files in the current working directory.; F7 b7 k! p+ \& |
  C When a File object is created, a corresponding directory or file is created in the local file system.5 G$ v& x6 R6 z3 c' i
  D File objects are used to access files and directories on the local file system.+ A4 {% B+ B( V4 u% @5 b1 H
  E File objects can be garbage collected.
& |, W; o0 ]# I5 n  A; _: B7 _  S1 x  F When a File object is garbage collected, the corresponding file or directory is deleted.' H" R/ }( `) u  e6 q
  Q108 What is the output displayed by the following program?! W* X1 F9 L3 v0 C$ G1 f
  class Question {4 y+ F9 [: D  e- y& n" y7 k
  public static void main (String [] args)2 \- I$ I. K  F9 M
  {
! F! @( J. _, a  int n =7;
0 }0 l3 c- K9 S! {) v  n =2;: d  @9 U2 e" R! a5 P  U
  System.out.println(n);
. B! _  L1 ]9 O9 D) e0 W# y0 s  }
) t  q2 w2 K: z# }  }
- ?9 c4 N; `; \9 u  A 0
% V: d% x1 E. v# u  U. ~  B -12 Z% D% x3 m1 z% q8 Q; z2 C+ p6 a
  C 14
  ~% \4 b# z4 S1 {  D 64# V6 P; y' J- ^% X  y( {3 e) M
  Q106 AC7 O4 g# o$ h. _( U; s# b2 d
  Q107 BDE
. _6 M, f1 p+ i' F, R/ S  Q108 C
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-21 11:11 , Processed in 0.271143 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表