【单选题】Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not pr...
A.
Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.
B.
Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.
C.
Set the Emit Default Value property of each data member to false.
D.
Set the Is Required property of each data member to true.
【单选题】The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?()
【单选题】What exception type does the following program throw? public class Test { public static void main(String[] args) { Object o = new Object(); String d = (String)o; } }
【单选题】What exception type does the following program throw? public class Test { public static void main(String[] args) { Object o = null; System.out.println(o.toString()); } }