Java is a high-level programming language that is rapidly growing advanced technologies in the field of computer and information fields. With the other machine, languages we can either compile or infer a program to run the program on the system, but the profit of using is that it can be both compiled and interpreted.
In Java, the program is divided into halfway codes called byte codes. This is platform-independent code and is deciphered by the interpreter on the Java platform. It has the following buzzwords:-
- Platfrom independence
- High performance
- Architectural neutral
Generally, a platform is defined as the hardware or software environment on which our programs run.
Few of the reputed ones are windows 2000, Linux, Solaris, and MacOS. It may be considered as a combination of the operating system and hardware. The Java platform is a software platform that runs on the top of the other hardware-based platform. The Java platform has two components namely:
- The Java Virtual Machine(JVM)
- The Java Programming Application Interface(Java API) Java Virtual Machine is the base platform for the Java platform and it is ported into various hardware-based platforms. Java API is generally grouped into libraries of classes and interfaces.
This classes is also known as packages. The following diagram shows the uses of Java platform and how the Java virtual and the Java API insulate the program from the hardware 2.4.3 ODBC ODBC stands for Open Database Connectivity and is a standard programming interface for database service providers and the application developers. ODBC is the de facto for the windows to get connected or interact with the database system, programmers have to use different programming languages to get connected with the database. Now, the ODBC has made the choice of the database system easier and more efficient. . Application engineers have considerably more vital things to stress over than the language structure that is expected to port their program starting with one database then onto the next when business needs abruptly change.
Through the ODBC Administrator in Control Panel, you can determine the specific database that is related with an information source that an ODBC application program is composed to utilize. Think about an ODBC information source as an entryway with a name on it. Every entryway will lead you to a specific database. For instance, the information source named Sales Figures may be a SQL Server database, while the Accounts Payable information source could allude to an Access database. The physical database alluded to by an information source can live any place on the LAN.
Java Database Connectivity or JDBC is developed by Sun Microsystems to develop an independent standard database API for Java. A generic SQL database access mechanism is provided which in turn provides a consistent interface to a variety of Relational Database Management systems (RDMS). The database connectivity module uses a “plug-in” to maintain the interface consistency. Divers for each platform should be provided to the database & Java to have JDBC support. To pick up a more extensive acknowledgment of JDBC, Sun constructs JDBC’s system with respect to ODBC. JDBC GOAL Barely any product bundles are planned without objectives as a top priority. JDBC is one that, as a result of its numerous objectives, drove the advancement of the API.
These objectives, in conjunction with early commentator input, have settled the JDBC class library into a strong structure for building database applications in Java. The objectives that were set for JDBC are essential. They will give you some knowledge with reference to why certain classes and functionalities carry on the way they do. The eight design goals of JDBC are as follows
- SQL Level API.
- SQL Conformance.
- JDBC must be implemented on the top of common database interface.
- A Java interface is provided which is consistent with the rest of the Java system.
- It should be kept simple.
- Keep the common cases simple.
- Strong, static should be used wherever possible. Java is also unusual in that each Java program is both compiled and interpreted.
With a compile, you translate a it into a midway language called Java byte codes the platform-independent code instruction is passed and run on the computer. Java is additionally unordinary in that every Java program is both assembled and translated. An order you make an interpretation of a Java program into a middle-of-the-road dialect called Java byte codes the stage autonomous code guideline is passed and keep running on the PC.
It furthermore implies that any application supporting Windows Script can utilize different dialects – JScript, VBScript, Perl, and others. JScript (and alternate dialects) can be utilized for both basic assignments, (for example, mouseovers on Web pages) and for more mind-boggling errands, (for example, refreshing a database with ASP or running logon contents for Windows NT ). Windows Script depends on outside “question models” to do a lot of its work. For instance, Internet Explorer’s DOM gives protests, for example, ‘record’, and techniques, for example, ‘compose()’ to empower the scripting of Web pages.