Home     Blog

Linear Search

Linear Search

This method traverses a list sequentially to locate the search key. The algorithm that one chooses generally depends on the organization of the array elements. If the elements are in random order, then one should choose the linear search technique. Algorithm linearsearch (a,n,item,loc) Here "a" is an array of the size n. This algorithm finds the location of the element "item" in the array "a". If search item is found, it sets loc to the index of the element;

[ read more ]

Dijkstra Algorithm

Dijkstra Algorithm

Dijkstra algorithm gets its name from the Dutch computer scientist Edsger Dijkstra who invented this algorithm in 1959. It is used to find the shortest path between two non-negative nodes in a graph. Dijkstra algorithm is widely used for the purpose of routing. For any giving node in a graph the algorithm finds the path which is the shortest from that node to all the corresponding nodes in the graph. As stated earlier also that this algorithm is used to find the shortest path between two distin

[ read more ]

Throw and Catch Mechanism

Throw and Catch Mechanism

Throw Mechanism When an exception, which is desired to be handled, is detected, it is thrown using the throw statement. It can be used in any one of the following form: throw(exception) ; throw exception ; throw ; // used for re-throwing an exception The object passed to the throw statement may be of any type, including constants. It is also possible to throw objects not intended for error handling. When an exception is thrown, it will be caught by the catch statement associated w

[ read more ]

Uninstall Java

Uninstall Java

Java is created to operate in the distributed environment on the net. It is much easier to use compared to C++. Java functions are based on the object-oriented programming model. You can use it for online video, audio, games, banking applications and chat. It is also used in various intranet applications. Microsoft Java was first developed for Internet Explorer 3. This was the fastest implementation of JVM (Java Virtual Machine) for the first couple of years after Java release. The creator o

[ read more ]

Debugger

Debugger

A debugger is a type of software that allows a programmer to view every step a program takes in real-time. While a debugger will cause a program to run extremely slowly, it will allow a programmer to start and stop a program at any given time and modify the variables or actions that it takes while performing those actions. Debuggers allow programmers to prevent programs from performing undesired actions and are, as the name suggests, ideal for “debugging” a program. How Debuggers Work

[ read more ]

Java vs. JavaScript

Java vs. JavaScript

Java and JavaScript are two different programming languages which have similar names and share similar syntax. Java is a complete object oriented programming language which is designed to create applets or stand-alone applications. JavaScript is a more simple programming language which is designed to create scripts for use on the World Wide Web. Java bytecode is executed by the Java Virtual Machine. JavaScript scripts are interpreted by JavaScript-aware web browers, such as Firefox and

[ read more ]

Jar File

Jar File

A jar file is a Java Archive. A jar file is a collection of class files. The jar file standard is based upon PKZip. In fact, you can open .jar files with a normal unzip program! A jar archive should contain a file called Manifest.mf which tells the Java Virtual Machine which class file contains the main method.

[ read more ]

Java Variables

Java Variables

An instance variable is a variable that is related to a single instance of a class. Each time an instance of a class is created, the system creates one copy of the instance variables related to that class. An instance variable is declared inside a class, but not within a method. A variable that is defined inside a class and a method is known as a local variable. The opposite of an instance variable is a static variable, also referred to as a class variable. A static variable exists across

[ read more ]

How Do I Enable Javascript on My Computer?

How Do I Enable Javascript on My Computer?

To promote a better experience on different websites, owners of these websites use JavaScript. However, there are instances where JavaScript gets disabled and some of the different components on the site can't be experienced because of this. Enabling JavaScript is different for each web browser, but all of it takes about a minute to complete. Once you're done, simply restart the browser and JavaScript will be enabled. Enabling JavaScript on Internet Explorer To enable JavaScript on I

[ read more ]

JDK (Java Development Kit)

JDK (Java Development Kit)

The JDK is the Java Development Kit. The JDK consists of the Java compiler and related tools which enable users to create applications in Java. Sun distributes the JDK as part of J2EE, J2SE, and J2ME. Java Video Tutorial 1: Installing the Java Development Kit This tutorial is the first of a collection of basic java video tutorials that will get you started. In this tutorial you will learn how to install the JDK on a Windows XP machine. {youtube}v/ue3bhCZ60Jk{/youtube}  

[ read more ]

Page 1 of 151234Last »