Search results for 'java' in Knowledge

We've found '617' results.

Java

All core java programming

Java program to get IP Addresses

import java.net.InetAddress; class IPAddress {   public static void main(String args[]) throws Exception   {     System.out.println(InetAddress.getLocalHost());   } }

What is the importance of HTML and CSS in web development?

This file tells the importance of the html, css and javascript in the web development. Also explains each term in detail with pictorial example.

JavaScript

JavaScript - Overview What is JavaScript?JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.The ECMA-262 Specification defined a standard version of the core JavaScript language.JavaScript is a lightweight, interpreted programming language.Designed for creating network-centric applications.Complementary to and integrated with Java.Complementary to and integrated with HTML.Open and cross-platformClient-Side JavaScriptClient-side JavaScript is the most common form of the language. The script should be included in or referenced by an HTML document for the code to be interpreted by the browser.It means that a web page need not be a static HTML, but can include programs that interact with the user, control the browser, and dynamically create HTML content.The JavaScript client-side mechanism provides many advantages over traditional CGI server-side scripts. For example, you might use JavaScript to check if the user has entered a valid e-mail address in a form field.The JavaScript code is executed when the user submits the form, and only if all the entries are valid, they would be submitted to the Web Server.JavaScript can be used to trap user-initiated events such as button clicks, link navigation, and other actions that the user initiates explicitly or implicitly.Advantages of JavaScriptThe merits of using JavaScript are −·       Less server interaction − You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.·       Immediate feedback to the visitors − They don't have to wait for a page reload to see if they have forgotten to enter something.·       Increased interactivity − You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.·       Richer interfaces − You can use JavaScript to include such items as drag-and-drop components and sliders to give a Rich Interface to your site visitors.Limitations of JavaScriptWe cannot treat JavaScript as a full-fledged programming language. It lacks the following important features −·       Client-side JavaScript does not allow the reading or writing of files. This has been kept for security reason.·       JavaScript cannot be used for networking applications because there is no such support available.·       JavaScript doesn't have any multi-threading or multiprocessor capabilities.Once again, JavaScript is a lightweight, interpreted programming language that allows you to build interactivity into otherwise static HTML pages.JavaScript Development ToolsOne of major strengths of JavaScript is that it does not require expensive development tools. You can start with a simple text editor such as Notepad. Since it is an interpreted language inside the context of a web browser, you don't even need to buy a compiler.To make our life simpler, various vendors have come up with very nice JavaScript editing tools. Some of them are listed here −·       Microsoft FrontPage − Microsoft has developed a popular HTML editor called FrontPage. FrontPage also provides web developers with a number of JavaScript tools to assist in the creation of interactive websites.·       Macromedia Dreamweaver MX − Macromedia Dreamweaver MX is a very popular HTML and JavaScript editor in the professional web development crowd. It provides several handy prebuilt JavaScript components, integrates well with databases, and conforms to new standards such as XHTML and XML.·       Macromedia HomeSite 5 − HomeSite 5 is a well-liked HTML and JavaScript editor from Macromedia that can be used to manage personal websites effectively.Where is JavaScript Today?The ECMAScript Edition 5 standard will be the first update to be released in over four years. JavaScript 2.0 conforms to Edition 5 of the ECMAScript standard, and the difference between the two is extremely minor.The specification for JavaScript 2.0 can be found on the following site: http://www.ecmascript.org/Today, Netscape's JavaScript and Microsoft's JScript conform to the ECMAScript standard, although both the languages still support the features that are not a part of the standard.

All about JavaScript from basic to advanced.

This file contains about JavaScript definition, Introduction, History, How to run JavaScript?, Advantages, etc.

Iteration Methods

Recurrence RelationA recurrence is an equation or inequality that describes a function in terms of its values on smaller inputs. To solve a Recurrence Relation means to obtain a function defined on the natural numbers that satisfy the recurrence.For Example, the Worst Case Running Time T(n) of the MERGE SORT Procedures is described by the recurrence.T (n) = θ (1) if n=1 2T + θ (n) if n>1 There are four methods for solving Recurrence:Substitution MethodIteration MethodRecursion Tree MethodMaster Method1. Substitution Method:The Substitution Method Consists of two main steps:Guess the Solution.Use the mathematical induction to find the boundary condition and shows that the guess is correct.For Example1 Solve the equation by Substitution Method. T (n) = T + n We have to show that it is asymptotically bound by O (log n).Solution:For T (n) = O (log n) We have to show that for some constant cT (n) ≤c logn.  Put this in given Recurrence Equation. T (n) ≤c log+ 1 ≤c log+ 1 = c logn-clog2 2+1 ≤c logn for c≥1 Thus T (n) =O logn. Example2 Consider the RecurrenceT (n) = 2T+ n n>1 Find an Asymptotic bound on T.Solution:We guess the solution is O (n (logn)).Thus for constant 'c'. T (n) ≤c n logn Put this in given Recurrence Equation. Now, T (n) ≤2clog +n ≤cnlogn-cnlog2+n =cn logn-n (clog2-1) ≤cn logn for (c≥1) Thus T (n) = O (n logn) . 2. Iteration MethodsIt means to expand the recurrence and express it as a summation of terms of n and initial condition.Example1: Consider the RecurrenceT (n) = 1  if n=1        = 2T (n-1) if n>1  Solution: T (n) = 2T (n-1) = 2[2T (n-2)] = 22T (n-2) = 4[2T (n-3)] = 23T (n-3) = 8[2T (n-4)] = 24T (n-4) (Eq.1) Repeat the procedure for i times T (n) = 2i T (n-i) Put n-i=1 or i= n-1 in (Eq.1) T (n) = 2n-1 T (1) = 2n-1 .1 {T (1) =1 .....given} = 2n-1 Example2: Consider the RecurrenceT (n) = T (n-1) +1 and T (1) =  θ (1).  Solution: T (n) = T (n-1) +1 = (T (n-2) +1) +1 = (T (n-3) +1) +1+1 = T (n-4) +4 = T (n-5) +1+4 = T (n-5) +5= T (n-k) + k Where k = n-1 T (n-k) = T (1) = θ (1) T (n) = θ (1) + (n-1) = 1+n-1=n= θ (n).

AJAX: asynchronous javascript and XML

This powerpoint includes the basics of AJAX and how you send a http request and how we receive a http response the powerpoint is made keeping in mind the appropriate and apt points needed to develop a good webpage.

A book of JAVA (The Complete Reference)

Full information Java language with basics and also with core java programming.

Amity ASET java 4cse practical file

Practical files available in the documents attatched below for JAVA students of semester 4. The contents in the file are hand written and contain various experiments. Students of computer science may refer for preparation of practical files. #Amityuniversity

java packages

java packages

Javascript basics

java script basics

Advance Python for Cryptology and Java Connection

This PDF conatins Some Advance Topic of Python. These Topics cover Cryptology and Python Connection in Java.

Jquery code no. 1

jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. As of May 2019, jQuery is used by 73% of the 10 million most popular websites

java server pages

java server pages

Java codes

For more resources please see other content