What is the difference between java and jsp?

前端 未结 4 1187
-上瘾入骨i
-上瘾入骨i 2021-01-05 14:15
  1. are java applets and jsp pages written in the same langue (java)?
  2. is java a language?
  3. Is java used for web or other things as well?

an

相关标签:
4条回答
  • 2021-01-05 14:39
    1. In a way, yes. Java applets are just a special case of Java classes, specifically they are subclasses of the Applet class. JSP is a combination of XML tags and Java code that is dynamically compiled into Java classes by the server.

    2. Yes, Java is a language, but the name also refers to the entire Java platform including the class library and virtual machine.

    3. Java wasn't designed with any specific purpose in mind, and indeed you will find all kinds of programs written in Java. Of course, it does enjoy a good share of the web application market and probably more than any other general-purpose language.

    0 讨论(0)
  • 2021-01-05 14:41

    Simply Java is a Programming language and JSP is a scripting language (server side)

    Java can be used in web sites as Applets JSP is designed to web applications

    Java is inherited from C programming language so it has the same syntaxes and concepts like it

    0 讨论(0)
  • 2021-01-05 14:45
    1. Yes
    2. Yes
    3. It's a general purpose language, it's used for just about everything

    Java is most similar to C#, they're both syntactically similar and get compiled to an intermediate language rather than native code (for Java, it runs on the Java Virtual Machine, for C# it's the Common Language Runtime). JSP is most similar to ASP.

    Java's another programming language, it's also the world's most popular language. Try the wikipedia page for it

    0 讨论(0)
  • 2021-01-05 14:58

    Java applets are written using the Java programming language. JavaServer Pages (JSP) are programmed using a mixture of "scriptlet elements" (Java code) and "markup" (usually HTML or XML) to serve data-driven ("dynamic") web pages.

    Java is a high-level programming language.

    Java is used to write applications for a variety of systems, including NASA vehicles for the exploration of Mars, business-oriented applications and data-driven web pages.

    Java can be compared to programming languages such as Microsoft's C# (modeled after Java) or Objective-C (an object-oriented extension to C) due to the fact that programs written in Java, C# and Objective-C generally depend on a Virtual Machine installed on top of the operating system to execute.

    JavaServer Pages are the Java community's answer to PHP and Microsoft's ASP.

    0 讨论(0)
提交回复
热议问题