- 浏览: 62727 次
- 性别:
- 来自: 广州
最新评论
-
weknow619:
详解Spring中Bean的加载(二)链接:http://ww ...
【Spring】详解Spring中Bean的加载 -
moxue0929:
答案答案答案答案答案答案答案vvvv答案答案
【Java每日一题】20170329 -
weknow619:
xiaoyu1985ban 写道编译无法通过。The fina ...
【Java每日一题】20170221 -
xiaoyu1985ban:
编译无法通过。The final local variable ...
【Java每日一题】20170221 -
ericchunli:
world cello
【Java每日一题】20170210
文章列表
20170120问题解析请点击今日问题下方的“【Java每日一题】20170206”查看
package Feb2017;
public class Ques0206 {
public static void main(String[] args) {
SubOther sOther = new SubOther();
sOther.method();
}
}
class SubOther extends Other{}
public class Other {
prot ...
一般在使用SpingMVC开发的项目中,一般都会在web.xml文件中配置ContextLoaderListener监听器,如下:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
在开始讲解这个之前先讲讲web工程的上下文,对于一个web容器,web容器提供了一个全局的上下文环境,这个上下文就是ServletContext,其为后面Spring IOC容器提供 ...
20170119问题解析请点击今日问题下方的“【Java每日一题】20170120”查看
package Jan2017;
import java.util.Arrays;
import java.util.List;
public class Ques0120 {
public static void main(String[] arg){
List<String> list = Arrays.asList("张三","李四");
list.add("王五&q ...
20170118问题解析请点击今日问题下方的“【Java每日一题】20170119”查看
package Jan2017;
import java.util.Arrays;
import java.util.List;
public class Ques0119 {
public static void main(String[] arg){
List<String> list = Arrays.asList("1", "2");
for (String str : to ...
20170117问题解析请点击今日问题下方的“【Java每日一题】20170118”查看
package Jan2017;
import java.util.List;
public class Ques0118 {
}
class Parent{
public Parent method1(){
return new Parent();
}
public void method2(Parent parent){
}
}
class Sub extends Pa ...
20170116问题解析请点击今日问题下方的“【Java每日一题】20170117”查看
package Jan2017;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Ques0117 {
public static void main(String[] args){
List list = Ques0117.asList(1, 2, 3.0);
}
public ...
20170113问题解析请点击今日问题下方的“【Java每日一题】20170116”查看
package Jan2017;
public class Ques0116 {
public static void main(String[] args) {
System.out.println(new BigDog("大黑狗", "黑色"));
}
}
class Dog{
String name;
public Dog(String name) {
supe ...
20170112问题解析请点击今日问题下方的“【Java每日一题】20170113”查看
package Jan2017;
public class Ques0113 {
private final String id;
public Ques0113() {
System.out.println("构造函数");
}
public void setId(String id){
id = id;
}
}
今日问题:
请问主程序能否正常编译通过?(点击以下“【Java每日一题】20170 ...
20170111问题解析请点击今日问题下方的“【Java每日一题】20170112”查看
package Jan2017;
import java.util.ArrayList;
import java.util.List;
public class Ques0112 {
public static void main(String[] args) {
Number[] numbers = new Integer[10]; //1
List<Number> list = new ArrayList<Integer>( ...
20170110问题解析请点击今日问题下方的“【Java每日一题】20170111”查看
package Jan2017;
public class Ques0111 {
public static void main(String[] args){
final Person p1 = new Person("张三");
final Person p2 = new Person("李四");
p1 = new Person("王五");
p2.set ...
20170109问题解析请点击今日问题下方的“【Java每日一题】20170110”查看
package Jan2017;
public class Ques0110{
public static void main(String[] args){
Person person = new Person("张三");
System.out.println("修改之前 " + person);
Ques0110.update(person);
System.out ...
20170106问题解析请点击今日问题下方的“【Java每日一题】20170109”查看
package Jan2017;
import java.util.ArrayList;
import java.util.List;
public class Ques0109<T> {
private T t = new T();
private T[] array = new T[3];
private List<T> list = new ArrayList<T>();
}
今日问题:
...
20170105问题解析请点击今日问题下方的“【Java每日一题】20170106”查看
package Jan2017;
public class Ques0106 {
public void method01(String... strings, int num){
}
public void method02(String... strings, int... is){
}
}
今日问题:
以上两个方法使用了变长参数,请问这两个方法声明有误吗?(点击以下“【Java每日一题】20170106”查看20170105问 ...
20170104问题解析请点击今日问题下方的“【Java每日一题】20170105”查看
package Jan2017;
import java.util.ArrayList;
import java.util.List;
public class Ques0105 {
public static void main(String[] args) {
List<String> list = new ArrayList<String>();
list.add("a");
...
20170103问题解析请点击今日问题下方的“【Java每日一题】20170104”查看
package Jan2017;
import java.util.HashSet;
import java.util.Set;
public class Ques0104{
public static void main(String[] args){
Obj obj01 = new Obj("张三");
Obj obj02 = new Obj("李四");
Obj obj03 = new Ob ...