08年3月广州远程教育中心JAVA开发题2.docVIP

  • 1
  • 0
  • 约8.97千字
  • 约 9页
  • 2018-01-05 发布于河南
  • 举报
08年3月广州远程教育中心JAVA开发题2

Java面试题 1.?Given the following code: ????class Test{ ????private int m;?? ??public static void fun() { ????// some code... ????} ????} ??How can the member variable m be accessible directly in the method fun( )? ???A. change private int m to protected int m ???B. change private int m to public int m ???C. change private int m to static int m ???D. change private int m to int m 2.?Which methods are correct overloading methods of the following method: ????public void example(){...} ????A. public void example( int m){...} ????B. public int example(){...} ????C. public void example2(){...} ????

文档评论(0)

1亿VIP精品文档

相关文档