Monday, 29 July 2013

Algorithm and program for Binary Search.

Binary search or half-interval search algorithm compares the  element to be search(i.e key) with the middle element of the array.  If the key is matched with the middle element ,it returns its  position.and if not it divides the array into sub array according to  the value of key.  If the key value is greater than the value of middle...

Sunday, 28 July 2013

Program to implement Stack in C

/* Write a program to implement stack in C. Stack is a LIFO data structure * * LIFO - Last in First Out * * Perform PUSH(insert operation), POP(Delete operation) and Display stack */ #include <stdio.h> #include <conio.h> #define MAX SIZE 5 struct stack /* Structure definition for stack */ { int stk[MAXSIZE]; int top; }; typedef struct stack STACK; STACK s; /* Function...

Saturday, 27 July 2013

Top wesbites to learn Java

Wish to create your software games and web applications .Here i suggest some resource for you. Now you habe to practice the things which you read theoretically. It will help to sharp your skills .Apart from us LANG-ADDA there some more website to learn java. Top 5 website http://docs.oracle.com/javase/tutorial http://thenewboston.org/tutorials.php http://javabeginner.com/ http://javalessons.com/ http://w3schools.com/js/ The Sites are;- http://www.javaalmanac.com -...

Introduction to computer networks

                     :: Introduction to computer networks:: Physical Component-  A no. of Hardware component are required to built a computer network devices -  1) End Devices  2)Physical cables  3)Hub.-Broad casting  4)Switch - uni casting  1)End Devices - These are the user consoles using which a user access network services e.g desktop.laptops...

Pointers in c

 A pointer is an address. Instead of  a variable, it is a pointer to a variable which is  stored somewhere in the memory of the program. Let  examine the a program [POINTER.C] which has some pointers to understand the concept of pointers. C Programming ...

Access modifers in java

 Java's access specifiers are  : - 1. Public, 2. Private, 3.Default, and 4.Protected.  Java also defines a default access level. protected applies only when inheritance is involved. The other access specifiers public  and private is described from below diagram. ...

Relationship in java

                                                                     RELATIONSHIPS IS-A  ...

Friday, 26 July 2013

Multithreaded programming in Java

java  supports  multithreaded programming. A multithreaded program contains more than one part that can run parallerly. Each part  is called a thread, and each thread defines a separate way of execution. The another term related to threads is process: A process consists of the memory space which is allocated by the operating system that can contain...

Thursday, 25 July 2013

Inheritance in JAVA

Inheritance is a process in which a class acquiers the properties as well as behaviour of another class. In this, the class which acquires the properties is called Subclass and the class from which subclass acquires the properties is called Superclass. Here  Bicycle is a Superclass And all other class is its sub classes  which  inherits...

Monday, 22 July 2013

Data types in java

  Primitive Data type in JAVA    Primitive data type can divided into three main categories:                                       Integral  Types à used for signed integer  (byte short,int ,long) and unsigned character values(char).         Floating point Types à used for fractional...