Monday, January 27, 2020

The Benefits of Java

The Benefits of Java JAVA INCLUDES A LIBRARY OF CLASSES AND INTERFACES: The Java platform includes an extensive class library so that programmers 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), but there 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 way 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 list, however not complete, gives example of some Java packages and what they cover. Java.lang: The basic classes. This package is so basic that it automatically is included in any Java program. It includes classes that intercepts with numeric, strings, objects, runtime, security, and threads. Java.io: Package that includes classes managing reading data in input streams and writing data into output streams. Java.util: Miscellaneous utility 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 such 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 pixel values, and grabbing snapshots. Java.applet: The Applet class, which provides the ability to write applets, this package also 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 new 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 EXTENSIBLE: A big plus for Java is the fact it can be extended. It was purposely written to be lean with the emphasis on doing what it does very well, instead of trying to do everything 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 also 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. SECURITY: It is important that a programmer not be able to write subversive code 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 four ways. The way memory is Allocated and laid out: In Java an object’s location in memory is not determined until The runtime, as opposed 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 might 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 virtual machine doesn’t 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 correct incoming code doesn’t forge pointers, it doesn’t 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 accidentally reference classes brought in over a network. The way access is restricted for untested code: The Java security manager allows user to restrict untested Java applets so that they cannot access the local network, files and other resources. JAVA PERFORMS WELL: Java 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 CPU on which the application is running at run time. High level interpreted scripting language generally offer great portability and fast prototyping but poor 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 as 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 ROBUST: The 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 given 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 hard to track down bugs that often turn up in hard to reproduce runtime situations are simply impossible to create in Java. Knowing that what you have written will behave in a predictable 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 WELL: Java 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 storage and for low bandwidth transmission over the Internet. In addition the Java operating system offers a standalone Java platform that eliminates host operating system overhead while still supporting the full Java platform. API makes Java ideal for low cost network computers whose sole purpose is to access the Internet. JAVA IS MULTITHREADED: Multithreading 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 INTERNET: The Internet helped catapult Java to the forefront of programming and Java in turn has a profound effect on the Internet. The reason 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 between 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 program’s 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 executing 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, networked 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 the re. Java addresses these concerns and doing so, has opened the door to an exiting a new form of program.

Sunday, January 19, 2020

Song Symbolism Essay

The song â€Å"Firework† by: Katy Perry has a lot of symbolism. With her beautiful voice, and to her amazing lyrics, people can really relate to what she is saying. From her lyrics in â€Å"Firework† I was able to pull out three lyrics that I think have the most symbolism. â€Å"Do you ever feel like a plastic bag, drifting through the wind wanting to start again? †, â€Å"Cause baby you’re a firework, come and let your colors burst†, and â€Å"You don’t have to feel like a wasted space, you’re original, cannot be replaced† are the three lyrics that stood out to me the most with the most symbolism.In the song â€Å"Firework† by: Katy Perry, her imagery and similes give the song more depth and emotion. â€Å"Do you ever feel like a plastic bag, drifting through the wind wanting to start again? † is one of the lyrics from her song. In this section of lyrics the plastic bag symbolizes worthlessness, wasteful, or usele ssness. Drifting, symbolizes searching or feeling lost. Wanting to start again symbolizes wanting to start over. These lyrics mean that someone feels worthless and lost and wants to start their life over.But Katy Perry shows through her emotion in her voice that no one is worthless, or wasteful. The thought of fireworks reminds someone of the 4th of July and the dark night sky being lit up with thousands of colors. When Katy Perry sings about fireworks, she thinks of expression. â€Å"Cause baby you’re a firework, come and let your colors burst† is the chorus in the song. The fireworks symbolize personality and emotions. The colors bursting symbolize that a person is not afraid to show who they really are.These lyrics mean that people have their own emotions and personalities and that they should not be afraid to show who they really are. Again, Katy Perry’s lyrics make a person feel important as an individual. â€Å"You don’t have to feel like a wasted space, you’re original, cannot be replaced† is one of the most important lyrics. The wasted space symbolizes nothing or emptiness. Original symbolizes that no one is or ever will be exactly the same. The lyrics mean that a person doesn’t have to feel like they are nothing because there is nobody that is the same as them so they are unique.Katy Perry is an expert when it comes to self expression and individuality. Katy writes her lyrics filled with powerful and inspirational similes, metaphors and of course symbols. She tells an important message through her music. The message is that a person should not feel worthless and even though they are original they are unique and special in their own way. She understands people’s feelings and emotions and writes about them to show people that they are not alone. Katy is an inspirational song writer and icon for many.

Saturday, January 11, 2020

Literary analysis of hunger Games Book 1 Essay

In Susan Collins’s book the â€Å"Hunger Games† the character of Katniss Everdeen is considered by many to be an example of gender role reversal. Though Katniss does portrait many traits that may be considered masculine in and of themselves, she also portrays feminine traits. Her possession of these feminine even instinctually motherly traits steer my opinion to the thought that these traits are more due to her position in her family then to that of a girl who is tomboyish in nature. In this paper I will show that the behaviors of Katniss Everdeen are traits of an eldest child of a single parent household by assuming the roles of both mother and father as opposed to simply being characterized examples of gender role reversal. The book starts out explaining the back story of Katniss, her father who she was very close with died in a mine explosion five years before the books present day. Now she is left with a mother how is so overwhelmed with grief that she can barely function and a little sister who needs she to be raised. While her father was alive their relationship seem to be very similar to that of a father with no sons who tends to teach their daughter all they would teach a son, I know this relationship very well. While fathers love their daughters they seem to have this primal need for a son, an heir. Similar to other eldest female children when their fathers unexpectedly die, she had to step up and help her mother with the family, and in her case as is in some cases she has to be the parent. While I understand Katniss’s frustration over her mother’s actions after her father’s death, this is her reality and she deals with it and takes care of her family. The very first example of this new parental role in the book is the when Katniss narrates â€Å"The last thing I need is another mouth to feed† (3). Already we are seeing Katniss as the parental provider, she doesn’t say that the cat is the last thing they need, she says it’s the last thing she needs. Then she goes into talking about preparing the food, she has killed. Using the hunting skills her father had taught her, although hunting is considered a masculine activity, she hunts to feed her family to supplement their food stores due to shortages. Any spoils from her hunts left after supplying her family she sells in the â€Å"Hob† the black market (5), earning money to support her family as a father would. Even before the games begin Katniss begins to show concern for this young  girl Rue another tribute, maybe it is Rue’s age she was after about the age of Katniss’s little sister Prim. During the games there is a point where Katniss thinks that one of the kills she heard could have been Rue, you can hear the concern in her thoughts. In a game of survival where everyone is your enemy, Katniss bonds with Rue and tries to protect this little girl. They snuggle together for warmth at night and teach each other to survive by day. When Rue is killed Katniss with an almost maternal rage immediately kills Rue’s killer, this is the first actual kill for Katniss. Then she defies the rules and morns the death of Rue having a makeshift funeral for her and a song from Rues district. This was definitely a turning point for Katniss, she once again in her life had to block out emotion and focus on survival. At this point it was no longer a game of evasion for her it turn to a kill or be kill. Never the less, she maintained her compassion. Which was evident with Peeta, even though she was not sure of his truest intention when he was injured and being hunted she cared for him and protected him. Any other tribute may have left him for dead, but she didn’t. She tended to his wound, feed him, and defended him from the careers that were out to kill him risking her own life. Her actions are like that of an eldest child caring for younger or helpless needy siblings, I know personally I treat everyone in need of help as if they were one of my younger siblings. These are not traits of gender reversal these are traits of a protector a provider a parent. When our children wrong us we forgive and still focus on their protection and safety. When our children are in danger we find amazing strengths we never knew we possessed to protect them. When they hunger we find a way to feed them. Most importantly we survive the harshest of times, overcome the greatest of obstacles and sacrifice ourselves to return to those who need us most. Katniss is no different all she did she did to return to her family to ensure their survival. Without the parental traits she possesses the outcome of the Hunger Games may have been very different. But because of these traits she not only will return to her family she has saved Peeta’s life and may have changes life in Panam for ever.

Friday, January 3, 2020

The French Expression Cest le pied

The French expression cest le pied means that something is great, terrific. This positive meaning of pied is left over from old slang, in which it referred to ones share of the loot. Cest le pied can also be negated: ce nest pas le pied and—even more familiarly—cest pas le pied mean its no good, no picnic, no fun. Ne is often dropped in informal/familiar French. Expression: Cest le piedPronunciation: [say leu pyay]Meaning: its greatLiteral translation: its the footRegister: familiar Examples of Using Cest le Pied Tu dois voir ma nouvelle bagnole - cest le pied  !   Ã‚  Ã‚  Youve got to see my new car - its great!   Travailler de nuit, ce nest pas le pied.   Ã‚  Ã‚  Working nights is no picnic. Synonymous expression: quel pied ! (But be careful, because that can also mean what an idiot! Context is everything.)Related expression: prendre son pied - to get ones kicks, enjoy doing (particularly when talking about sex)