Which method of the ChildActionExtensions class calls a chil

题目
单选题
Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()
A

RenderPartial

B

Action

C

Render

D

RenderAction

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements are true about the hashCode method?()

  • A、 The hashCode method for a given class can be used to test for object equality and object inequality for that class.
  • B、 The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.
  • C、 The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.
  • D、 The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
  • E、 The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.

正确答案:C,E

第2题:

Under which circumstances will a thread stop?()  

  • A、The method waitforId() in class MediaTracker is called.
  • B、The run() method that the thread is executing ends.
  • C、The call to the start() method of the Thread object returns.
  • D、The suspend() method is called on the Thread object.
  • E、The wait() method is called on the Thread object.

正确答案:B

第3题:

Click the Exhibit button. Given:Which statement is true if a TestException is thrown on line 3 of class B? ()

A.Line 33 must be called within a try block.

B.The exception thrown by method1 in class A is not required to be caught.

C.The method declared on line 31 must be declared to throw a RuntimeException.

D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.


参考答案:B

第4题:

Which statement is true?()

  • A、A class’s finalize() method CANNOT be invoked explicitly.
  • B、super.finalize() is called implicitly by any overriding finalize() method.
  • C、The finalize() method for a given object is called no more than once by the garbage collector.
  • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

正确答案:C

第5题:

You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()  

  • A、 public
  • B、 private
  • C、 protected
  • D、 transient
  • E、 default access

正确答案:B

第6题:

Which statements concerning the methods notify() and notifyAll() are true?  

  • A、Instances of class Thread have a method called notify().
  • B、A call to the method notify() will wake the thread that currently owns the monitor of the object.
  • C、The method notify() is synchronized.
  • D、The method notifyAll() is defined in class Thread.
  • E、When there is more than one thread waiting to obtain the monitor of an object, there is no way to be     sure which thread will be notified by the notify() method.

正确答案:A,E

第7题:

Which methods from the String and StringBuffer classes modify the object on which they are called?()  

  • A、The charAt() method of the String class.
  • B、The toUpperCase() method of the String class.
  • C、The replace() method of the String class.
  • D、The reverse() method of the StringBuffer class.
  • E、The length() method of the StringBuffer class.

正确答案:D

第8题:

class A {  protected int method1(int a, int b) { return 0; }  }  Which two are valid in a class that extends class A?() 

  • A、 public int method1(int a, int b) { return 0; }
  • B、 private int method1(int a, int b) { return 0; }
  • C、 private int method1(int a, long b) { return 0; }
  • D、 public short method1(int a, int b) { return 0: }
  • E、 static protected int method1(int a, int b) { return 0; }

正确答案:A,C

第9题:

You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()  

  • A、 Public
  • B、 Private
  • C、 Protected
  • D、 Transient
  • E、 No access modifier is required

正确答案:B

第10题:

You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()

  • A、The method must return a type of either IEnumerator or IEnumerable.
  • B、The method must return a type of IComparable.
  • C、The method must explicitly contain a collection.
  • D、The method must be the only iterator in the class.

正确答案:A

更多相关问题