You develop a serializable class for persisting objects as files.Every time an object is serialized, you have to update the database with the name of the object and location of that file.You elect to employ the OnSerialized attribute to achieve this objec

题目

You develop a serializable class for persisting objects as files.Every time an object is serialized, you have to update the database with the name of the object and location of that file.You elect to employ the OnSerialized attribute to achieve this objective.You now need to apply the OnSerialized attribute to a certain method.What should you do?()

A.

B.

C.

D.


相似考题
更多“You develop a serializable class for persisting objects as files.Every time an object is s ”相关问题
  • 第1题:

    Throwable类是直接从( )类继承来的。

    A.Exception及其子集

    B.Object类

    C.Example

    D.Class类


    正确答案:B
    解析:Java语言的类库中提供一个Throwable类,所有的异常对象都必须是它的实例或其子类的实例。Throwable类中的方法对抛出异常进行描述。Throwable是直接从Object类继承来的,是所有异常类的父类。

  • 第2题:

    C++ is used with proper(66) design techniques.

    A.class-oriented

    B.object-based

    C.face to object

    D.object-oriented


    正确答案:D
    解析:C++使用了一定的面向对象设计技术。

  • 第3题:

    “TPO(Time、Place、Object)”是指什么时间应该做什么。

    A

    B



  • 第4题:

    已知:Manager extends Employee观察:public Manager(String n,double s,int year,int month,int day) { super(n,s,year,month,day); bonus=0; }其中super是 ( )

    A.Object类

    B.Manager类

    C.Employee类

    D.Class类


    正确答案:C
    解析:本题中有extends这说明是继承,子类Manager继承父类Employee,使用变量super能够实现对父类成员的访问,所以本题中super指的是父类Employee。

  • 第5题:

    不能被实例化的类是( )。

    A.Object类

    B.Class类

    C.Dictionary类

    D.System类


    正确答案:D

  • 第6题:

    如下说法正确的是正确的_________。

    A.Class类是Object类的超类

    B.Object是一个final类

    C.Class类的对象可使用new运算符创建

    D.Object类是Class类的超类。


    D 解析:类声明的格式。