
java_Learning
Showi萧
来来来lai
展开
-
java和cpp混合编程--jni的使用
使用jin进行java的交互,用一个例子来说明 第一步:编写Java代码 第二步:编译Java代码 第三步:生成C语言头文件 第四步:编写C代码 第五步:生成C共享库 第六步:运行Java程序 //也就是说,我们的native sayHello()方法实际上是运行C的Java_NativeDemo_sayHello()这个方法,我们是不能随意写C函数名的的,只能这样写。 第一步:编写Java代码 ...原创 2019-12-17 09:31:07 · 529 阅读 · 0 评论 -
import java.sql.DriverManager not accessible;
Connection connection = (Connection)DriverManager.getConnection(dbURL,userName,passWord); when I try to access mysql;this happened; I find that I cannot import java.sql.DriverManager .even java.sql...原创 2019-11-26 18:44:22 · 2668 阅读 · 7 评论 -
java abstract class and interface
1.the abstract class package ForDel; /** * @version: v1.0.0 * @author: Showi * @date: 2019年10月15日 下午9:32:06 * @Describe: * 1.abstrct class * [1]the access right: * private protected default public...原创 2019-10-15 22:12:30 · 107 阅读 · 0 评论 -
java class and obj
java Learning 1.when code a class,The initial should be a capital 2.commonly,a class def in a private file 3.the java is public if not define 4.Person p = new Person(); the 2nd Person is access a cons...原创 2019-10-08 23:09:22 · 131 阅读 · 0 评论