单项选择题

在面向对象方法中,不属于“对象”基本特点的是( )。

A.一致性
B.分类性
C.多态性
D.标识唯一性
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序从标准输入设备——键盘读入一个字符,然后输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。 import java.io.*; public class Test public static void main(String args[]) char ch; try ______; System.out.println(ch); catch(IOException e) e.printStackTrace();
A.ch=System.in.read();
B.ch=(char)System.in.read();
C.ch=(char)System.in.readln();
D.ch=(int)System.in.read();
填空题
下面程序段是从对象流中读取对象,请将程序补充完整。 import java.util. *; import java.io. *; public class UnSerializaDate Dated=null; UnSerializaDate() try FilelnputStream f=new FileInputStream( date.ser ); ObjectInputStream s=new ObjectInputStream(f); f.close(); catch(Exceptione) e.printStackTrace(); public static void main(String args[]) public static void main(String args[]) UnSerializaDate a=new UnSerializaDate(); System.out.println( The date read is: +a.d.toString());
相关试题
  • 请将程序补充完整。 import java.awt....
  • 下面程序段是从对象流中读取对象,请将程序...
  • 一个类只有实现了______接口,它的对...
  • 要使处于不同层次,甚至是互不相关的类具有...
  • 关于文件名的处理中,测试当前文件是否为目...