Custom Tag In Java

Custom Tag Library use to make own tag in jsp by extending TagSupport class, build xml with (.tld) extension file, which specify the result would you want to use.
Java Server Page (JSP) contain standard tag library @taglib for including (.tld) file.

public class CustomTagTest extends TagSupport {

public CustomTagTest() { }

@Override
public int doStartTag() throws JspException {
JspWriter out = pageContext.getOut();//returns the instance of JspWriter
   try{

Design Pattern Tutorial


Design Pattern are best practices how to solve common know problems. This article will give an overview of best practices in object-oriented programming and has pointers to some design-pattern tutorials.
Design patterns are proven solutions approaches to specific problems. A design pattern is not a framework and is not directly deployed via code.

Design Pattern have two main usages:

Api Integration

This tutorial will focus on the basic principles and mechanics of testing a REST API with live Integration Tests with a JSON Results.
For an internal application, this kind of testing will usually run as a late step in a continuous Integration process, consuming the REST API after it has already been deployed.
When testing a REST resources, there are usually a few orthogonal responsibilities the tests should focus on:


SDLC Process

Software Development Life Cycle, or Software Development Process, defines the steps/ stages/ phases in the building of software.


software development life cycle
Software Development Life Cycle 

SDLC IN SUMMARY

  • Project Planning
  • Requirements Development
  • Estimation
  • Scheduling
  • Design
  • Coding
  • Test Build/Deployment
  • Unit Testing
  • Integration Testing
  • User Documentation
  • System Testing
  • Acceptance Testing
  • Production Build/Deployment
  • Release
  • Maintenance

SDLC stands for software development life cycle. A software development life cycle is essentially a series of steps, or phases, that provide a model for the development and life cycle management of an application or piece of software. 

Socket Programming interview Question.

Q:) Name the seven layers of the OSI Model and describe them briefly?
Answer:-
Physical Layer - covers the physical interface between devices and the rules by which bits are passed from one to another.
Data Link Layer - attempts o make the physical link reliable and provides the means to activate, maintain, and deactivate the link.
Network Layer - provides for the transfer of information between end systems across
some sort communications network.

Socket Programming Using Multi-Threading in Java.

public class Server {
    public static void main(String arg[]) throws IOException {
        final int port = 4440;
        System.out.println("Server waiting for connection on port "+port);
        ServerSocket ss = new ServerSocket(port);
        Socket clientSocket = ss.accept();
        System.out.println("Recieved connection from "+clientSocket.getInetAddress()+" on port "+clientSocket.getPort());
        //create two threads to send and recieve from client
        RecieveFromClientThread recieve = new RecieveFromClientThread(clientSocket);
        Thread thread = new Thread(recieve);
        thread.start();