在Java中,如果需要获取一个Throwable对象产生的原因,应该使用哪个方法? A. getMessage() B. getLocalizedMessage() C. getCause() D. toString() 答案解析 getMessage()方法返回的是异常的详细消息,getLocalizedMessage()返回本地化的描述消息,toString()返回对象的简短描述。getCause()方法则返回导致此异常产生的原因,符合题目要求。 正确答案:C