Skip to main content

let's learn java today..

java(it’s hot!!)

as you know in the market java is very popular.why java is hot now a days..??i’ll explain but before that will review the history of java so that we can understand the importance of this “hot cake”.

history of java:

java came in to picture in 1990s when c++ was very popular all over the world.the only disadvantage with c++ is c++ is platform dependent.so to solve this problem java came into picture.so what is platform independent and what is platform dependent.

platform dependent and platform independent??

during the execution of any program the “cpu” or “micro processor ” will expect that the language compilation and the election platform must be same.so these kind of programing language is called platform dependent language.
ex:
if program is written in windows platform that object file must be executed only in windows platform.ex:c,c++
so what is platform independence ..yeah exactly opposite to this.during the execution of the program microprocessor will check for compilation platform and execution platform.platform independent programming is such a language that can be edit in any platform and can execute in any platform.such a programing language is called platform independent language.ex:java
ex:

so can we achieve platform independency in java??

in java platform independency can be achieved by jvm(java virtual machine).when a java program is compiled, the java compiler would produce “byte code” as output.these byte codes such codes which are neither in hll nor in mll.they are in between both.hence they also called as “inter mediate level code”
these are secure and platform independent.hence bytecodes are the best suite codes to be transport over the internet.
jvm is a software which accepts byte code as an input and converts it into machine code.

 why java is popular??

  • java is the platform independent 
  • as per 2010 java was open source
  • it can be freely downloadable
  • easy coding
  • occupy less memory

what are the disadvantages of java??

java is relative slow in execution when compared to c and c++.because a HL java program is not directly converted into MLL.because of this addition step involved in the conversion of HL java in to MLL java is reltively slow in execution.
so today we will see “what is object? and what i object orientation in java?so what is firstly orientation ?we can say that orientation is “the way how we see something”
for example a water can be viwed in many way by people.
this glass of water can be defined by chemist that half water  and half gass..the optimist analys that as its a chance of 50%.there by the prespective.object orirntation is the prespective of looking at this world as a collection of object .
rules of object orientation:
1)the world is the collection of object.
2)no object is useless.every object is usefull
3)every object is in constant interation with every other object no object is in isolation
4)every object belongs to a type.though type dosnt exixts in reality,what exists in reality are its object.type is technically called as”class”.
5)every object has 2 part
1.has:it rffers to the properties of an object.in java it is handled using he concept called data type.
2.does:it reffers to the behavior of an object.it is handled using the concept called “method”
hope you like this content…

Comments

Popular posts from this blog

New Mexico State's first graduating class in 1893 had only one student—and he was shot and killed before graduation.

Sam Steel Way was named for a young man who would have been the first graduate of NMSU, then known as New Mexico College of Agriculture and Mechanic Arts, had he not been murdered in 1893. Steel was shot and killed on March 9 of that year in what today is known as Mesilla Park. The 17-year-old was the son of a prominent Mesilla Valley family and a nephew of local Judge John McFie, who helped found the college. Steel began attending the college at age 13.                                             According to an article in  The New Mexico Collegian , a monthly publication of the Columbian Literary Society, Steel was delivering milk at the time of his murder. An excerpt from the article read:                                          "The hearts of the whole community w...

Why number 108 is holy and auspicious in Hinduism?

Hinduism is a way of life. Hinduism is the only religion that is pro-science from early ages. Hinduism is An Atheist at the same time as it is Polytheist at the same time as it is Monotheist  as well as henotheistic. The number 108 is very special for followers of hinduism.Number 108 has its own significans. vedic sages used the term"shri 108" to represent yogis,divine and gurus. many Indians crave for 108 in their mobile number.Its importance is so much rooted  hinduism that mobile companies has made a business of selling mobile numbers having 108. Have you ever been asked to chant a mantra for 15 minute or 100 times,a rounded figure?The obvious question arieses why 108? The answer lies in vedic cosmology.108 represent our universe and whole of our existence. The abstract defination of 108 1-stands for superme truth o god consciousness. 0-stands for nothing or void. 8-stands or eternity or infinity.rotate 8 by 90 drgree either ays,you get the symbol of ...
The average person has 3 to 5 best friends,and usually hates one person in their social group..