Category: java

Servlet and JSP Communication

In this Article, I am going to explain how the communication happing between the servlet and JSP with a Database insert operation...

JDBC

JDBC – java Database Connectivity Simple JDBC Program : [java] package jdbc; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.sql.*; public class JdbcConnection { public static...

Class.forName

class.forName is one way to creating Object in Java programming Languages When Class.forName function is called at that time 3 Operations will be performed Loads...

Java Access Modifiers and Non-access Modifiers

Like other languages, it is possible to modify classes, methods, etc., by using modifiers. There are two categories of modifiers − Access Modifiers − default, public,...

Java Encapsulation

Hi, guys in this article we are going see the “Java Encapsulation” Topic, which is pretty simple to understand and to implement. We Call Functions...

Java Comments

Comments plays and importent role in realtime development. when we work in a team , many people invovled to work in a same module, at...

Error: Could not find or load main class HelloWorld

HelloWorld.Java class HelloWorld { public static void main(String args){ System.out.println(“My First Program”); } }   Command prompt:  java> javac HelloWorld.java java> java HelloWorld Error: Could...