java高级工程师-面试题及答案.docx

一: 选择题 关于以下程序代码的说明正确的选项是〔 D 〕 class HasStatic{ private static int x=100; public static void main(String args[ ]){ 4. HasStatic hs1=new HasStatic( ); 5. hs1.x++; 6. HasStatic hs2=new HasStatic( ); 7. hs2.x++; 8. hs1=new HasStatic( ); 9. hs1.x++; 10. HasStatic.x- -; 11. System.out.println(“x=”+x); 12.

文档评论(0)

1亿VIP精品文档

相关文档