一、理解多态
二、掌握抽象类和接口使用
三、理解方法覆盖和动态绑定
四、会用UML建模工具
五、熟悉Java与密码学相关的APIhtml
问题2解决方案:try块不必定非要有catch子句。若是没有catch子句,则可使用finally子句来看看是否有对应的状况java
问题2解决方案:没有在虚拟工厂中实例化git
本周虚拟机出现问题 代码是Push上去了可是代码量显示不出来 以前的git push也出错了 还有git commit出错 如今正在解决(http://www.cnblogs.com/chinxi/p/6139469.html)这是个人解决方案 可是尚未成功数据结构
错题1:下面哪些Linux 命令能够ASCII码和16进制单字节方法输出Hello.java的内容?
A .
od -b -tx1 Hello.java
B .
od -tcx1 Hello.java
C .
od -tc -tx1 Hello.java
D .
od -tbx1 Hello.java
缘由:-b 是以八进制输出 没有熟练Linux命令
错题2:The original class that is used to derive a new class using inheritance is called ____________________ (经过继承派生出新类的原有类称为_).
A .
a superclass(超类)
B .
a parent class(父类)
C .
a base class(基类)
D .
all of the above(以上都正确)
E .
neither a, b, nor c(以上都不正确)
缘由:The original class can be called a superclass, a parent class and/or a base class.
错题3:In order for derived classed to have access to encapsulated data members and methods of superclasses, the data members and methods should be declared using the _________________ modifier(为了能在派生类中引用超类中封装的数据成员和方法,可使用修饰符_声明).
A .
private
B .
public
C .
protected
D .
final
E .
static
缘由:Data members and methods declared using the protected modifier can be accessed by subclasses in an inheritance hierarchy, but are still encapsulated from classes and methods outside of the hierarchy.
错题4:The special reference ______________ is used to refer to the parent class in a child class(特殊的引用_用于在子类中调用父类).
A .
this
B .
super
C .
null
D .
parent
E .
none of the above(以上都不是)
缘由: The super reference refers to the parent class in a derived class.
错题5:A _____________________ class represents a generic concept in a class hierarchy(_____表示类层次中的通常概念).
A .
super(超类)
B .
abstract(抽象类)
C .
interface(接口类)
D .
shadow(隐藏类)
E .
generic(通常类)
缘由:An abstract class represents a generic entity that is not completely defined. An abstract class cannot be instantiated. It contains one or more abstract methods, which are methods that should be overridden by subclasses.
错题5:Which of the following key words indicates a new class is being derived from an existing class? (下面哪一个关键字代表新类是从当前类派生的?)
A .
super
B .
final
C .
extends
D .
inherits
E .
expands
缘由:The key word extends indicates that a new class is being derived from an existing class.
错题6:To invoke a parent’s constructor in a subclass, we use the ______________ method(子类为了调用父类的构造函数,咱们使用_方法).
A .
abstract
B .
construct
C .
parent
D .
super
E .
extends
缘由:The super method is used to invoke a parents constructor from a subclass.
错题7:If a subclasses constructor does not make an explicit call to a superclass's constructor, ___________________ (若是子类构造函数没有显式调用超类的构造函数,那么________).
A .
a run-time error will result(将产生运行时错误).
B .
a compile-time error will result(将产生编译时错误).
C .
the constructor will be called anyway(构造函数无论怎样都会被调用).
D .
the class will be implicitly declared as abstract(该子类将被隐式声明为abstract).
E .
none of the above(以上都不是)
缘由:The child's constructor will implicitly call the superclass's constructor if it is not done explicitly. This will ensure that the class is properly initialized.
错题8:All Java classes are subclasses of the ___________________ class(因此的Java类都是_类的子类).
A .
String
B .
java.lang
C .
Java
D .
Class
E .
Object
缘由:All classes are subclasses of Java's Object class, whether explicitly specified or not.
错题9:Which of the following methods are included in every class created in Java by inheritance? (在Java中经过继承建立的每一个类中均包含如下哪一个方法?)
A .
next
B .
toString
C .
compareTo
D .
charAt
E .
none of the above(以上都不是)
缘由:The toString method is defined in the Object class, and is therefore included in every Java class via inheritance.
错题9:Methods and variables declared as private in a parent class cannot be accessed in a child class(在父类中声明为private的方法和变量不能被子类访问).
A .
true
B .
false
缘由:In order for a child class to have access to the private data and methods of a parent class, they should be declared using the protected modifier, which still enforces encapsulation, but allows for flexibility in an inheritance hierarchy.
错题10:In Java subclass can only extend one parent class(在Java中子类只能继承一个父类).
A .
true
B .
false
缘由:Allowing a subclass to extend multiple parent classes leads to multiple inheritance, which is not supported in Java.
错题11:若是有如下的程序代码:
Int x=100;
Int y=100;
Integer wx=x;
Integer wy=y;
System.out.println(x==y);
System.out.println(wx==wy);
在JDK5以上的环境编译与执行,则显示的结果是
A .
true、true
B .
true、false
C .
false、true
D .
编译失败
缘由:没理解代码
错题11:若是有如下的程序代码:
int[] arr1 = {1, 2, 3};
int[] arr2 = new int[arr1.length];
arr2 = arr1;
for(int value : arr2) {
System.out.printf("%d", value);
}
如下描述何者正确?
A .
执行时显示123
B .
执行时显示12300
C .
执行时出现 ArrayIndexOutOfBoundException 错误
D .
编译失败
错题12:若是有如下的程序代码:
String [][] strs={
{“Java”,“Java”,“Java”} ;
{“Java”,“Java”,“Java”,“Java”};
};
For(____ row:strs){
For(____ str:row){
.........
}
}
空白处应该分别填上
A .
String、String
B .
String、String[]
C .
String[]、String
D .
String[]、String[]ide
20162302(http://www.cnblogs.com/yangjingdian/p/6686697.html)函数
教材学习中的问题和解决过程, 一个问题加1分工具
代码调试中的问题和解决过程, 一个问题加1分学习
本周结对学习状况flex
上周博客互评状况
20162329(http://www.cnblogs.com/Zhangxusheng/p/6683204.html)
20162323(http://www.cnblogs.com/GIggleZN/p/6683351.html)this
代码行数(新增/累积) | 博客量(新增/累积) | 学习时间(新增/累积) | 重要成长 | |
---|---|---|---|---|
目标 | 5000行 | 30篇 | 400小时 | |
第一周 | 10/200 | 2/2 | 20/20 | |
第二周 | 30/500 | 1/4 | 18/38 | |
第三周 | 45/1000 | 2/7 | 22/60 | |
第四周 | 300/1300 | 1/9 | 30/90 |
尝试一下记录「计划学习时间」和「实际学习时间」,到期末看看能不能改进本身的计划能力。这个工做学习中很重要,也颇有用。
耗时估计的公式
:Y=X+X/N ,Y=X-X/N,训练次数多了,X、Y就接近了。
计划学习时间:300小时
实际学习时间:150小时
改进状况:
(有空多看看现代软件工程 课件
软件工程师能力自我评价表)