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

the truth behind hindhu myth...

                    Joining Both Palms together to Greet In Hindu culture, people greet each other by joining their palms – termed as “Namaskar.” The general reason behind this tradition is that greeting by joining both the palms means respect. However, scientifically speaking, joining both hands ensures joining the tips of all the fingers together; which are denoted to the pressure points of eyes, ears, and mind. Pressing them together is said to activate the pressure points which helps us remember that person for a long time. And, no germs since we don’t make any physical contact! just watch it.....
Prime Minister and Council of Ministers - India   Union Council of Ministers 1. Personnel, Public Grievances and Pensions, Department of Atomic Energy, Department of Space, All important policy issues and All other portfolios not allocated to any Minister ---------------------------Narendra Modi Cabinet Ministers 1 Home Affairs ------------Raj Nath Singh 2 External Affairs------------Smt. Sushma Swaraj 3 Finance, Corporate Affairs --Arun Jaitley 4 Urban Development, Housing and Urban Poverty Alleviation, Information & Broadcasting--------M. Venkaiah Naidu 5 Road Transport and Highways, Shipping-----Nitin Jairam Gadkari 6 Defence --------------------Manohar Parrikar 7 Railways --------------------Suresh Prabhu 8 Statistics & Programme Implementation -------D.V. Sadananda Gowda 9 Water Resources, River Development and Ganga Rejuvenation -----------------Sushri Uma Bharati 10 Consumer Affairs, Food and Public Distribution----Ramvilas Paswa...

do you heard about waste plastic road?

waste plastic and polymer glues road in "india"                                                                     yeah..exactly these roads are made by waste plastic and polymer glues... Jambulingam Street , Chennai, is a local legend. The tar road in the bustling Nungambakkam area has weathered a major flood, several monsoons, recurring heat waves and a steady stream of cars, trucks and auto rickshaws without showing the usual signs of wear and tear. Built in 2002, it has not developed the mosaic of cracks, potholes or craters that typically make their appearance after it rains. Holding the road together is an unremarkable material: a cheap, polymer glue made from shredded waste plastic. Jambulingam Street was one of India’s first plastic roads . The environmentally conscious approach to road construction was d...