EVEN JAVA HAS AN INTRO STATEMENT
EVERYTHING HAS AN INTRO, AND SO DOES JAVA
According to the java language specification document: the java programming language is a general-purpose concurrent class-based object-oriented programming language, specifically designed to have as few implementation dependencies as possible.
We’ll pick the points out with tooth-picks, assuming you swallowed that mouthful.
- general-purpose: java first started as oak, designed for use in embedded consumer-electronic applications by James Gosling. It was retargeted to the internet and baptized Java after several years. It is meant to be a production language, not a research language and related to C and C++ with ideas from other languages included. Java has grown over the years to incorporate many features that the java designers can proclaim java to be “everywhere”, even on your mobile devices.
- Concurrent: as a concurrent language, you can execute many threads of action at once using a single processor, or by time-slicing your processors, execute different threads from different processors or simply, as every beginner like you and I, just write a simple program that runs on one process and one thread.
- class-based: Imagine a zoo where you have sections for the lions, the zombies and the monkeys. If two monkeys share a cage, Boodoo and Davoo, I bet you there are two banana munching monkey-objects in that cage. Classes define attributes and behavior shared by objects born or instanced from that class but those objects can carry out that behavior in different ways; they have the right to be different.
- object-oriented: objects are things with state and behavior. You reading this book is a person-object who has state, like your name, your financial status, the one you love, your state of origin and you have behavior, like, what you think about your name, how you spend your money, how your babe demonstrates her love to you and whether you’ll fight to make sure you remain in lagos state than going to the village. Everything you do in java, you’ll do it with objects.
- programming language: you guess what this means, am sure you didn’t think it was just a function that accepts inputs from itself and/or the outside world to give outputs of value to itself or its environment, with laws and regulations as to the meaning and acceptable forms of inputs, outputs and ways of processing the two.
- few implementation dependencies: yeah, java was designed for the internet and on the internet there are lots of operating systems (OS) with lots of hardware configurations. Java saves you the trouble of learning the application programming interface (API) for particular OS platforms by compiling the programs you write as byte codes which can easily be run through the java virtual machine (JVM) on any underlying platform.
Along with the definition given by the authors of the java language above, when you write and implement java as a language, you’ll discover it relies strongly on the types of your classes and objects and you don’t have to worry about the byte codes aspect because Java is a high level language.
No comments:
Post a Comment