Friday, March 1, 2019

Programming languages and the real world Essay

Programming speech communication argon the sets of instruction which argon accustomd to create schooling processing system programmes and software. This language also instructs the hardware what to do and respond to when theres an make up up from the operator.Programming language nookie be single outified as fol low-pitched applicative programme language, declarative programming language, domain specific programming language, design orient programming languages, first-fifth generation programming languages, high and low level programming language.JAVAIs a programming language positive by the SUN Microsystems. It was formerly called oak tree which was designed for handheld devices. OAK failed in 1995 so the company had to change it name to JAVA. They thencece modified the programming language to take the full exploration of the World capacious Web. Its an object orient programming language. It is similar to C++ precisely much simpler in that it was designed to elimi nate all errors due to programming. It root code file are those with .java extension.This is compiled into a format known as byte code. Byte codes are with a . furcate which is interpreted by an interpreter. The interpreters are Java Machines which subsist in most OS. Java programming language is general end utility with several features that makes it suitable for the web. Small form of Java applications are called applets and this can be downloaded from web server and then run on any Java enabled Web browser. The most important uses of JAVA are World Wide Web applets, cross platforms application development, other networks application.Objects in java programming language class object is usually arouse to as the root of class hierarchy, i.e. from each one class has object as a super class and all the object will put on the method in the class. This is important in understanding the object oriented technology. The objects are like the objects in the real world simply because th e deem both convey and behavior. Objects in Java stores its states in form of range and expresses its behavior in form of methods hence java applications are use to model real world experiences.Methods operate on an objects internal state and serve as the primary mechanism for object-to-object communication. covert internal state and requiring all action to be performed through an objects methods is known as data encapsulation a fundamental commandment of object-oriented programming. (Sun Microsystems, 2008).Class its a model from which the objects are made. The class models the state and behavior of a real world object. So in programming with java an object is said to be an instance of a classInheritance it provide a strong and natural performer for coordinating and organizing the software. This is a method in which a class is ripe to share some features with other classes. Java programming also allows each class to a direct super class and the super class with the potenti al of an unlimited number of subclass.Interfaces this is the method in which the classes exposed to interact with the outside world. This can be compared to the on button of a computer set and the electrical circuits within the CPU. Simply because the button can be use to on or off the computer but in java, interface is related to an empty body.Packages this is a names space that cut back a set of related classes and interfaces. Its helps organize the classes and interfaces into the same packages. Application program interface is a type of packages which contains the classes that are normally associated with general target programming.Pointers The cursor in Java are actually a topical anaesthetic variable cursor which points to pointee (what the pointer points to) object of some class. Refer to concluding aspect for a note on pointersC + +This is an object oriented programming language. Its an extension or advancement to the C language. C programming language was created (1969- 1973) at the Bells this was in conjunction with the development of the Unix O.S. The C language was a descendant of the B language. After the creation of the C language the computer world was filled with various version of the language, as a result of this a committee was established by ANSI in 1989 to create a standard for the C language. C+ language enables programmers to advance the quality of the code they produces and this helps other programmers to be able to reuse the codes.Objects this sometimes refer to as black boxes is know to be a separate of the language that can do so many things with the ability to ruffle dissimilar part of the language together. It takes in some values and then gives some output. The objects helps model the real world and helps produce a tangled and functional application. Its also be view as what help keeps jump of the particles data and actions.Instance it differ from the object in that the object serves as a template for the instances of th at object. Instance can be manipulated. Instance can be made up of culture of the members but it lacks value of their functions. all the instance of an object performs the same steps when carrying out a member function this can be influenced by the instances current member data.Variables where information is stored. Its a method of getting at someones computer memory. This changes over time and new information tends to replace the white-haired ones.Pointer inappropriate the Java programming that lack pointer, the C + + has pointer as an attribute. This is generally considered as a mode of getting to another(prenominal) object. It s simply a mode of grabbing an instance of an object and then transfer message to the instance or retrieve some information from the object. It also said to be an address of the location of an instance in the memory.Pointers and applicationPointer and pointees a pointer this simply refers to a role to stored information and pointee refers to what the p ointer points to. Allocation of the pointer and pointee is clear two different procedure. Another term known as dereferencing operation starts at the pointer and follows its down to the pointee. It main objective is to ensure the constant state of the pointee or to see to the change of the pointee. It only works when a pointer has a pointee and its noted that one of the common errors in runtime is seen when there is failed dereference operation. In Java this can be noticed without major problems unlike other programs where runtime system will crash.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.