---
title: "Explain client and server side validation."  
description: "Explain client and server side validation."  
author: "Shrikant Mishra"  
published: 2019-09-04  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/33573/explain-client-and-server-side-validation  
category: "java"  
tags: ["java", "programming language"]  
reading_time: 1 minute  

---

# Explain client and server side validation.

The Javascript is used for the client-side validation. It takes place within the browser. Javascript is used to submit the form data if validation is successful. Validation errors require no extra network trip because the form cannot be submitted.

And Validation is also carried out in the server after submission. If validation fails, an extra network trip is required to resend the form to the client.

## Answers

### Answer by Shrikant Mishra

The Javascript is used for the client-side validation. It takes place within the browser. Javascript is used to submit the form data if validation is successful. Validation errors require no extra network trip because the form cannot be submitted.

And Validation is also carried out in the server after submission. If validation fails, an extra network trip is required to resend the form to the client.


---

Original Source: https://www.mindstick.com/interview/33573/explain-client-and-server-side-validation

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
