首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到18条相似文献,搜索用时 62 毫秒
1.
2.
JAVA语言基础     
JAVA语言被美国著名杂志PC Magazine评为1995年十大优秀科技产品。微软总裁比尔. 盖茨说:“Java是长时间以来最卓越的程序设计语言”。SUN Microsystem公司总裁ScottMcNealy认为,Java为Internet和WWW开辟了一个崭新的时代。全球信息网WWW创始人Berners—Lee说:“计算机事业发展的下一个浪潮是Java!”因此,Java的诞生必将对整个计算机产生深远的影响。所以,Java受到计算机界极大的关注。  相似文献   

3.
4.
通过Java调用本地方法   总被引:1,自引:0,他引:1  
Java是纯面向对象的语言,是当前最流行的编程语言之一。在对程序执行效率要求更高,或需要调用已有的非Java库,或调用Java类库未提供但可用其他语言实现的接口时,需要用到本地方法。分析了从Java调用本地方法的意义;各种调用本地方法的方案及其适用环境;剖析了JNI的原理和结构,给出详细的实现步骤,并说明使用JNI带来的问题。  相似文献   

5.
Java本地调用接口(Java native interface, JNI)机制被广泛应用在移动应用开发领域.JNI机制中JNI接口函数被用于在本地代码中解析和转换Java端的数据类型和Java对象.然而,JNI接口函数的调用开销影响了程序运行的效率,其复杂的使用规范也是集成与复用第三方本地组件时的主要障碍.提出一种基于跨语言对象迁移策略的复合本地对象模型,能够实现有效减少本地调用程序中的JNI接口函数调用开销和有效利用已有本地组件的目的.详细讨论了复合本地对象的语言特性及其具体实现,并给出跨语言对象迁移规范以及开发实例.在Dalvik虚拟机中实现了该模型,通过实验证明该策略和模型能够有效改善JNI机制的不足.  相似文献   

6.
本文首先简单介绍了Java调用C++语言编写的本地方法的步骤,然后通过简单的例子详细介绍了如何用C++语言编写本地代码的方法,并利用动态连接库实现该功能。  相似文献   

7.
JAVA程序开发中的设计模式   总被引:5,自引:0,他引:5  
随着软件产品的复杂化,开发的难度越来越大,不仅仅是技术要求的提高,而且要求软件的开发效率必须跟得上,避免开发速度滞后,导致最终产品与实际应用的差距,因此为了提高开发效率,在开发产品中设计模式的重要性越来越提高到了更高的层次,本篇文章就是针对在JAVA程序开发中的设计模式来讲述,给出了采用设计模式的由来,普遍存在的设计模式,以及给出了采用设计模式的示例。  相似文献   

8.
本文结合一个MIS系统开发的实例,介绍了OMT系统设计并着重讨论了对象模型的建立及其一般实现方法,最后提出了在JAVA环境下实现OMT设计的一些具体方法。  相似文献   

9.
吴林  郭翔 《电脑学习》1997,(6):22-24
Java是SUN公司推出的全新的面向对象程序设计语言。它将面向对象、平台无关性、稳固性、安全性、多线程等特性集于一身,具有强人的动画、多媒体和交互功能。它使WWW(WorldWideweb)进入一全新的交互领域,它是Internet网络应用开发最革要的语言之一。它能制作诱人的多媒体WCb起始页,使您的Web站点更具有吸引力。l动画制作方法制作动画必须先建立起图形图像序列,然后以特定的显示速度显示序列。动画制作一般须经以下步骤。1.l创建动画线程每一个动画程序都需要一个单独的动画线程,此线程一般在starto方法中创建,其过程如下:P“…  相似文献   

10.
多态在任何一门面向对象语言中都是一个非常重要的特性。面向对象的很多优点和灵活性都因它而存在,所以对于Java语言,其多态特性尤为重要。  相似文献   

11.
Java Native Interface应用研究   总被引:2,自引:0,他引:2  
许晓宁 《计算机科学》2006,33(10):291-292
本文研究在Java虚拟机下加快系统的执行速度,实现调用本地操作系统的内核,访问硬件设备接口,执行非Java代码集及一临界代码段等技术。通过这些技术的实现,在保持Java平台无关性的同时又充分发挥了本地平台的优势。  相似文献   

12.
13.
A Foreign Function Interface (FFI) allows one host programming language to interoperate with another foreign language. It enables efficient software development by permitting developers to assemble components in different languages. One typical FFI is the Java Native Interface (JNI), through which Java programs can invoke native-code components developed in C, C++, or assembly code. Although FFIs bring convenience to software development, interface code developed in FFIs is often error prone because of the lack of safety and security enforcement. This paper introduces a static-analysis framework, TurboJet, which finds exception-related bugs in JNI applications. It finds bugs of inconsistent exception declarations and bugs of mishandling JNI exceptions. TurboJet is carefully engineered to achieve both high efficiency and accuracy. We have applied TurboJet on a set of benchmark programs and identified many errors. We have also implemented a practical Eclipse plug-in based on TurboJet that can be used by JNI programmers to find errors in their code.  相似文献   

14.
王建群  韩臣  徐勇 《计算机仿真》2004,21(7):194-196
该文介绍了一种网络数据采集系统的软硬件的实现。描述了数据采集模块中数据的存放顺序,着重讲述了Java与C的接口函数的写法和数据显示界面的设计。系统采用了Java、Java,Server Pages、JavaScript等技术,利用接口函数编写了可以被jsp调用的动态链接库函数。该文介绍了动态链接库的使用方法。网络数据采集系统使得可以在远离现场的不同的PC机终端上通过internet explore方便直观地观察现场正在采集的数据。该系统具有界面友好、操作简单、实时响应性好等特点,具有较高的实用价值。  相似文献   

15.
“Java语言程序设计”课学生能力的培养   总被引:1,自引:1,他引:1  
本文针对Java语言程序设计课学生的动手能力和自学能力薄弱的问题,结合近年来的教学经验,从课堂教学、阶段性实验、总结性实验、测评和延伸课堂教学五个方面进行了实践探索。  相似文献   

16.
The choice of the first-course programming language for a university-level computer science curriculum has pedagogical ramifications in terms of comprehensibility and mastery of fundamental concepts. This paper compares the merits of Java and Modula-3 as a firstcourse language.  相似文献   

17.
Dale Parson  Zhenyu Zhu 《Software》2000,30(15):1641-1660
The JavaTM Native Interface (JNI) provides a set of mechanisms for implementing Java methods in C or C++. JNI is useful for reusing C and C++ code repositories within Java frameworks. JNI is also useful for real‐time systems, where compiled C/C++ code executes performance‐critical tasks, while Java code executes system control and feature tasks. Available JNI literature concentrates on creating Java proxy classes that allow Java clients to interact with C++ classes. Current JNI literature does not discuss Java proxies for entire C++ inheritance hierarchies; that is the topic of this paper. Our experience in reusing C++ class hierarchies within a Java framework has uncovered a set of useful techniques for constructing Java proxy class hierarchies that mirror their C++ counterparts. This report gives both high level design guidelines and specific programming idioms for constructing Java class hierarchies that serve as proxies for C++ counterparts. We begin by discussing opportunities for reuse within a proxy class hierarchy, as well as problems caused by differences between the Java and C++ approaches to inheritance. The two most significant differences are due to C++ support for invocation of a member function based on the static type of its class, and C++ support for multiple implementation inheritance. Two example C++ class hierarchies provide the basis for a set of sections that present the design guidelines and that codify the programming idioms. This work could serve as the basis for an automatic generator of Java proxy class hierarchies. Copyright © 2000 John Wiley & Sons, Ltd.  相似文献   

18.
文章首先分析Java编程语言系统概论﹐并且结合Java编程语言系统的特点以及Java编程语言系统现状,进一步总结了Java编程语言系统应用策略。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号