1.如果13*24=400成立,那么使用的是( )运算?

A.四进制 B.六进制 C.九进制 D.十一进制

2.下面哪些是Thread类的方法( )

A. start() B. run() C. exit() D. getPriority()

3.下面程序的运行结果:( )

public class Demo {
public static void main(String[] args) {
Thread t = new Thread() {
public void run() {
pong();
}
};
t.start();
System.out.print(“ping”);
}
static void pong() {
System.out.print(“pong”);
}
}
A pingpong B pongping C pingpong和pongping都有可能 D 都不输出

4.下面程序的运行结果是_

public class Demo {
public static void main(String[] args) {
String str1 = “hello”;
String str2 = “he” + new String(“llo”);
System.err.println(str1 == str2);
System.err.println(str1.equals(str2));
}
}

5.下列说法正确的是()

A. LinkedList继承自List
B. AbstractSet继承自Set
C. HashSet继承自AbstractSet
D. WeakMap继承自HashMap

6.下列属于关系型数据库的是()

A. Oracle B. MySql C. IMS D. MongoDB

7.请你介绍下面向对象的特征

8.面向对象和面向过程的区别?


9.Java有那些基本数据类型,String是不是基本数据类型,他们有何区别?


10.this与super有什么区别?



11.float型float f=3.4是否正确? 原因?



12.LinkList和ArrayList的区别(从数据结构说下,以及优缺点)



13.String类能否被继承 ? 原因?



14.当一个对象被当做参数传递到一个方法后,此方法可改变这个对象的属性,并可返回变化后的结果,那么这里到底是值传递还是引用传递?


15.String、StringBuilder、StringBuffer的区别?

16.重载和重写的区别?



17.Spring的核心?


18.SpringMVC 执行流程?



19.什么是HashMap?它的底层是怎么实现的?


20.用 Java 写一个线程安全的单例模式(Singleton)?


21.简单说一下前后端分离?


22.简单介绍一下关系数据库三范式?



23.事务四个基本特征或 ACID 特性?


24.char 和 varchar 的区别是什么?


25.说一下乐观锁和悲观锁?

26.MySQL编程

表名和字段
  1. 学生表 Student(s_id,s_name,s_birth,s_sex) —学生编号,学生姓名, 出生年月,学生性别
  2. 课程表 Course(c_id,c_name,t_id) —课程编号, 课程名称, 教师编号
  3. 教师表 Teacher(t_id,t_name) —教师编号,教师姓名
  4. 成绩表 Score(s_id,c_id,s_score) —学生编号,课程编号,分数
    建表+测试数据
    —建表—学生表_CREATE TABLE Student(
    s_id VARCHAR(20),
    s_name VARCHAR(20) NOT NULL DEFAULT ‘’,
    s_birth VARCHAR(20) NOT NULL DEFAULT ‘’,
    s_sex VARCHAR(10) NOT NULL DEFAULT ‘’,
    PRIMARY KEY(s_id)
    );
    —课程表CREATE TABLE Course(
    c_id VARCHAR(20),
    c_name VARCHAR(20) NOT NULL DEFAULT ‘’,
    t_id VARCHAR(20) NOT NULL,
    PRIMARY KEY(c_id)
    );
    —教师表CREATE TABLE Teacher(
    t_id VARCHAR(20),
    t_name VARCHAR(20) NOT NULL DEFAULT ‘’,
    PRIMARY KEY(t_id)
    );
    —成绩表CREATE TABLE Score(
    s_id VARCHAR(20),
    c_id VARCHAR(20),
    s_score INT(3),
    PRIMARY KEY(s_id,c_id)
    );
    —插入学生表测试数据insert into Student values(‘01’ , ‘赵雷’ , ‘1990-01-01’ , ‘男’);insert into Student values(‘02’ , ‘钱电’ , ‘1990-12-21’ , ‘男’);insert into Student values(‘03’ , ‘孙风’ , ‘1990-05-20’ , ‘男’);insert into Student values(‘04’ , ‘李云’ , ‘1990-08-06’ , ‘男’);insert into Student values(‘05’ , ‘周梅’ , ‘1991-12-01’ , ‘女’);insert into Student values(‘06’ , ‘吴兰’ , ‘1992-03-01’ , ‘女’);insert into Student values(‘07’ , ‘郑竹’ , ‘1989-07-01’ , ‘女’);insert into Student values(‘08’ , ‘王菊’ , ‘1990-01-20’ , ‘女’);—课程表测试数据insert into Course values(‘01’ , ‘语文’ , ‘02’);insert into Course values(‘02’ , ‘数学’ , ‘01’);insert into Course values(‘03’ , ‘英语’ , ‘03’);
    —教师表测试数据insert into Teacher values(‘01’ , ‘张三’);insert into Teacher values(‘02’ , ‘李四’);insert into Teacher values(‘03’ , ‘王五’);
    —成绩表测试数据_insert into Score values(‘01’ , ‘01’ , 80);insert into Score values(‘01’ , ‘02’ , 90);insert into Score values(‘01’ , ‘03’ , 99);insert into Score values(‘02’ , ‘01’ , 70);insert into Score values(‘02’ , ‘02’ , 60);insert into Score values(‘02’ , ‘03’ , 80);insert into Score values(‘03’ , ‘01’ , 80);insert into Score values(‘03’ , ‘02’ , 80);insert into Score values(‘03’ , ‘03’ , 80);insert into Score values(‘04’ , ‘01’ , 50);insert into Score values(‘04’ , ‘02’ , 30);insert into Score values(‘04’ , ‘03’ , 20);insert into Score values(‘05’ , ‘01’ , 76);insert into Score values(‘05’ , ‘02’ , 87);insert into Score values(‘06’ , ‘01’ , 31);insert into Score values(‘06’ , ‘03’ , 34);insert into Score values(‘07’ , ‘02’ , 89);insert into Score values(‘07’ , ‘03’ , 98);
    问题

1、查询”01”课程比”02”课程成绩高的学生的信息及课程分数

2、查询”01”课程比”02”课程成绩低的学生的信息及课程分数

3、查询平均成绩大于等于60分的同学的学生编号和学生姓名和平均成绩

4、查询没学过”张三”老师授课的同学的信息