计算机类
公务员类
工程类
语言类
金融会计类
计算机类
医学类
研究生类
专业技术资格
职业技能资格
学历类
党建思政类
行业认证
全国计算机应用水平考试(NIT)
计算机软件水平考试
计算机等级考试(NCRE)
全国高校计算机等级考试CCT
行业认证
信息素养
JAVA
微软认证
IBM
Lotus
Sun
OCA
Cisco(思科)
Adobe
HP
Linux
CIW
JAVA
Red Hat
华为认证
北大青鸟ACCP认证
印度NIIT认证
(ISC)²注册信息系统安全专家(CISSP)认证
布线测试认证工程师培训考试(CCTT)
趋势科技认证信息安全专家(TSCP)
OCP
OCM
问答题import java.awt.*; public class abc public static void main(String args[]) new FrameOut(); class FrameOut extends Frame // Frame为系统定 Button btn; // 义的窗框类 FrameOut( ) super("按钮"); btn = new Button("按下我"); setLayout(new FlowLayout( )); add(btn); setSize(300,200); show( );
进入题库练习
问答题简述Java中异常处理的机制?
进入题库练习
问答题import java.io.* ; public class Reverse public static void main(String args[ ]) int i , n =10 ; int a[ ] = new int[10]; for ( i = 0 ; i < n ; i ++ ) try BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); a[i] = Integer.parseInt(br.readLine( )); // 输入一个整数 catch ( IOException e ) ; for ( i = n-1 ; i >= 0 ; i ―― ) System.out.print(a[i]+" "); System.out.println( );
进入题库练习
问答题编写一个完整的Java Applet 程序使用复数类Complex验证两个复数 1+2i 和3+4i 相加产生一个新的复数 4+6i 。 复数类Complex必须满足如下要求: (1) 复数类Complex 的属性有: RealPart : int型,代表复数的实数部分 ImaginPart : int型,代表复数的虚数部分 (2) 复数类Complex 的方法有: Complex( ) : 构造函数,将复数的实部和虚部都置0 Complex( int r , int i ) : 构造函数,形参 r 为实部的初值,i为虚部的初值。 Complex complexAdd(Complex a) : 将当前复数对象与形参复数对象相加,所得的结果仍是一个复数值,返回给此方法的调用者。 String ToString( ) : 把当前复数对象的实部、虚部组合成 a+bi 的字符串形式,其中a 和 b分别为实部和虚部的数据。
进入题库练习
问答题阅读下面的程序代码,并回答问题(①问3分,②问3分,共6分)。 String s1 = new String("abcde"); String s2 = new String("abcde"); boolean b1= s1.equals(s2); boolean b2 = s1== s2; System.out.print(b1+" "+b2); ①程序段执行后,在命令行的输出结果如何? ②解释输出(1)的结果的原因?
进入题库练习
问答题请简述重载和重写的区别?
进入题库练习
问答题阅读下面的程序,回答问题(①问3分,②问3分,共6分)。。 import java.util.*; public class T public static void main(String args[]) Set set = new TreeSet______; set.add(new Integer(10)); set.add(new Integer(5)); set.add(new Integer(15)); set.add(new Integer(5)); set.add(new Integer(10)); System.out.println("size = " + set.size______); Iterator it=set.iterator______; while(it.hasNext______) System.out.print(it.next______+" "); ①程序运行后输出的结果如何? ②说明java中的集合(Set接口)和映射(Map接口)的主要区别。
进入题库练习
问答题import java.io.* ; public class abc public static void main(String args[ ]) int i , s = 0 ; int a[ ] = 10 , 20 , 30 , 40 , 50 , 60 , 70 , 80 , 90 ; for ( i = 0 ; i < a.length ; i ++ ) if ( a[i]%3 = = 0 ) s += a[i] ; System.out.println("s="+s);
进入题库练习
问答题import java.io.*; public class abc public static void main(String args[]) SubClass sb = new SubClass( ); System.out.println(sb.max( )); class SuperClass int a = 10 , b = 20 ; class SubClass extends SuperClass int max( ) return ((a>b)?a:b);
进入题库练习
问答题public class Sum  public static void main( String args[ ]) double sum = 0.0 ; for ( int i = 1 ; i <= 100 ; i + + ) sum += 1.0/(double) i ; System.out.println( "sum="+sum );
进入题库练习
问答题编写一个Frame框架应用程序,要求如下: (1) 在窗口设置两个菜单“文件”、“编辑” (2) 在“文件”菜单里添加三个菜单项“打开”、“保存”、“关闭” (3) 在“编辑”菜单里添加两个菜单项“复制”、“粘贴” (4) 点击关闭菜单项时,使程序关闭。
进入题库练习
问答题什么是继承?
进入题库练习
多选题Objects are passed by ______. A. Value B. Sum C. Reference D. Pointer
进入题库练习
多选题Given: public class ArithmeticResultsOutput { public static void main(String[] args { inti1=100; intj1= 200; if((i1==99) } else { System.out.print("Value2: "+(i1+j1+" "); } inti2=100; intj2=200; if((i2==99) } else { System.out.print("Value2: "+(i2+j2+" "); } inti3=100; intj3=200; if((i3==100) | (--j3==200)) { System.out.print("Value1: "+(i3+j3+" "); } else { System.out.print("Value2: "+(i3+j3+" "); } inti4=100; intj4=200; if((i4==100) || (--j4==200)) { System.out.print("Value1: "+(i4+j4+" "); } else { System.out.print("Value2: "+(i4+j4+" "); } } } What will be printed to standard out? A. Value2: 300 Value2: 300 Value1: 300 Value1: 300 B. Value2: 299 Value2: 300 Value1: 299 Value1: 300 C. Value1: 299 Value1: 300 Value2: 299 Value2: 300 D. Value1: 300 Value1: 299 Value2: 300 Value2: 299
进入题库练习
多选题下面说法正确的是______。 A.如果某公共接口被声明在一个源文件中,则接口必须与源文件具有相同名字。 B.如果源文件包含import语句,则该语句必须是除空行和注释行外的第一个语句行。 C.如果某源文件包含package语句,则该语句必须是第一个非空、非注释行。 D.接口中的方法必定是抽象方法,但可以不用关键字abstract修饰。
进入题库练习
多选题Given the SampleClass, when the following code segment is executed, what is the value of the instance variable size? SampleClass sampleClass = new SampleClass(5); public class SampleClass { private int size; public SampleClass(int size) { size = size; } } A. 0 B. 1 C. 5 D. Compiler error E. Runtime error
进入题库练习
多选题What is the difference between an int and an Integer? A. Nothing. They are both fully interchangeable. B. An int is an object and Integer is a primitive. An int is fastest when performing calculations. C. An int is a primitive and Integer is an object. An int is fastest when performing calculations. D. This is a trick question. There is no such thing as an Integer. E. This is a trick question. An Integer can be defined to be anything a developer wants it to be.
进入题库练习
多选题What array type has the most overhead? A. One-dimensional array B. Multi-dimensional array C. ArrayList
进入题库练习
多选题下面main______方法的定义哪些是正确的______? A.public static void main(String args[]) B.public static void main(String[]) C.public static void main(String[] args) D.public static void main(String [] x)
进入题库练习
多选题Primitives are passed by ______. A. Value B. Sum C. Reference D. Pointer
进入题库练习