Skip to main content

Posts

Showing posts from August, 2019

RAD Model In Software Testing

RAD means Rapid application development.it is used to provide quick delivery of software to the client . Multiple Team will work to analyses, designing, coding, testing and implementation phase. It is similar to the incremental model but the incremental model will be managed by a single team but RAD will work using multiple teams simultaneously. Phases OF RAD:- 1 Business Modeling:- Requirement Gathering and Business Requirement 2 Data Modeling:-  Create Databases and get relevant information 3 Process Modeling:-  Create Integration 4 Application Generation:-  Development 5 Testing & Turnover:-  Testing & implementation of Software project

Canvas

Canvas:-   It is used to create a Container for Graphics and animation in WPF.for application software and forms elements, the canvas will not be used. it also provides multiple dimensions to arrange the element on a particular position on Window. Canvas uses Canvas.left,Canvas.Right,Canvas.Bottom and Canvas.Top property to arrange elements. <Canvas>         <Ellipse Width="100" Height="100" Fill="Aqua" Canvas.Left="100" Canvas.Top="120"></Ellipse>         <Rectangle Width="100" Height="100" Fill="Yellow" Canvas.Left="250" Canvas.Top="120"></Rectangle>     </Canvas>

DOCK PANEL in WPF

DOCK PANEL in WPF:- Dock Panel is used to arrange the child component top, left, right, and bottom. The Dock panel is best in dimension .it will automatically manage the element in left alignment. The default width and height of the Dock element is 100% <DockPanel>         <Button Height="100" Width="100" DockPanel.Dock="Left">1</Button>         <Button Height="100" Width="100" DockPanel.Dock="Right">7</Button>         <Button Height="100" Width="100" DockPanel.Dock="Top">8</Button>         <Button Height="100" Width="100" DockPanel.Dock="Bottom">2</Button>             </DockPanel>

WRAP PANEL IN WPF

WRAP PANEL IN WPF:- This panel Provide Content  Step by Step in the same row when row width will be completed then it will shift the component in new rows. Wrap panel containers mostly used to arrange data row-wise. By default UI Child Component width and height will be auto in Wrap Panel. The wrap panel also contains features for orientation, default orientation of the Wrap Panel is Horizontal and we can create change it to vertical. <WrapPanel Orientation="Vertical">         <Button Width="200" Height="30">1</Button>         <Button Width="200" Height="30">2</Button>         <Button Width="200" Height="30">3</Button>         <Button Width="200" Height="30">4</Button>         <Button Width="200" Height="30">5</Button>     </WrapPanel>

Stack Panel in WPF

Stack Panel in WPF:- It is the Container element of WPF which is used to show the record using vertical and horizontal dimensions. Stack panel display element according to the sequence. if we want to create multiple sub-container then the stack panel will work as the main container. By Default StackPanel has a Vertical orientation and Child Component Contains 100% width and automatic height. if StackPanel has Horizontal Orientation then Child Component Contains 100% height and automatic width.

GRID in WPF

GRID in WPF GRID is the default Container Component of WPF, which is used to represent WPF form elements and layout using Rows and Columns. It is by default integrated by WPF Window Component. <Grid.RowDefination> </Grid.RowDefination> <Grid.ColumnDefination> </Grid.ColumnDefination> <Window x:Class="WpfApp4.Window10"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         xmlns:local="clr-namespace:WpfApp4"         mc:Ignorable="d"         Title="Window10">     <StackPanel>         <Grid Margin="0" Background="Yellow" Height="...

Final Class in Java

This is the special class of java which will never be inherited by any other class. the final class contains all features of class only except inheritance. the final keyword is required in-front of class, method, and variable if we want to provide final keyword then the variable value will be constant, the method can not be override and class can not be inherited. final class Classname {      final datatype variable;      datatype variable;       returntype methodname()       {       }      final returntype methodname()      {      } } NOTE:-   Final class can contain normal variable, normal method, constructor, static, properties and all functionalities of class only can not be inherited. final class A {      final int x=12;      int y;      void fun()      {   ...

Interface in Java

Interface:- it is special component of JAVA which will only contain a set of the abstract method. The interface is also called Pure Abstract Class because it is only for data abstraction. No need to declare any keyword to define abstract, by default all method of interface is public and abstract. interface Interfacename {       datatype identifier=value  //constant with final       return type methodName(); } Interface  = Constant + Abstract Method Advantage of Interface:- 1) Data abstraction:-  we can not create an object of the interface then the actual function can be hidden. 2) Data Contract:-   all methods of an interface must be implemented in class. 3)Multiple Inheritance:-  we can create multiple interfaces and implement into Single Class. The interface method is null hence it not raise any ambiguity problem. Interface to Interface extends keyword will be used Interface to Class imple...

Abstract Class in Java

Abstract Class in Java:- An abstract class is the special class of JAVA which is used to perform Data Abstraction using class. We can not create an object of abstract class hence abstract class never will be accessed directly .it will be accessed by derive class Object. means if we want to hide the complete definition of class then we can create an abstract class. Abstract class contains set of abstract method and normal method both. An abstract method has only contained a method declaration and it will be defined by a derived class. an abstract method will declare under abstract class or interface. Syntax of the abstract method:- access specifier abstract returntype methodname(). public abstract void display(); Syntax of an abstract class:- abstract class Classname {       variable declaration;        normal method;        abstract method;        static method; ...

Prototype Model

Prototype Model In this model first, we get the requirement and prepare the quick design and after that create a prototype that will be evaluated by Client then we will change in design and redefine prototype when the customer will fully be satisfied then we start development. The prototype model will also work for a small project. SDLC Phases 1 Requirement Gathering 2 QUICK DESIGN 3 PROTOTYPE 4 CLIENT Feedback 5 Development

Iterative Model

Iterative Model:- This model has based on client requirement short analyses, then we prepare design and implementation and again show work to clients and analyses for improvement of the project. after multiple steps of design, implementation, and analysis project will be completed. for the small application, we can apply the iterative model. Phases of Iterative Model:- 1 Design 2 Implement 3 Analyses

SPIRAL MODEL

SPIRAL MODEL:- This model provides four different phases for application development, 1 Planning   -----> Requirement gathering of the particular module 2 Risk Analysis ---> it check Risk factor of the project for functionality, security, recovery 3 Engineering -----> It provides coding, deigning of an application 4 Evaluation & Implementation ----> in this step testing team will evaluate the application and implement the application practically.

V-Model

V means Verification and Validation Models .it is used to verify all SDLC phases by Testing Team. The testing team starts work from the initial phase of an application. All phases of the Waterfall model will be implemented into V-Model. It provides better quality and performance for application development. 1 Requirement Specification       ------>  Testing 2 Designing                                 -------> Testing   3 Coding                                     --------->Testing 4 Deployment                             -----------> Testing  5 Maintenance                         ...

OVERRIDING Concept in JAVA

Using this we will create the same name method from base class to derived class only functionality will be different. Overriding will be used to modify the internal functionality without changes on Actual Class. No need to keyword in JAVA only method name and respective parameters should be the same. class  Billing {     int amt;     float total;     void accept(int amt)      {         this.amt=amt;      }      void bill(int p)      {        total = this.amt+p;      }      void display()      {         System.out.println(total);     } } class Billinggst extends Billing {     void bill(int p)     {         total = amt-(amt*.18F)+p;     }    public static ...

Create First Program in JAVA

Software Tool For Java:- ........................................................................ 1 JDK + JRE  JDK (Java Development Kit) it is used to compile java program code to byte code. .JAVA ----> .Class JRE  (JAVA Runtime Environment) it is used to execute byte code(class file) to machine code using JVM(Java Virtual Machine). JVM is the virtual executor for java program code but JVM is operating System dependent. but .class file is common for all JVM. note:-  for developer or learner machine  :-  JDK+JRE for client machine :-   JRE (Java runtime environment) ................................................................................................................................................ How we check Java is installed in machine? go on program files and check Java (JDK+JRE) How we check that Java path is set or not? command prompt and type javac. if javac describes then the path is set. int...

OOP'S Concept in JAVA

OOP'S means Object Oriented Programming Structure or System. OOP'S is a technique which is followed by multiple programming languages. OOP'S technique was started from CPP programming languages and completely implemented by Java Programming languages. JAVA programming language is not 100% Object-oriented because of Java language use primitive datatype which has developed by C and C++ Programming language. Smalltalk is the language which is 100% Object Oriented. Features                                              Rules ............................................................................................................................................... 1 Security                                          Data abstraction and encapsulation 2 C...

AGILE MODEL

AGILE MODEL:- This model is used to provide flexibility to the Client because the Client can take feedback for each iteration of the project. Agile provides an incremental approach to developing a software application .it split the software into different modules which will be developed by multiple teams. The team has a manager, developer, tester, and other team members to work on the project module. After the satisfaction of the client project module will be installed into the client machine. Project Module analyses are called sprint and the manager of the module is called scrum manager. \ it provides rapid application development as compared to another model. SDLC Phase of AGILE 1 Sprint    or Short planning or Analyses or discussion with the client 2 Development 3 Testing 4 Demo and Collect Feedback 5 If Feedback is positive then deployment otherwise re-development

Polymorphism in OOP'S in JAVA

Polymorphism in OOP'S in JAVA:- Poly Means MANY and Morphism means Forms.using these features of OOP's We can User Same name method and operators into multiple forms. Polymorphism Provide Better Reuseility and Flexibility in Program. Constructor By Default Provide Function Overloading Concept. Because We Can Create Different Type of Constructor for Different Functionalities JAVA Not support Operator Overloading Concept because We can not re-define operator definition. Type of Polymorphism:- 1 Static Polymorphism:-   It will perform the operation at compile time Function Overloading is the implementation of Static Polymorphism. 2 Dynamic Polymorphism:-   It will perform the operation at runtime using Object. Function Overriding is the example of Dynamic Polymorphism.

Data abstraction and Data Encapsulation Example

class AreaExample {     int a,b;     float area;    AreaExample(int a,int b)    {       this.a=a;       this.b=b;    }     AreaExample(AreaExample o)    {       this.a=o.a;       this.b=o.b;    }      void areaTriangle()     {        area=(a*b)/2;     }     void areaRectangle()     {         area = (a*b);     }     public String toString()     {          return "Area is "+area;     }     public static void main(String args[])     {         AreaExample obj = new AreaExample(100,20);         obj.areaTriangle();         System.out.println(obj);         AreaExample ...

Program of Constructor in Java

WAP to Calculate Area of Triangle Using Parmetrsied Constructor and Area Of Rectangle Using Copy Constructor? class AreaExample {     int a,b;     float area;    AreaExample(int a,int b)    {       this.a=a;       this.b=b;    }     AreaExample(AreaExample o)    {       this.a=o.a;       this.b=o.b;    }      void areaTriangle()     {        area=(a*b)/2;     }     void areaRectangle()     {         area = (a*b);     }     public String toString()     {          return "Area is "+area;     }     public static void main(String args[])     {         AreaExample obj = new AreaExample(100,20);         obj...

Data abstraction and Data Encapsulation Concept in JAVA

Data Abstraction:- It is used to hide the internal functionality of the program. abstraction means Data Hiding. We should display only essential details of software application and hide all non-essential details in the program is managed by abstraction. Data abstraction is used to provide data security in application hence for any secure application login module is essential hence it will be shown and all screen will be hidden from the application. How we can implement Data abstraction practically in JAVA:- 1 Using Interface:-  Module-level abstraction 2  Using Abstract Class:-  Class-level Abstraction 3 Using Access Specifier:-  Method level abstraction 4 Property:-  JAVA Use Property concept to hide Data Member Data Encapsulation:- ............................................................................................................... it is used to encapsulate all details using single unit .encapsulation is the part of dat...