首页 >>  正文

大一java期末考试题库

来源:baiyundou.net   日期:2024-08-22

饶树贪2962JAVA试题 -
史左齐19684158799 ______ 1. c Java程序、JRE/JVM、操作系统、硬件2. d x=18, y=3 3. c float _value=25.8f;4. num3 = (int) (num1 + num2);5. 打印出 "3th season"6. 打印出 207. d int d=new int[];8. 打印出 "3 2" (中间空白是制表符)9. Object对象的notify和notifyAll方法10. c RandomAccessFile raf=new RandomAccessFile("myfile.txt","rw");11. “传输控制协议”的简称;面向连接12. a Employee e=new Manager();

饶树贪2962简单java编程题 -
史左齐19684158799 ______ 第一题public class A{ public static void main(String[] args){ int i,j,k,x; for(x=100;x<=999;x++) { i=x/100; j=x/10%10; k=...

饶树贪2962大一java程序设计基础考试 -
史左齐19684158799 ______ 第一题:import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true) { int score = 0; System.out.println("请输入成绩:"); if(scan.hasNextInt()) { score = scan.nextInt(); ...

饶树贪2962java题目 -
史左齐19684158799 ______ 圆:package shape;public class Circle { public Circle(double r) { this.r = r; } public double r; public static final double PAI=3.14; public double getC(){//计算周长 return 2*PAI*r;...

饶树贪2962java试题 -
史左齐19684158799 ______ public class Test { private double height; private double wight; public Test(double height, double wight) { this.height = height; this.wight = wight; } public double getPerimeter() { double...

饶树贪2962java随机抽取 编程 考试题 -
史左齐19684158799 ______ 在设计数据库的时候加上一个字段来标识题目的难易度.获取的时候用如下sql语句.随机获取3条记录Access--> SELECT TOP 3 * FROM tablename ORDER BY rnd(id) Sql--> SELE...

饶树贪2962JAVA试题
史左齐19684158799 ______ public class Demo { /** * @param args */ public static void main(String[] args) { test1(); test2(); test3(); test4(); } /** * 1、编写程序,统计个位数是2,千位数为4,能够被3整除的6位数共有多少个. */ public static int test1(){ int num=0; for(int i =...

饶树贪2962求这几道Java试题答案1.当子类中的成员变量或方法与继承的父类的成员变量或方法相同时,子类的对象所使用的变量是( )A. 是父类的变量,子类的方法 ... -
史左齐19684158799 ______[答案] 以上答案都是经过代码测试过保证准确: 1、C 2、A 3、D 4、A

饶树贪2962java 程序设计题 -
史左齐19684158799 ______ import java.util.Scanner;public class Test40023{ public static void main(String args[]){ int ri, repeat; int count, i, j, k, m, n, sum; Scanner in=new Scanner(System.in)...

饶树贪2962java机试题 -
史左齐19684158799 ______ public class YuGiOh { private static String convert ( String input ) { String one = input.replaceAll ("\\d", ""); String last = input.replaceAll ("[^\\d]", ""); return one + last; } public static void main ( String[] args ) { System.out.println (convert ("2s7ess83a")); } }

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024