JAVA and JAVA SCRIPT

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    JAVA and JAVA SCRIPT

    Java was introduced by SUN MICROSYSTEM which was one of the best language ever made.Earlier JAVA was known as OAK and later on it was changed to the JAVA Programming Language.
    JAVA used web browse to run the programs.JAVA has both compiler and interpreter.This helps to make the JAVA as a robust language.It is based on object oriented programming concept.This concept is basically used by other languages also, like c++, c#, etc.
    JAVA helps in building security of the system, the system in which JAVA is loaded and also having internet connected to it will contract less crashes due to virus or bugs.

    JAVA has work with the Web Browser Netscape Navigator or Apache.
    JAVA is used to create graphics by using APPLET.
    It can be created by following method:
    import java.applet.*;
    <applet code="anyname.cl***" height=500 width=500>
    </applet>
    this code is written to make the window of the APPLET VIEWER
    APPLET VIEWER is used to display the output to the user.

    write the code:
    public static anyname extends Applet
    {
    public static paint(Graphics g)
    {
    g.drawstring(10, 10, "Hello");
    }
    }

    cl*** name anyname extends the Applet package which is already stored in the system with the JDK (Java Developers Kit) which should be present in the system so as to work with the JAVA programming language.

    this will result in the output "Hello"
    10, 10 is the x axis and y axis from the screen of the computer.

    JAVA SCRIPT
    JAVA SCRIPT is used as a client side scripting.
    For JAVA SCRIPT we should have JSP loaded in the system where the JAVA has been stored.

    In JAVA we can write the programs to act as server side and as well as client side.
    We can create the client side and server side sockets and provide Port, we can use TCP/IP (it is a cnnection oriented protocol networking protocols stands for Transfer Control Protocol and Internet Protocol) and UDP (also a networking protocol stands for User Data Gram Protocol it is connectionless internet Protocol).
    It is a very vast language and hard to explain in few lines.
  • Guest

    #2
    That is good information.
    But can you tell me the difference between the java and javascript.

    Comment

    • sonia sharma
      Senior Member
      • Jul 2015
      • 156

      #3
      Nicely Explained both the terms. Thank you Anjali For sharing the information.

      Comment

      • jatindersingh
        Member
        • Sep 2014
        • 52

        #4
        thanks for sharing

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎