更多java基础知识试题
- 1void blur(char[] z, String st){ if(z.length < st.length()) return; for (int i = 0; i < st.length(); i++) { z[i] = st.charAt(i); }}
- 2下述代码的执行结果是class Super { public int getLength() { return 4; }}public class Sub extends Super { public long getLength() { return 5; } public static void main (String[]args) { Super sooper = new Super (); Super sub = new Sub(); System.out.printIn(sooper.getLength()+ “,” + sub.getLength() ); }}
- 3下面关于类的说法中,错误的是( )
- 4return语句( )
- 5float 变量的默认值为?