.

Friday, April 5, 2019

High Level Programming Language Of Java Computer Science Essay

High Level pro grammeme Language Of umber Computer Science Essay coffee bean technology is a junto of weapons platform verbiage and a political schedule. This technology supports the state of art programs assisting the games, utilities also services related to the business coatings. As of 2012, deep brown was integrity of the most important and exigencyed computer programing language, in particular for client-server found applications, with untold(prenominal) than 10 million designrs. coffee bean has become the most important part of performance operations for loads of applications and websites. Without chocolate being inst in alled, it might non be able to gallop or operate them, as it provides often eons secure, speed and efficiency.The coffee tree computer programing language is an authentic and object-oriented high level language. This language evolved from a language called Oak, which was developed in early 90s as a mode of communication involved in en tertainment appliances such as video games animation also in VCRs. coffee bean is also communicate as interpreted language beca practise of its byte jurisprudence, which is created by the compilation of source work out. This compiled source code is interpreted by JVM and is then converted to a machine dep deathent code which is also called as Native code.The high-level program language of deep brown is characterized by all of these by-line leaned buzzwordsSimpleArchitecture neutral object orientedPortableDistributedHigh performanceInterpretedMultithreadedRobustDynamicSecureWith most programing languages, you either collate or depict a program so that you dope reach out it on your computer. But, burnt umber is particularly designed to reduce the number of dependencies as less as feasible, during the process of implementation. The deep brown programming language is unusual, wherein a program is both compiled and interpreted. With the compiler, first program is first tra nslated into an intermediate language called Java byte codes -the computer program-independent codes interpreted by the interpreter on the Java computer programme. The interpreter determines and stockpiles each Java byte code instruction on the computer. Compilation happens just once interpretation occurs each time the program is executed. The following figure illustrates how this works.Description g1Fig 3.3 .1Java is an Object oriented Programming opinion which guides us to the total ideas concepts behind object-oriented programming such as Objects, messages, classes and interests. A clear picture of what argon they, why you would want to write one and how to write is described clearly using the interfaces inheritance, which atomic number 18 few among those object-oriented concepts of Java.You washbowl have in mind of Java byte codes as the machine code instructions for the Java Virtual Machine (Java VM). E truly Java interpreter, whether its a development tool or a win d vane browser that commode predominate applets, is an physical exercise of the Java VM. Java byte codes help plant write once, run anywhere possible. The program can be congregated into byte codes on any platform that has a Java compiler. The byte codes can then be run on any implementation of the Java VM. That means that as long as a computer has a Java VM, the homogeneous program pen in the Java programming language can run on Windows 2000, a Solaris workstation, or on an iMac.Description helloWorldFig 3.3.2The Java PlatformA platform is the hardware or software environment in which a program is set to run. The makers construct applications to pair off the actual requirements of users. An application may be created to provide service for one user at a time, many users at once or even to serve users at different locations at any apt(p) time. This platform of Java apprehends the various challenges that are generally faced by the developers and gives out a proposal of vario us qualitys of different technologies based on necessity of users needs. The two important aspects of this Java platform are the Java runtime environment (JRE) and the Java Development Kit (JDK). The Java runtime environment when equipped on to a computer provides the operating form with the means to run the programs of Java, whereas Java Development Kit is the combination of the tools that are being apply by a programmer creating the Java based applications.The Java platform versions contain additional Java APIs for generating various types of applications such as Java Standard edition, Java Enterprise Edition Java Micro Edition. Java standard edition (Java SE) helps in creating desktop applications applets. essentially this application is created to serve small number of users at once. Java enterprise edition (Java EE) is mended for complicated applications to make it to a greater extent suitable for both medium and large business units, and this is designed as server based application so as to focus on serving the needs of more number of users at a time. Java Micro Edition is implemented on mobile and entrenched devices such as PDA, Printers, tuner box, Cell phones, etc.Weve already mentioned some of the most popular platforms like Windows 2000, Linux, Solaris, and MacOS. Most platforms can be characterized as an amalgamation of the operating system and hardware. The Java platform varies from most other platforms in that its a software-only platform that runs on top of other hardware-based platforms.The two components of Java platform areThe Java Virtual Machine (Java VM)The Java application Programming Interface (Java API)Java VM is already let out in previous sections as a base for the Java platform and is ported onto various hardware-based platforms.The Java API is a long assembly of ready-made software components that contributes many useful capabilities, such as graphical user interface (GUI) wid points. The Java API is grouped into libraries of related classes and interfaces these libraries are known as packages.The next section answers, What Can Java Technology Do?This Section highlights what functionality some of the packages in the Java API will provide.The following figure given below depicts a program thats running on the Java platform. As the figure shows, the Java API and the virtual(prenominal) machine shields the program from the hardware.Description g3Fig 3.3.3Native code is code that after the completion of compilation, the compiled code is further processed or run on specific hardware platform. As a platform-independent environment, the Java platform is relatively slower compared to that of aborigine code processing. However, smart compilers, well-tuned interpreters, and just-in-time byte code compilers combination would perform precise close to that of native code without menacing the portability.What Can Java Technology Do?The most car park types of programs written in the Java programming language are applets and applications. If browsed through net for related info, it makes it lots easier and reliably familiar with applets context. An applet is a program that sticks to particular type of conventions that allow the Java enabled browser to run the applications faster. However, the Java programming language is not just for writing cute, entertaining applets for the Web. The general-purpose, high-level Java programming language is also a powerful software platform. The generous API can also be apply to write different types of programs. Being a strong and most used programming language in day to day activities, the features gained by implementation of Java platform are development tools, Application programming interface (API), deployment technologies, user interface toolkits consolidation libraries. These features provide all necessary tools needed for compiling, running, monitoring, debugging, and documenting the applications.API was the primeval supplier of core functiona lity which provided a vast cluster of useful classes ready for implementation in the users applications. The core concept of API is extremely wide so as to provide the different classes that are very much necessary for creation of an applet and the further classification of these applets were used to communicate with the applet contexts. It also helped in providing the standard mechanism for extending the applications to the end users. To make the creation of complicated Graphical User Interface more simple, user interface toolkits were used such as Swing Java toolkits. To have an easy entranceway to the informationbase and collaboration of remote objects integration libraries feature was used.An application is a stand-alone program that runs directly on the Java platform. A particular kind of application known as a server serves and supports clients on a network. Examples of servers are Web servers, proxy servers, mail servers, and print servers. Another specialized program is a servlet. A servlet can closely be thought of, as an applet that runs on the server side. Java Servlets are a prevailing choice for building most interactive web applications, by replacing the use of CGI scripts.Servlets are much comparable to applets, where in the only difference between these two is that they are runtime extensions of applications. Instead of working in browsers, the servlets run within Java Web servers, configuring or tailoring the server.How does the API support all these kinds of programs? It does so with packages of software components that provides a vast options for the functioning of applications. Every full implementation of the Java platform gives you the following featuresThe essentials Objects, strings, threads, numbers, input and output, data structures, system properties, date and time, and so on.Applets The set of conventions used by applets.Networking URLs, TCP (Transmission Control Protocol), UDP (User Data gram Protocol) sockets, and IP (Inter net Protocol) addresses.Internationalization This helps in writing the programs that can be locally available for all the users worldwide. Programs can automatically adapt to specific locales and can also be displayed in the appropriate language jibe to the user requirements.Security Both low level and high level, including electronic signatures, public and private key management, access control, and certificates.Software components Known as JavaBeans, can plug into existing component architectures.Object serialisation This feature allows the lightweight persistence and communication via Remote Method Invocation (RMI).Java Database Connectivity (JDBCTM) Provides uniform access to a wide range of relational databases.The Java platform also has different types of APIs that includes 2D and 3D graphics, accessibility, servers, collaboration, telephony, speech, animation, and more.The following figure depicts what is included in the Java 2 SDK. Description gs5Fig 3.3.4Java Technologys Impact on UsersEven though Java technology cannot promise its users the fame, fortune, or even a job, it helps the users to learn the Java programming language. Java technology is one of those programming languages which has wide acceptance all over the world, with its huge amount of important and robust features. Still, it is likely to make the programs break in and requires less trend than other languages which simplifies the process of understanding and implementing Java technology without any complications and confusions. Wide variety of dynamic, completely secured and harmless independent applications can be created by implementing Java, which is the main reason behind that gradual and rapid cast up in the number of users and it is also believed that Java technology will help in doing the following functions/actions more effectivelyGet started quickly Java being a user friendly programming language, it is very easy to write and understand. As the programming doesnt need any even outers or holding to be managed explicitly, super secured applications can be used without any interruptions. Although the Java programming language is a powerful object-oriented language, its makes the program or application easy to learn, especially for programmers already familiar with C or C++. import less code Comparisons of program metrics (class counts, method counts, and so on) suggest that a program written in the Java programming language can be four times smaller than the same program in C++. Different rules of OOPs (Object Oriented Programming) like inheritance, encapsulation, and polymorphism are followed during the processing/ enchantment running the operation which makes Java different from other languages such C and C++.Write better code The Java programming language encourages good coding practices, and its garbage collection helps you avoid memory leaks. Its object orientation, its JavaBeans component architecture, and its wide-ranging, slowly extendible API let you reuse other peoples tested code and introduce fewer bugs.Develop programs more quickly Your development time may be as much as twice as fast versus writing the same program in C++. why? You write fewer lines of code and it is a simpler programming language than C++.Avoid platform dependencies with degree Celsius% Pure Java You can keep your program portable by avoiding the use of libraries written in other languages. The 100% Pure Java Product Certification Program has a repository of diachronic process manuals, white papers, brochures, and similar materials online.Write once, run anywhere Because 100% Pure Java programs are compiled into machine-independent byte codes, they run consistently on any Java platform.Distribute software more easily You can upgrade applets easily from a central server. Applets take advantage of the feature of allowing new classes to be mingy on the fly, without recompiling the entire program.ODBCCommunicating with remote objects distribute over the network is set through the Java programming. It contains all required data base in its libraries with sources such as RMI and CORBA which are very much essential to develop any network applications. All Primary data types can be considered as objects using covering classes to make Java a dully Object oriented, wherein class is considered a prefatorial unit of Java and Objects are the entities which follow the prototypes that are defined by class.Java applications are more reliable in different ways. It helps compile time checking to identify at early stages the causes of bugs, run time checking, eliminated the use of pointers which can usually cause the corruption of memory or unnecessary access of memory, chase away/garbage collection management to free the unused memories automatically, barring handling to handle the situation at the time of occurrence of any error and a lot more.Microsoft Open Database Connectivity (ODBC) is a standard programming interface for applic ation developers and database systems providers. Before ODBC became a defacto standard for Windows programs to interface with database systems, programmers had to use proprietary languages for each database they treasured to connect to. Now, ODBC has made the choice of the database system which is highly irrelevant from a coding perspective, which is as it should be. Application developers have much more important things to worry about than that of which syntax is needed to port their program from one database to another when business needs that sudden change.Through the ODBC Administrator in Control Panel, one can specify the particular database that is associated with a data source, wherein a ODBC application program is written to use. depend of an ODBC data source as a access with a name on it. Each door will lead the users to a particular database. For example, the data source named Sales Figures might be a SQL Server database, whereas the Accounts Payable data source could r efer to an Access database. The physical database referred to by a data source can reside anywhere on the LAN.The ODBC system files are not installed on users system by Windows 95. Rather, they are installed when the user setup a separate database application, such as SQL Server guest or Visual Basic 4.0. When the ODBC icon is installed in Control Panel, it uses a file called ODBCINST.DLL. It is also possible to conduct the users ODBC data sources through a stand-alone program called ODBCADM.EXE. There will be a 16-bit and a 32-bit version of this program and each of them are maintained as a separate list of ODBC data sources. From a programming perspective, the beauty of ODBC is that the application can always be written to use the same set of function calls to interface with any data source, irrespective of the database vendor. The source code of the application doesnt change whether it negotiates to Oracle or SQL Server.The only two examples that can be used at this point are as follows. There are ODBC drivers available for various dozen popular database systems. Even outmatch spreadsheets and plain text files can be changed over into different data sources. The operating system implicates the registry information written by ODBC Administrator to determine which low-level ODBC drivers are needed to talk to the data source (such as the interface to Oracle or SQL Server). The loading of the ODBC drivers is transparent to the ODBC application program. In a client/server environment, the ODBC API even controls many of the network issues for the application programmer.The advantages of this scheme are various, this make the users to intend that there must be some catch. The only disadvantage of ODBC is that it isnt as efficient as lecture directly to the native database interface. ODBC has had various detractors make the charge that it is too slow. Microsoft has always proved that the critical part in performance is the quality of the driver software that is used. In our humble opinion, this is true. The availability of good ODBC drivers has meliorate a great deal recently. And anyway, the criticism about performance is somewhat analogous to those who said that compilers would neer match the speed of pure assembly language.Maybe not, but the compiler (or ODBC) gives users that opportunity to write cleansing agent programs, which means the users can finish their programming conciselyer. This faster compilation of program or application makes the computers get faster every year.Java Database Connectivity (JDBC)JDBC is a Java-based data access technology from Sun Microsystems. . In an effect to set an independent database standard API for Java Sun Microsystems developed Java Database Connectivity, or JDBC. This technology is an API for Java programming language that characterizes how a user gets access to the database. This connectivity offers various methods for challenging and updating the data into the users database. divagation from being easy to write, using the JDBC API, it is robust, secure, and automatically downloadable. Also, JDBC automatically appreciates these benefits of Java, by virtue of being written in Java.JDBC is determined towards relational databases, and this bridge of JDBC ODBC accredits the connection to any other ODBC accessible data source in the actual JVM host ambiance. JDBC provides a comprehensive SQL database access mechanism that offers a dependable interface to a variety of RDBMSs. This consistent interface is gained through the use of plug-in database connectivity modules, or drivers. If a database vendor chooses to have JDBC support, he or she must provide the driver for each platform that the database and Java can use to run the application.To gain a wider acceptance of JDBC, Sun based JDBCs framework on ODBC. As you discovered foregoing in this chapter, ODBC has widespread support on a variety of platforms. Basing JDBC on ODBC will allow vendors to call for JDBC drivers to market much faster than exploitation a completely new connectivity solution.JDBC was announced in work on of 1996. It was released for a 90 day public review that ended June 8, 1996. Because of user input, the final JDBC v1.0 specification was released soon after. The remainder of this section will cover enough information about JDBC for you to know what it is about and how to use it effectively. This is by no means a complete overview of JDBC. That would fill an entire book.JDBC concedes multiple applications to exist and to be used by the same application. To support this, API allows a mechanism for dynamically filling the reliable Java packages, followed by registering them with the driver manager of JDBC. Driver manager acts as a connection factory for developing different connections of JDBC.There are different sets of drivers for JDBC, which are client-side adapters, which is already equipped on to client system, and not on the server. These drivers then convert the reque sts from Java programs to a detailed protocol that can be easily understood by Data-Base management system (DBMS). These drivers of JDBC are further classified into commercial and free drivers that are easily applicable for most of the relational database servers. The drivers usually fall into one among these typesType 1 which calls the native code of locally available ODBC driver.

No comments:

Post a Comment