what is java

Java is a programming language released by Sun Microsystems in 1995.java contains many features possessed by c and c++ since its developed after those programming but is most dependent on the features that c++ had ,some says like java is the advance face of c and c++.

java is said as WORA means write once read any where means once the java programme is written and compiled the code can be executed in any machine with any architecture.

Do you know why its called as write once read any where.Look at the diagram given below and i have also described it.

We write the code in java with the extension  .java and as soon as the code is compiled by the compiler and if there’s no error in the code than automatically a file is made with the same name for the java file but with the extension .class.The java virtual machine uses the class file and converts that class file into the code depending upon the system we are going to run that programme so user does not have to worry about the variation in the operating system and the hardware .JVM is simply a software that allows to create a code that will support on the system.Thus we can say that the java code are compiled and interpreted .

so with java we can make any desktop application ,console application the term console means it will be running on the command prompt the black screen we see after running cmd prompt,web application that runs on the website and most importantly the distributed application.

Posted in ..BASIC.. | Tagged | 2 Comments

what is java script

Before knowing what java script is let me provide a short definition of what script means, scripts are the short programs written to enhance the functionality and appearance of the web page.Its called java script since its written using  java codes.It is based on object oriented concept.

There are two types of scripting languages based on where do they exists or run as shown in the figure below:
java scripts is one of the scripting language that runs on the client machine rather than running from the code through the server  thus making the response of the request faster than running the code through server machine .

Simple example of embedding java script into html document:

1.   <html><head>java script</head>

2.<script language=”javascript” type=”text/javascript”>

3.  window.document.write(“hellow world”);




Description of above code:

line n0 2.tells the browser that the java scripting has begun .the code must be written inside the tag<script>…..java script </script>

line no3.is simply use to display the text “hellow world ” in the browser.





Posted in ..BASIC.. | 1 Comment