Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Friday, 15 February 2013

Decision Table


Decision Table is the tabular representation of logic and decision.Sometime it is very difficult to create a flowchart for many condition,so at that conditions we used Decision table.So Decision table is a table which is used to create complex program logic of system/software.

Decision Table is divided into 4 parts:-


1)Conditions


2)Actions


3)Condition Entries


4)Action Entries


Type of Decision Table:-


1)Limited Entry Table(Action and statement are full)


2)Mixed Entry Table(Action and statement are partially full)


3)Extended Entry Table(Action and statement are not complete).


Sample/Example of decision table(Format):-


Condition Rule 1 Rule 2 Rule 3 Rule 4
Joy's Play Y Y N
Jame's Play N Y Y
Rome's Play Y N Y
Actions


Joy's Play X X

Jame's Play
X X X

Advantages of decision table:-

1)Very simple to create.

2)Easy to understand.

3)Easy to convert into computer program.

4)Table can be split.

5)We can change table according to requirements.

Disadvantages of decision table:-

1)In Simple conditions,flowchart will be beneficial.

2)When to many condition,action than decision table can not list them.

Related posts:-

1)Data Dictionary.
2)Decision Tree.


That's all about what is decision table testing technique,if you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Saturday, 9 February 2013

Rapid Application Development


Rapid Application Development or RAD is a system model methodology which is used to developed system software.RAD provide quick development of system.In RAD,we also used JAD technique(Joint Application Development).In JAD  all customer,manager,system analyst are participate in the same work of development and design

Advantages of RAD model:-

1)RAD is high speed model.

2)Provide good support to system and its phases/stages.

3)Used in small systems.

4)Reusablity of system.

5)It used case tools.

Related Posts:-

1)Incremental Model.
2)Spiral Model.
3)Waterfall Model
4)Joint Application Development
5)Prototyping Model.


If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Wednesday, 6 February 2013

Distributed System


Distributed System or Distributed Computing System are those systems which are very cost effective.In distributed system all links are distributed at multiple sites.In this system,all the nodes are interconnected to each other.Example:-cyber cafe type environment.

Advantage of Distributed System:-

1)Very cost effective.

2)Response time is very less.

3)It is reliable.

4)It is flexible.

5)Most of the time result will good.

Disadvantage/Limitations of Distributed System:-

1)Security concern.

2)Maintenance problem.

Related posts:-

1)Open System
2)Closed System
3)Abstract System
4)Physical System
5)Manual System
6)What is system and its type.
7)Real Time System.
8)Automated System.

That's all about Introduction/coarse of distributed system with its definition,If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Real Time System


Real Time System are those systems which are analyse,monitor the real world event.As a name suggest real time system works in real time environment.

Real time systems can complete their work at a specified time period but it was not sure whether our work should be o.k. or not.Let us take an examples:-

->Example of Missile Launching:-This program should done in specified time period but we don't know whether our result is positive or negative.

->Example of bomb testing:-Like as above example.

->Train Timing(Embedded from its source to destination):-If we fail in some process,may be loss/crash of trains.


Related posts:-

1)Open System
2)Closed System
3)Abstract System
4)Physical System
5)Manual System
6)What is system and its type.
7)Distributed System.
8)Automated System.


That's all about what is real time system(its definition),If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Sunday, 3 February 2013

Delegate


Delegate is similar to interface,but the main difference between delegates and interface is delegate created at runtime whereas interface created at compile time.Delegate is also called as safe  function pointers.Or a simple definition of delegate is function which call another function.

Syntax includes:-

->Declaration
->Instantiation
->Method define
->Invocation

Now we take an example:-

Delegate in c #(c sharp),java calls more than one function.

namespace console application 23
{
delegate int multiply-divide(int x,int y)
class md
{
public static int multiply(int a,int b)
{
return(a*b);
}
public static int divide(int a,int b)
{
return(a-b);
}
}
class program
{
static void main(string[],agrs)
{
multiply-divide obj=new multiply-divide(md.multiply);
multiply-divide obj1=new multiply-divide(md.divide);
int ret1=obj(12,55);
int ret2=obj1(30,10);
Console.WriteLine(+ret1);
Console.WriteLine(+ret2);
Console.Read();
}
}
}

That's all about Delegate and its definition(meaning,means).If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.


Saturday, 2 February 2013

Sealed Class and its Method


Sealed class are those class which can not be treated as sub class or child class.Sealed class can not be abstract classes.It is used in c sharp,java etc.

Syntax:-

sealed class xyz
{
.
.

.
.
}

Sealed Method:-Sealed method are the methods which are widely used in c#,java etc.It is used to override virtual function with the same signature.

Example:-

class X
{
public  virtual void function()
.
.
.
}
}
class Y:X
{
public sealed override void function()
{
.
.
.
}
}
class Z:Y

{
public sealed override void function()
{
.
.
.
}
}



If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Abstract Method(In short)


Abstract Method are the methods of the abstract class.Abstract method is only declare in abstract class.It can't take static and virtual modifier.It can be override.Abstract Method is used in c sharp(c#),java etc.

Syntax:-

class<Name of Class>:Function
{
override public void function()
{
.
.
}
}

If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Abstract Class


Abstract Class is the special class which is widely used in java,c sharp(c#) etc.If we want to made abstract class in our program then we declared keyword abstract before class name.Abstract class support the concept of inheritance.

Syntax:-

abstract<Name of Class>
{
.............
.............
.............
}
Functions-1();
Functions-2();
Functions-3();
}

Example (In c #):-

abstract class student
{
public abstract void read();
public abstract void write();
public abstract void show();
}
class student:student
{
........
........
........
}
.
.
.
(SAME AS OTHER CLASS)
.
.
.
class program
{
static void main(......)
{
Object Creation;
Function Calling;
}
}


That's all about Abstract base Classes.If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Thursday, 31 January 2013

Destructor


Destructor:-Destructor is the member function of the class whose work is to destroyed the object that was created by constructor.

Important Properties/characteristics of Destructors:-


1)It always declare in public.


2)Destructor name is same as name of class.


3)Proceed with ~(tiled) sign.


4)It is the member function of class.


5)It has no parameter.


6)It is used to de-allocate the memory.


7)Destrcutor Overloading is not possible.


9)Destructor concept used in many languages like c ++(c plus plus),java,c#(c sharp) etc.


Example of Destructor(in c++):-Now I explain destructor example in c++ but you can also creat it with c sharp(#)(in place of cout puts Console.WriteLine and in place of cin puts Console.ReadLine) as same as like java(But some concept are different).



class stud

{
int stud-id;
public:
stud()
{
stud-id=1;
}
void show()
{
cout<<stud-id;
}
~stud()
{
cout<<"I AM DESTRUCTOR";
}};



If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Wednesday, 30 January 2013

Parameterized Constructor


Parameterized Constructor:-Parametrised Constructor are the constructor that have more than one argument.It is used in c ++,java,c#(c sharp) etc.

Example of Parametrised Constructor(in c++):-

#include<iostream.h>
#include<conio.h>
class number
{
int x,y,z;
public:
number(int a,int b)   
{
x=a;
y=b;
}
void sum()
{
z=x+y;
cout<<z;
}};
void main()
{
class no(20,30);        //object
clrscr();
no.sum();
getch();
}



If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Copy Constructor


Copy Constructor:-Copy Constructor are the constructor that have one argument of the object of same class.Copy constructor is used in c ++,java,c#(c sharp) etc.

Example of Copy Constructors(in c++):-

#include<iostream.h>
#include<conio.h>
class number
{
int a,b;
public:
number(int x,int y)     
{
a=x;
b=y;
}
number(number &n)    //copy constructor 
{
a=m;
b=m.b;
}
void display()
{
cout<<a<<b;
}};
void main()
{
number m(20,49);
m.display();
number m1(m);
m1.display();
getch();
}



If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

Default Constructor


Default Constructor:-Default Constructor are the constructor that accept no parameter or 0 parameter.Default constructor is used in c ++,java,c#(c sharp) etc.

Example of Default Constructors(in c++):-

#include<iostream.h>
#include<conio.h>
class swap
{
int x,y;
public:
swap()          //default constructor
{
x=10;
y=20;
}
void swap()
{
x=x+y;
y=x-y;
x=x-y;
cout<<x<<y;
}};
void main()
{
class sw;        //object
clrscr();
sw.swap();
getch();
}


If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.


Constructors


Constructor:-Constructor is the member function of the class whose work is to initialised objects.

Important Properties/characteristics of Constructor:-


1)Constructor declare in public section.


2)Constructor don't have return type.


3)Constructor can not be virtual type.


4)Constructor is used to allocate memory for variables.


5)Constructor is member function of class.


6)Constructor name is same as name of class.


7)Class may have more than 2 Constructor.


8)Constructor may be parametrised and copied.


9)Constructor concept used in many languages like c ++(c plus plus),java,c#(c sharp) etc.


Type of Constructor:-


1)Default Constructor.

2)Copy Constructor.
3)Parameterized Constructor.

Example of Constructor(in c++):-I explain Constructor example in c++ but you can also created it with c sharp(#)(in place of cout puts Console.WriteLine and in place of cin puts Console.ReadLine) as same as like java.(But some concept are different)


#include<iostream.h>

#include<conio.h>
class number
{
int x,y,z;
public:
number()   
{
x=20;
y=40;
}
void sum()
{
z=x+y;
cout<<z;
}};
void main()
{
class no;        //object
clrscr();
no.sum();
getch();
}


If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.