[经典]是java高手就进来,看一下你的水平,1.5%正确率
这道题是一个java公司的笔试题,考察了大概一千多个面试的java工程师以及项目经理,不过全对的只有不到1.5%
在做这个题的时候请按顺序做,不能改变顺序,做前面题时,不能查看后面的题,同上也不要查看下面的回复,不要改变你的答案
多的先不说,请把下面的题答案给出
class Human{
static int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private int n=20;
public void age(){
System.out.println("年龄是:"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
输出什么?
-------------------------------------------------------
class Human{
public int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private int n=20;
public void age(){
System.out.println("年龄是:"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
输出什么?
-------------------------------------------------------
class Human{
public static int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private static int n=20;
public void age(){
System.out.println("年龄是:"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
输出什么?
-------------------------------------------------------
这是一个很基础的java继承关系与初始化的题,写出你的答案吧,看看你的水平
相关文档:
package testPackage;
class Test {
public static void main(String[] args) {
String hello = "Hello", lo = "lo";
System.out.print((hello == "Hello") + " ");
System.out.print((Other.hello == hello) + " ");
System.out.print((other.Other.hello == hello) + " ");
System.out.print((hello == ("Hel"+"lo ......
题目都很简单,但有时候让你用笔完整的写出来却不那么容易了.
1.遍历文件夹(被这个题目考了两次)
import java.io.File;
public class ListFile {
public static void main(String[] args) {
// TODO Auto-generated method stub
String path = "C:/Inetpub";
File f = new File(path);
list(f);
}
publ ......
《Java程序通过weka调用libsvm的方法》一文阐述了调用LibSVM的简单方法,这里主要补充四点:
1. LibSVM在weka3.5版以后都集成了包装,无须再使用WLSVM,所以上文中的WLSVM相关的内容可以去除,而类型WLSVM可以换成LibSVM,需要添加包
import weka.classifiers.functions.LibSVM;
无 ......
1、开发环境:在myeclipse7.0中整合flex plup3.0, 安装flex plup3.0时,选myeclipse 中eclipse的目录,然
找到flex 的安装好的目录,将plugins和features对应到拷到myeclipse里面 eclipse相应的目录下。
2、创建 flex和 java (Web)的工程(通信框架用blazeds.war):
&nb ......