Sunday, 26 October 2014

Reading data from an HTML table using JavaScript

This example demonstrates how data in an HTML table can be read using JavaScript which can further be used for submitting to a server side script.

In this example, we first get the reference of the table using  the function call
var table = document.getElementById('productlist'); 
Then loop through each row of the table.
Each time data read from a cell is added to a string separated by a delimiter ( here we used "," ).
Finally the data read is displayed by using alert() function.

Entire code of this example is given below:

Friday, 17 October 2014

Use of final keyword in Java

In Java, the keyword final can be used in various contexts.  In all contexts, it prevents the modification or redefinition of the existing entity whether it is a variable, function or a class. Generally final keyword is used for the following purposes.

1.    To define constants
2.    To prevent overriding of methods
3.    To prevent inheritance

final keyword to define constants

If you want to define a constant, you can use the final keyword while declaring a variable and make it a constant.

PI is defined as a constant in the following example.

Thursday, 16 October 2014

Interface in Java

An interface can be treated as a class which contains only abstract methods (methods without body) and constants.  Interface is defined using the Java keyword interface. A class implements an interface by providing code for each method declared by the interface. By this mechanism an implementation rule or protocol is imposed on all classes they are implementing a particular interface or interfaces.

Sunday, 5 October 2014

Goodbye to Orkut!


 Google has  downed its social networking website Orkut  on September 30, 2014 and made the end of a 10-year run.

 Google says Goodbye to Orkut!

Recursive Function in C Language

Recursion is a method used to solve some problems where the solution depends on solutions to smaller instances of the same problem. The approach can be applied to types of problems for which solution can be represented recursively.

Friday, 3 October 2014

New Windows is Windows 10

Microsoft has disclosed that Windows 10 will be the next version of Windows. Windows 10 offers new experiences for customers to work, play and connect.

Windows 10 will run on broad set of devices like Mobile Gadgets, PCs and even Servers. And it is designed to use touch/pen, mouse/keyboard and controller/gesture.

And for all these devices, Microsoft provides uniform platform for application developers..
Microsoft includes the nostalgic start menu again in Windows 10 which was lost in Windows 8.

Thursday, 2 October 2014

What is an ER Diagram and how to draw it?


ER Diagram or Entity Relationship Diagram is a tool used to graphically represent the relational model of a database schema. It is a very important and useful tool that can be used in the Database Design phase of software development process to represent entities, relations, attributes, multiplicity, participation and constraints identified.  Various icons and notations are used to represent entities, relationships, attributes, multiplicity, participation and constraints are discussed below.