Monday, April 15, 2019

Polymorphism - JAVA


Define Polymorphism?
Polymorphism is the feature of oops, it allow the user to do the single action in many different ways.this is called polymorphism.


Types of Polymorphism:
Polymorphism are classified into two types, they are:
1.Static Polymorphism
2.Dynamic Polymorphism


Example of Polymorphism:
public class Animal{
  ...
  public void sound(){
     System.out.println("Animal is making a sound");   
  }
}


public class Horse extends Animal{
...
   @Override
   public void sound(){
       System.out.println("Neigh");
   }
}


public class Cat extends Animal{
...
   @Override
   public void sound(){
       System.out.println("Meow");
   }
}


As you can see all the class extends Animal method,this is called polymorphism,one action is done by many several ways.Java Training Institute in Chennai


Static Polymorphism:
Static polymorphism is also known as compile time polymorphism.this is because these polymorphism is resolved in the compile time.the perfect example of static polymorphism are Method Overloading


Example of static Polymorphism

class SimpleCalculator
{
   int add(int a, int b)
   {
        return a+b;
   }
   int add(int a, int b, int c)  
   {
        return a+b+c;
   }
}
public class Demo
{
  public static void main(String args[])
  {
  SimpleCalculator obj = new SimpleCalculator();
      System.out.println(obj.add(10, 20));
      System.out.println(obj.add(10, 20, 30));
  }
}


Output
30
60


Method Overloading:
Method Overloading allows Core Java Training in Chennai the method to have the same name but different argument list, it is the same as constructor overloading.


3 Different ways we can overload a method:
1.No of Parameters
2.Sequence or order of parameter
3.Data type


Example of Method Overloading:
class DisplayOverloading
{
   public void disp(char c)
   {
        System.out.println(c);
   }
   public void disp(char c, int num)  
   {
        System.out.println(c + " "+num);
   }
}
class Sample
{
  public static void main(String args[])
  {
      DisplayOverloading obj = new DisplayOverloading();
      obj.disp('a');
      obj.disp('a',10);
  }
}
Output:
a
a 10


Dynamic Polymorphism:
Run time Polymorphism is also known as dynamic polymorphism, this is because the dynamic polymorphism function the Java Training Institute in Chennai command in the run time, it is an example of Method Overriding.


Example of Dynamic Polymorphism:
class ABC{
  public void myMethod(){
System.out.println("Overridden Method");
  }
}
public class XYZ extends ABC{


  public void myMethod(){
System.out.println("Overriding Method");
  }
  public static void main(String args[]){
ABC obj = new XYZ();
obj.myMethod();
  }
}
Output:
Overriding Method


Method Overriding:
Method overriding allows the Core Java Training in Chennai user to override the method to one or more times, due to this feature we can able to reuse the code.


Example of Method Overriding:
class Human{
  //Overridden method
  public void eat()
  {
     System.out.println("Human is eating");
  }
}
class Boy extends Human{
  //Overriding method
  public void eat(){
     System.out.println("Boy is eating");
  }
  public static void main( String args[]) {
     Boy obj = new Boy();
     //This will call the child class version of eat()
     obj.eat();
  }
}
Output:
Boy is eating

Friday, April 12, 2019

Defect Management Process in Software Testing

In Software Testing, we have to undergo several testing process to find the error in the product or application, One of the Process of Software Testing is Defect Management Process.Defect Management Process also called as Bug Report Template.Our Institute is providing the Best Software Testing Training in Chennai.


What is Bug?

1.Bug is nothing but a coding error in the program
2.Bug is also called as Error


What is Defect?

1.A Defect is the disturbance of bugs in the coding that will affect the original programs (coding).
2.Other Names of Defect are issues,problem,bug or incidents.
In this post you will learn:
1.Bug Report
2.Defect Management Process
3.Important Defect Metrics


BUG REPORT:

When reporting to developer Testing Courses in chennai about the bugs, the bugs contain the following information,they are:
1.Defect_ID
2.Defect Description
3.Version
4.Steps
5.Date Raised
6.Reference
7.Detected By
8.Status
9.Fixed by
10.Date closed
11.Severity
12.Priority


1. Defect_ID - Unique Code for the defect.
2. Defect Description - Detailed information about the defect and also module in which defect was found.
3. Version - Version of Application in which defect was found.
4. Steps - Detailed information about the steps along with the screenshot or photo copy through the developer can understand and reproduce the defects.
5. Date Raised - Along with the Date the Defect has to be Raised.
6. Reference - the tester have to give the reference document like requirements, design, architecture and screenshot of the error,so that  developer can understand easily about the Defect.
7. Detected By - Name (or) ID of the tester who raised the defect in the coding.
8. Status - Status of the Defect.
9. Fixed By - Name (or) ID of the developer who fix the defect.
10. Date Closed - you have to Software Testing Training Institute in Chennai mention the closed date on the report.
11. Severity - the severity describe about the impact on the defect on the application.
12. Priority - the tester have to mention about the defect fixing urgency to the developer.


Defect Management Process


In this Defect Management Process,I’m going to explain about How to apply the defect management Process to the project,You can follow the below steps to manage defects.

Discovery:

In the Discovery section,the tester team have to discoverer as much defect as possible,Manual Testing Training in Chennai before the user or consumer discover it.the defect has to discovered and the fixation process has to be accepted by the developer.

Categorization


Defects are usually divided by the Test Manger.wherever the bug has to be fixed by the developer or not.The Following are the test condition followed by the Tester,they are as follows:
1) The Website Performance is too bad
2) The function of login does not work properly in the website
3) In the Mobile devices Best Software Testing Training Institute in Chennai With Placement the GUI of the website does not display
4) the website does not save the login session
5) Some links in the website doesn’t work

Resolution

Once the defects are accepted and divided, you can follow the following steps to fix the defect and bugs.


Tuesday, April 9, 2019

History of JAVA

                   


HISTORY OF JAVA


In this blog, we see the history of java. History of java is very fascinating. Java is first created for digital set-top box but it was too advanced technology for the cable television management at the period. In past events Java is started at that green time. Java team member initiated the project to create a language for devices such as set-top box, television cables. However, it's preferred for online programming then it joined with other top most browser.

The standard of creating a java programming simple, dynamic robust, platform independent, Architectural neutral, multithreaded, object-oriented, secure, high performance.

Currently, java programming used in the internet, mobile devices, games, e-business solutions, etc. They are significant points given about the history of Java.

1. James Gosling, Mike Sheridan, Patrick Naughton these three members initiated java project in June 1991. It was originally developed for small embedded devices like television set-top box connections. Three members team name is the Green team.
2. First, it was called by the green talk by James Gosling and its file extension is .gt
3. Later it was called oak. And developed by the green team.
4.OAK is the symbol of strength and chosen in many countries national tree like France, USA, Germany, Romania.
5. In 1995 OAK was renamed as JAVA  because already it was a trademark by OAK technologies.
6. Initially, it was developed by James Gosling at sun microsystems and it was released in 1995.
7.Java 1.0 release in 1996 file format of JDK file extension.
Later so many versions of Java was released now it was the most predominant object-oriented powerful programming language. Based on java in mobiles smartphones are launched in android OS.

Java Virtual Machine Its generally referred to as a JVM. Java has a java development kit, bytecode, Java runtime environment are one of the main features of Java programming.These are the History of java.

If you want to learn and get certificates in java. You will join in Java Training Institute in Chennai.

Friday, April 5, 2019

PHP Forms

A Simple HTML Form

<html>

<body>

<form action="New.php" method="post">

Name: <input type="text" name="name 1"><br>

E-mail: <input type="text" name="mail id"><br>

<input type="submit">

</form>

</body>

</html>

What is Form?

Form are classified into many types like registration form.login form,request form,contact us form etc.A form is submitting your data to the server.Form is getting the input from the user.

PHP $_POST

PHP post is used to collect PHP Course in Chennai the form data after submission of form in post method

PHP $_GET

PHP $_GET can also be used to collect form data after submission of form in the get method.

HOW GET Method Works?

1.Get method is used to PHP Certification in chennai get the input data from the user
2.we can also bookmark the Get method after the submission of form.
3.Get method is use only String data type because the values are visible in the url.
4.It has high performance compared to POST.
5.the length of the values can be exceeded over 255 characters.

How POST Method Works?

1.the process of POST method is happened after the submission of input data.
2.the post method process are invisible to users.
3.the Post method will submit the data to the url
4.we can’t bookmark PHP Training Institutes the submitted values.
5.the post method use many data types they are string,numeric and binary etc.

Attribute in Form:

Action attribute:the action attribute will specifies the url that will process the data
Method attribute:the method attribute will specify the submitted type.

The Form uses HTML tags and the form tag is <form>...</form> and it also include input
Box,check box and radio button.

The form are used to collect the PHP Training Institute in Chennai input of user and the check box are used to tick the relevant
field and the radio button are used to mark the relevant field.Form can be written in both php
and html tag,

Using Best PHP Course in Chennai is the easiest way to write the code for form.with the help of get and post method only,The form action is performed.

Form Validation

Text Fields

The name 1, mail id and website fields are text input elements, and the comment field is a textarea. The HTML code looks like this:
Name: <input type="text" name="name 1">
E-mail: <input type="text" name="mail id">
Website: <input type="text" name="website">
Comment: <textarea name="msg" rows="2" cols="60"></textarea>

Radio Buttons

The gender fields are radio buttons Best PHP Training Institutes and the HTML code looks like this:
Gender:
<input type="radio" name="gender" value="female">Female
<input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="other">Other

The Form Element

The HTML code of the form looks like this:
<form method="post" action="<?php echohtmlspecialchars($_SERVER["PHP_SELF"]);?>">
When the form is submitted successfully, the form data is sent to method="post".


the $_SERVER["PHP_SELF"] sends the submitted form data to the submitted page, instead of going to another page.