.

Saturday, March 30, 2019

The History Of Java Philosophy Essay

The History Of umber Philosophy Essay coffee berry is an tendency-oriented programming phraseology nonpl customd by Sun Microsystems in 1991 and showtime released in 1995. Its development was led by the Green Team, managed by the flagship computer programmer James Gosling. In the beginning was to be called Oak, and in that location are umteen theories of why this come to, being the most accepted the fact that t here(predicate) was an oak tree tree (Oak in English) against the Green Team office. That name turned proscribed to be little commercial locations, apart from already having been registered. Finally, at the offices of Sun, it was headstrong to call it coffee bean.In the beginning was conceived as a programming language oriented to system fixed and domestic appliances. This did not have the await success and under the expectations. The Web was the lever that drives this language with a engineering science called applets that were desktop exercises that could deve lop into a web environment, through a plugin in each browser. This created a business strategy between Sun Microsystems and Netscape, creators of coffeeScript. chocolate does not acquire long to reach the hearts of desktop programmers, providing a platform multiplatform and robust for developers. In its beginnings left much to be sought after in the graphic interface, because the original graphics library, AWT (Abstract Window Toolkit), was much addicted to the operating(a) system and engaged in targeted bugs, that is to say, bugs specific to each operating system.This is a nightmare for any developer, since it is forced to test their application on each operating system. But with the appearance of Swing, the current library of graphical user interface, all these problems were solved.However, the biggest market of coffee bean instanter is aimed at host applications, offering in the platform J2EE a wide range of whoresons to develop secure systems, scalable and robust.Java, rather than a programming language, was developed considering a technology or framework. Three different flavors are distinguished, each rivet on a specific needJ2ME Java Micro Edition, bound(p) for develop busy applications. It is developed considering the jelled resources that have a mobile device.J2SE Java Standard Edition, for the world of desktop applications. It is the core of the language reading the source of the API (Application Programming Interface) this offers us.J2EE Java Enterprise Edition, for the systems business. It is built on J2SE, nevertheless with the profit of a large security API, giving the developer all the tools necessary.Today Java is present in every field of modern programming, from phones to biggest servers, but the riddle of its success, beyond the great API that offers and its sentence structure, has been the JVM (Java Virtual Machine), the key piece in this masterpiece.It is responsible for interpreting the byte cypher and executes the sta tements. It also contains the Garbage Collector, a collection of resources unattainable in the application, which allows the developer to concentrate on the logic, and reside less about the memory leaks.What is Java?Ok, we axiom the history of Java, but what is Java?In theory is define as a multiplatform language and purpose-oriented, but these are terms that whole a technical person backside understand. In plain and unproblematic terms, Java is a programming language able to run on any operative system and implements a paradigm that facilitates the maintenance of the application.Java, the like any programming language inclination-oriented, awaits on Classes and Objects. A disunite is energy more than a template from which an object is created. But once again, this provide only be understood by a technical user. In plain words, a level is a blue stigma from which it is possible to prepare a building.We know that from a class we can construct an object, but what is an object? Simple, an object is an suit of a class. Following our previous framework, a building would be an object (since it was built from a plane).The objects in the true world have attributes and functions. For example a humans being is an object with several attributes color, weight, height, attitude, and also has several functions eating, walking, talking, etc.The same sentiment applies to objects in Java an object has attributes and functions. Attributes describe the object and functions are the actions that objects can execute. For example, the object calculator may have the attribute buttons and the function add.We have already consumen part of object-orientation, but what can be a multiplatform? To explain this concept we have to introduce another machine enroll. For machine code we fix to instructions a computer can understand. The disadvantage is that code should be written individually for each operative system so for example if we develop an application in machin e code, we have to write that code different ways according to the operative system. Here comes into play our helpmate multiplatform. When we say that a language is multiplatform, refers to the fact that the same code runs on any operative system. Yes, only be developed once and our application pull up stakes be able to run on any platform.Java sentence structureWe already know the story and what is Java, but how to use Java? Before this, we should know talk java we moldiness know its phrase structure.Syntax is the set of laws and regulations must be followed when we are developing in Java. It is a lot like the spelling rules which exist in all human language.In all syntax of any programming language there are keywords or silent words. What is this? Nothing more than words reticent by Java for personal use and therefore the programmer can not use it in his code.These keywords areabstract continue for crude switchassert default goto sheaf synchronizedBoolean do double head-t o-head thisbreak double implements protected throwbyte else here and now public throwscase enum instance of return transientcatch extends int light trychar final interface static voidclass finally long strictfp volatileconst float native super pieceEach of these keywords serve a function in Java, but we pull up stakes them forecast later.As we saw previously, Java is object oriented, so has attributes and functions. In the world of Java these are called variables and methods. A variable is a reserved space of memory, that means a information container. Each variable must have a data guinea pig. A what? A data type is what kind of determine this variable can hold numbers, characters, Boolean, dogs, cats, etc. The syntax for declaring a variable in Java is inlet modifier behavior modifier datatype nameLater we will see what each one of them is about.We saw the variables or attributes, but what about functions? From now on we will call them methods. One method is a turn away o f code to be executed in an orderly and sequential way. The syntax for declaring a method in Java is advance modifier behavior modifier return type name parameters exceptions body of the methodAgain, do not worry about knowing what that means for now.We have seen the objects, but it is time to see the classes. As noted above, a class is a template from which an object is created, therefore, the class must contain all the information that describes the object. The syntax for declaring a class in Java isaccess modifier behavior modifier name bodyJava Access ModifiersPreviously we saw these words repeated several times, access modifier, but what is this? From a technical point of view, these are restrictions that attach to constituents of a class, access restrictions, meaning, who can and who cannot access them.In Java there are four access modifiers, and one-third of them are keywords of the languagepublic, protected, buck private and default.default modifier This is the modifier th at assigns the realistic machine to any member if no one has been told directly. This modifier restricts use of the member only classes that are say inside the same package as this one.public Is the modifier most permissive of all, because gives to the member access to any class declared with this switch.protected Is the second most permissive. It is alike to the modifier by default, only extending access to any class that inherits from the class containing the member. Inherit? Yes, classes can be inherited, but we will see later.private Is the modifier most restrictive of all. A member declared with this modifier can only be accessed from within the class.As mentioned above, public, protected and private are keywords in Java and can not be employ as identifiers, that is, as class names, variables or methods.Java Behavior ModifiersI assume the name is very intuitive, these modifiers act on how in which a member behaves. In total, they are seven and are also keywords of Java. The se arestatic When a member is declared as static, ceases to belong to an instance of an object and becomes part of a class.abstract When a member is declared as abstract, this member will lack of implementation and will take only a signature.synchronized When a member is declared synchronized, this member will restrict his access to only one thread at a time.strictfp When a member is declared with this modifier, floating point judges shall be governed by a set of special rules and will depend on the implementation of each Virtual Machine.volatile Changes made to a volatile member is effective only if each of them go into effect, that means, if the nurse is changed three times, these three changes come into effect only if the three changes go into effect.native A member declared as native will possess the body of its definition in machine code.final This indicates what value of a member can not be changed.Java info typesWe mentioned previously a data type refers to what types of v alues may contain a variable. In Java there are primitive data and reference data. Primitives are those that are not defined in a class and reference is the contrary, are those that are defined by a class.All primitives are keywords in the language and are the followingbyte Refers to a whole numeric value with a lay out of 8 ashort refers to a whole numeric value with a limit of 16 bitsint refers to a whole numeric value with a limit of 32 bitslong refers to a whole numeric value with a limit of 64 bitsfloat refers to a decimal value with a limit of 32 bitsdouble refers to a decimal value of 64 bitschar refers to a character and has a limit of 32 bitsboolean refers to a Boolean value, that is two states.Reference types can be any existing class in the Java API or defined by the user.Java Our First StepsWe have mastered the theory, but go to practice. We know the syntax to declare a class and its members so here we gopublic class HelloWorld private final int number = 5public static void main (String args) System.out.println (number)All this should go in a document with the same name of the class and end in (. java), in our case would be a document HelloWorld.javaWe have respectable seen the most basic example, a class declared public with the name HelloWorld. It contains a private variable and constant, a public and static method, which sends to print on comfort the value of the variable number.But writing this code is not enough, we must now compile. Java offers a set of tools for developers called JDK (Java information Kit) and these include a compiler.To compile this code we go to a console and typejavac HelloWorld.javaTo run our code we must use another tool found in the JDKjava

No comments:

Post a Comment