Wednesday, June 5, 2019
The Benefits of Java
The Benefits of  chocolatecoffee INCLUDES A LIBRARY OF CLASSES AND INTERFACESThe Java platform includes an extensive  split library so that  software engineers can use already existing classes, as it is, create subclasses to modify existing classes, or implement interfaces to augment the capabilities of classes.Both classes and interfaces contain data members (fields) and functions (methods),  that  in that respect are major differences. In a class, fields may be either variable or constant, and methods are fully implemented.To use an interface, a programmer defines a class, declares that it implements the Interface, and then implements all the methods in that interface as part of the class. These methods are implemented in a  expression that is appropriate for the class in which the methods are being used. Interfaces let one add functionality to a class and give a great deal of flexibility in doing it.A package is a collection of related Java classes and interfaces. The following li   st, however not complete, gives example of some Java packages and what they cover.Java.lang The  prefatorial classes. This package is so basic that it automatically is included in any Java program. It includes classes that intercepts with numeric, strings, objects,  maneuvertime, security, and threads.Java.io Package that includes classes managing reading data in input streams and writing data into output streams.Java.util Miscellaneous  profit classes, including generic data structures, bit sets, time, date, the string manipulation, random number generation, system properties, notification and enumeration of data structures.Java.net Classes for network support.Java.awt Classes that manage user interface components  much(prenominal)(prenominal) as windows, dialog boxes, buttons, checkboxes, lists, menus, scrollbars, and text fields, the AWT stands for Abstract Window Toolkit.Java.awt.image Classes for managing image data, including color models, dropping color flittering, setting pi   xel values, and grabbing snapshots.Java.applet The Applet class, which provides the ability to write applets, this package  withal includes several interfaces that connect an applet to its documents and to its document.Java.sql The JDBC API, classes and interfaces that access databases and send SQL Statements.The first three packages listed, java.lang, java.io and java.util form the basis, they are basic classes and interfaces for general-purpose programming.Java development kit version1.1 added some  saucily packages, with JDBC being one of them. Other new packages include such thing as Remote Method Invocation, Security and Java Beans, the new API for creating reusable components.In Java, packages serve as the foundation for building other packages, as discussed in the following section.JAVA IS EXTENSIBLEA big plus for Java is the  detail it can be extended. It was purposely written to be lean with the emphasis on doing what it does in truth well, instead of trying to do everythin   g from the beginning, it was return so that extending it is very simple. The JDBC API, the java.sql package, is one example upon which extensions are being built.In addition to extensions there are  in any case main tools being developed to make existing capabilities easier to use. For example, there is already a tool that greatly Simplifies creating and laying out Graphical User Interfaces such as menus, Dialog boxes and buttons.SECURITYIt is important that a programmer not be able to write subversive  mandate for Applications or applets. This is especially true with the Internet being used more and more extensively for services such as electronic commerce and electronic delivery of software and multimedia content.The Java platform builds in security in  quaternity ways.The way memory is Allocated and laid out In Java an objects location in memory is not determined until The runtime, as  inappropriate to C and C++, where the compiler makes memory layout Decisions. As the result, a    programmer cannot look at a class definition and figure out how it  cogency be laid out in memory. Also since, Java has no pointers, a programmer cannot forge pointers to memory.The way incoming code is checked The Java  realistic machine doesnt trust any incoming code and subjects it to what is called throughte code verification. The throughte code Verifier, part of the virtual machine, checks that the format of incoming code is  cook upincoming code doesnt forge pointers, it doesnt violate access restrictions, it accesses objects what they are.The way classes are loaded The Java throughte code loader, another part of the virtual machine, whether classes loaded during program execution are local or from across a network. Imported classes cannot be substituted for built in classes, and built in classes cannot  incidentally reference classes brought in over a network.The way access is restricted for  immature code The Java security manager allows user to restrict untested Java applet   s so that they cannot access the local network, files and other resources.JAVA PERFORMS  heartyJava performance is better than one might expect. Java has many advantages, such as having built in security and being interpreted as well as compiled, do have a cost attached to them. As a result, Java has done quite respectably in performance tests. Its performance numbers for interpreting throughte codes are usually more than adequate to run interactive graphical end user applications.For situations that require unusually high performance, throughte codes can be translated on the fly, generating the final machine code for the particular  processor on which the application is running at run time. High level interpreted scripting language generally offer great portability and fast prototyping but  unretentive performance. Low level compiled language like C and C++ offer great performance but require large amounts of time for writing and debugging code because of problems with areas such a   s memory management, pointers and multiple inheritance. Java offers good performance with the advantages of high level languages but without the disadvantages of C and C++.JAVA IS ROBUSTThe multi platformed  environment of the WEB places extraordinary demands on a program, because it must execute reliably in a variety of systems. Thus the ability to create robust programs was  stipulation a high priority in the design of Java. To gain reliability, Java restricts you in a few key areas to force you to find your mistakes early in program developments. At the same time, Java frees you from having to worry about many of the most common cause of programming errors. Because Java is strictly typed language, it checks your code at compile time. However, it also checks your code at run time. In fact, many  thorny to track down bugs that often turn up in hard to reproduce runtime situations are  manifestly impossible to create in Java. Knowing that what you have written will behave in a predi   ctable way under diverse conditions is a key feature of Java to understand how Java robust.For example in C/C++ the programmer must manually allocate and free all dynamic memory. This sometimes leads to problems. For example some programmers some times forget the free memory that has been previously allocated.JAVA SCALES WELLJava platform is designed to scale well, from portable consumer electronic devices to powerful desktop and server machines. As a result, Java accommodates the need for low  terminal and for low bandwidth transmission over the Internet. In addition the Java operating system offers a standalone Java platform that eliminates host operating system  bang while  restrained supporting the full Java platform. API makes Java ideal for low cost network computers whose sole purpose is to access the Internet.JAVA IS MULTITHREADEDMultithreading is simply the ability of a program to do more than one thing at a time. For example an application could be faxing a document at the    same time it is printing another document. Or a program could process new inventory figures while it sustains a feed for current prices.JAVA IS IMPORTANT TO THE INTERNETThe Internet helped catapult Java to the forefront of programming and Java in turn has a profound effect on the Internet. The  land is simple. Java expands the universe of objects that can move about freely in cyberspace. In a network, there are two broad categories of objects transmitted  in the midst of the server, your personal computer, passive info and dynamic, active programs. For example, when you read your e-mail, you are viewing passive data. Even when you download a program, the programs code is still only passive data until you execute it. However, there is a second type of object that can be transmitted to your computer, a dynamic, self  execution of instrument program. Such a program would be an active agent on the client computer, yet it would be initiated through the server. As desirable as dynamic, n   etworked programs are, they also current serious problems in the areas of security and portability. Prior to Java cyberspace was effectively closed to half the entities that now live there. Java addresses these concerns and doing so, has opened the  accession to an exiting a new form of program.  
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.