【发布时间】:2014-04-19 20:13:14
【问题描述】:
据说在java中我们不能从静态方法调用非静态方法..这到底是什么意思?我们总是可以使用对象调用非静态方法frm静态方法..'请解释
【问题讨论】:
-
编写代码尝试执行报告无法执行的操作。然后搜索 寻找错误信息。您会发现许多重复项,例如 stackoverflow.com/questions/5201895/…、stackoverflow.com/questions/18375971/…(或此)可能与 What is the reason behind "non-static method cannot be referenced from a static context"? 重复