Day: 24 August 2017

Auto Refresh in Servlet In this tutorial, We will show you example program about, How to do an auto refresh in servlet. The program has been tested and shared in the post. Project Structure Servlet Class (AutoRefreshServlet.java) package com.dineshkrish.servlet; import java.io.IOException; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; […]
Serialization and Deserialization in Scala In this post, We will show you simple program about, How to perform Serialization and Deserialization in Scala programming language. The example program has been tested and shared in the post. Customer Class (Customer.scala) package com.dineshkrish.scala class Customer(custId: Int, custName: String) extends Serializable { def getCustId(): Int = { return […]
Overriding equals Method in Scala Hello everyone, In this post, We will show you, How to override equals method in Scala programming language. The sample program has been tested and posted in the same post. Employee Class (Emploee.scala) The below Employee class, which is overriding the equals() method and returning boolean value based on the […]
Overriding toString method in Scala Hello everyone, In this post, We will show you, How to override toString method in Scala programming language. The sample program has been tested and posted in the same post. Employee Class (Emploee.scala) The below Employee class, which is overriding the toString() method and returning string value. Which contain attributes […]