However, if a static member of that class(class which has no access specifier) is
public, the client programmer can still access that static member even
though they cannot create an object of that class
做了下验证,如下:
package test.aaa;
class A {
public static String TEST = "A";
}
package test;
public class C {
public static void main(String[] args){
System.out.println(test.aaa.A.TEST);
}
}
但是eclipse下提示The type test.aaa.A is not visible,thinking in java第三版是讲jdk1.5的,我用的是1.4,不知道是不是这个原因,回家去试试.. - -!
------------------------------------------------------------------------------------
回来试了试好像也不行,那位兄弟知道原因通知一下...- -!
分享到:
相关推荐
ASP源码,压缩包解压密码:www.cqlsoft.com
手头没有Microsoft Access,如何建立数据库,一切依然简单. 首先引用C:\Program Files\Common Files\System\...public class Access ...{ /**////根据指定的文件名称创建ACCESS数据库 ///mdbPath:要创件的ACCESS绝对路径
class Access{ var $databasepath; var $constr; var $dbusername; var $dbpassword; var $linkid; var $result; var $queryString; var $tablepre; //数据表前缀 function __construct($database,$...
本文实例讲述了C#数据库操作类AccessHelper。分享给大家供大家参考。 具体实现方法如下: 代码如下:using System;...public class AccessHelper { #region 变量 protected static OleDbConnection c
Java写了一个连接Access数据库... Class.forName("com.hxtt.sql.access.AccessDriver").newInstance(); url = "jdbc:Access:///D:/dataAnalysis/accessDB.mdb"; connect = DriverManager.getConnection(url, "", "");
For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...
php数据库操作类,access的数据库 欢迎使用
一个Access操作类。已经经过大量实践。
ado操作数据库封装类,方便操作数据库access
加载驱动: Class.forName("com.hxtt.sql.access.AccessDriver").newInstance();
商业编程-源码-access源代码 access_reports_class_src.zip
商业编程-源码-access源代码 access_reports_class_demo.zip
access 数据库操作,连接,更新,查询
access jar驱动连接数据库
CAccessReports - Class for Printing and Viewing MS Access Reports打印预览ACCEss报表的类
}else{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String dburl = "jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ="+SysPath.getAccessPath();// 此为NO-DSN方式 ...
Class.forName("com.hxtt.sql.access.AccessDriver"); Connection con = DriverManager.getConnection(url); Statement statement = con.createStatement(); statement.execute("drop table if exists test;...
Class access ........................ 159 Summary ............................ 162 Reusing Classes 165 Composition syntax ........... 165 Inheritance syntax ............. 168 Initializing ...
A class for Printing and Viewing MS Access Reports打印察看Access报表的类
这是为一个想了解asp.net的朋友写的一个helloworld程序,简单的增删改查,简单的三层结构,使用datareader。有简单注释。 推荐初学者下载。高手会失望。