Wednesday, June 5, 2019

High Level Programming Language Of Java Computer Science Essay

High Level schedule Language Of burnt umber Computer Science Essay coffee berry applied science is a conclave of weapons platform quarrel and a platform. This technology supports the state of art schedules assisting the games, utilities also services related to the business natural coverings. As of 2012, burnt umber was one of the most important and treasured classing language, in particular for client-server based diligences, with much than 10 million users. deep brown has become the most important part of performance operations for hemorrhoid of applications and websites. Without coffee berry being installed, it might not be able to run or operate them, as it erects lots secure, speed and efficiency.The coffee programming language is an authentic and object-oriented high take language. This language evolved from a language called Oak, which was developed in early 90s as a mode of communication involved in entertainment appliances such as video games animation a lso in VCRs. umber is also addressed as interpreted language because of its byte decree, which is created by the compilation of source code. This compiled source code is interpreted by JVM and is then converted to a machine dep nullifyent code which is also called as endemic code.The high-altitude programming language of Java is characterized by all of these following listed buzzwordsSimpleArchitecture neutral bearing orientedPortableDistributedHigh performance interpretMultithreadedRobustDynamicSecureWith most programming languages, you either collate or depict a program so that you rout out run it on your computer. But, Java is particularly designed to reduce the number of dependencies as less as possible, during the process of implementation. The Java programming language is unusual, wherein a program is twain compiled and interpreted. With the compiler, first program is first translated into an intermediate language called Java byte codes -the platform-independent codes i nterpreted by the interpreter on the Java platform. The interpreter determines and runs apiece Java byte code instruction on the computer. Compilation happens entirely once interpretation occurs each while the program is executed. The following figure illustrates how this works. description g1Fig 3.3 .1Java is an Object oriented Programming concept which guides us to the core ideas concepts behind object-oriented programming such as Objects, messages, classes and interests. A clear picture of what ar they, why you would necessitate to write one and how to write is described clearly using the interfaces inheritance, which are few among those object-oriented concepts of Java.You can cogitate of Java byte codes as the machine code instruction manual for the Java Virtual Machine (Java VM). Every Java interpreter, whether its a discipline tool or a Web browser that can run applets, is an betrothal of the Java VM. Java byte codes help make write once, run whatsoeverwhere poss ible. 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 alike program written 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 correspond the actual requirements of users. An application may be created to provide service for one user at a time, many users at once or redden to serve users at different locations at any disposed time. This platform of Java apprehends the variant challenges that are generally faced by the developers and gives out a proposal of various selects of different technologies based on necessity of users motivations. The dickens important aspects of this Java platform are the Java runtime environment (JRE) and the Java maturation Kit (JDK). The Java runtime environment when equipped on to a computer provides the operating remains 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 more suitable for both medium and Brobdingnagian 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 entre nched devices such as PDA, Printers, tuner box, Cell phones, etc.Weve already mentioned nearly 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 new(prenominal) 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 introduce in previous sections as a base for the Java platform and is ported onto various hardware-based platforms.The Java API is a abundant assembly of ready-made software components that contributes many useful capabilities, such as graphical user interface (GUI) wid modernizes. The Java API is grouped into libraries of related classes and interfaces these libraries are know as packages.The next section answers, What burn down J ava 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 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 native code processing. However, smart compilers, well-tuned interpreters, and just-in-time byte code compilers combination would perform very close to that of native code without menacing the portability.What Can Java Technology Do?The most common types of programs written in the Java programming language are applets and applications. If browsed through net for related data, it makes it much easier and reliably familiar with applets cont ext. 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 employ 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 integration libraries. These features provide all necessary tools needed for compiling, running, monitoring, debugging, and documenting the applications.API was the key provider of core functionality 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 nurture an easy access to the database 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 picky 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 vary program is a servlet. A servlet can almost 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 similar 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 (Internet Protocol) addresses.Internationalization This helps in writing the programs that can be locally in stock(predicate) for all the users worldwide. Programs can automa tically adapt to specific locales and can also be displayed in the appropriate language according 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 serialization 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 lang uage. 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 better and requires less apparent motion than other languages which simplifies the process of understanding and implementing Java technology without any complications and confusions. Wide variety of dynamic, establishedly secured and safe independent applications can be created by implementing Java, which is the main(prenominal) reason behind that gradual and rapid increase 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 pointers or computer storage to be managed explicitly, passing secured applications can be used without any interruptions. Although t he 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++.Write less code Comparisons of program metrics (class counts, regularity 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/ while 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, comfortably 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 100% 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 puckish 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 CO RBA 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 basic 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, waste/garbage collection management to free the refreshed 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 application developers and database systems providers. Before ODBC became a defacto standard for Windows programs to interface with database systems, pr ogrammers had to use proprietary languages for each database they wanted 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. Think of an ODBC data source as a inlet 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 stir 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 Client 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 Excel spreadsheets and plain text files can be changed over i nto different data sources. The operating system implicates the register 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 think that there must be some catch. The only disadvantage of ODBC is that it isnt as efficient as talking directly to the native database interface. ODBC has had various detractors make the nominate that it is too slow. Microsoft has always proved that the critical factor 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 alter a great deal recently. And anyway, the criticism about perfor mance is somewhat analogous to those who said that compilers would never match the speed of pure assembly language. perchance not, but the compiler (or ODBC) gives users that opportunity to write cleaner programs, which means the users can finish their programming presentlyer. 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 solarise Microsystems. . In an accomplishment 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. excursion from being easy to write, using the JDBC API, it is robust, secure, and automatically downloadable. Also, JDBC automatically appreciates these benefit s 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 rather in this chapter, ODBC has widespread support on a variety of platforms. Basing JDBC on ODBC will allow vendors to bring JDBC drivers to market much faster than developing a completely new connectivity solution.JDBC was announced in March 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 requests 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 int o 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