Introduction & History of Java

Introduction Java is the most popular programming language in the world today. Java offers three flavors of programming –  Java application, Java applets & Servlets. Java servlets are similar to applets programs except they execute on servers side. Servlets are Java programs answer to traditional CGI programming. Servlets are programs Read more…

Loading

Java Servlets Examples

Example: A Servelets program to print a message. Example: A Servelets program to print user-accepted data from a Form. Example: A Servelet program to handle form submissions and displays the submitted data on the web page. Example: A Servelets program to print user-accepted data from a Form/web page. Example: A Read more…

Loading

RMI in Java

Introduction The RMI  stands for Remote Method Invocation. It is provided in the package java.rmi. Definition The RMI is an API that provides a mechanism to create distributed application in java. Java RMI is a mechanism that allows one Java Virtual Machine (JVM) running object to invoke methods on an object running on another JVM. Read more…

Loading

Java Beans

Introduction JavaBeans is developed by Sun Microsystems and released in 1996, as part of JDK 1.1. The meaning of ‘beans’ in JavaBeans are classes that encapsulate one or more objects into a single standardized object (called the bean, here Bean is class and seeds of bean are objects). This bean finally allows easier code reuse Read more…

Loading

Java Servlets

Definition Servlets are Java programs that run on the Java-enabled web server or application server. They are used to handle the request obtained from the web server, process the request, produce the response, then send a response back to the web server.  A servlet is a class of Java programming language, used Read more…

Loading

Operators in Java

Type of Operators Java provides various types of operators(very much similar to C programming) that can be used to perform different operations on variables and values. These are:- Arithmetic Operators They are divided into two categories – Binary Arithmetic Operators and Unary Arithmetic Operators. Binary Arithmetic Operators – Binary operators Read more…

Loading

File Handling Examples

Example : Write a java program for writing/display output on console simply (or without using PrintWriter class). Example : Write a program in Java to Create a new file using file handling methods. Example : Write a program in Java to Write/Store data into a newly created Java file using Read more…

Loading

JDBC Connectivity Examples

Example: A Java Program to show only JDBC Connectivity with the MySql Database. Example: A Java Program to show JDBC connectivity with MySql database to Retrieve/Search data from a table. Example: A Java Program to show JDBC connectivity with MySql database to Add/Store/Insert data in a table. Example: A Java Read more…

Loading

AWT GUI Examples

Example : An AWT GUI program in Java to close the AWT window. Example : An AWT GUI program in Java to show the mouse click location(coordinates point) value from the frame. Example : A simple AWT GUI program in Java to display a message on loading the frame. Example Read more…

Loading