Welcome To The World Of Java

This site will teach you the basics of Java. It is not necessary to have any prior programming experience.

Write a servlet which retrieves the data from database?

9:14:00 AM | Comments (0)

package ddrs;import javax.servlet.*;import javax.servlet.http.*;import java.sql.*;import java.io.*;public class RetrieveDataBaseServ extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) {  res.setContentType("text/html");  PrintWriter pw = res.getWriter(); ...

Read more

Write a servlet which displays current system date and time?

9:05:00 AM | Comments (0)

package ds;import javax.servlet.*;import java.io.*;import java.util.*;public class DateServ extends GenericServlet { public DateServ() {  System.out.println("SERVLET LOADED..."); } public void init() {  System.out.println("I AM FROM init METHOD..."); } public...

Read more

Write a servlet which displays a message “I LOVE MY MOM”?

8:57:00 AM | Comments (0)

import javax.servlet.*;import java.io.*;public class First extends GenericServlet { public First() {  System.out.println("I AM FROM DEFAULT CONSTRUCTOR..."); } public void init() {  System.out.println("I AM FROM init...

Read more

Core Java Tutorial By Durga Sir and Natraj Sir

7:56:00 PM | Comments (5)

1- Introduction 2- OOPS3- Interfaces4- Packages5- java.lang.String 6- Wrapper classes 7- Java.io 8- Exception Handling 9- MultiThreading 10- Nested classes 11- Enumaration & GC 12- Collections 13- Java.net 14- Java.awt 15- Swings 16- JVM...

Read more

Write a java program to create a table through frontend application?

9:53:00 AM | Comments (0)

import java.sql.*;class CreateTable { public static void main(String[] args) {   try {    Class.forName("Sun.jdbc.odbc.JdbcOdbcDriver");    System.out.println("DRIVERS LOADED...");    Connection con = DriverManager.getConnection("jdbc:odbc:oradsn", "scott",...

Read more

Write a java program which illustrates the concept of Batch processing?

9:45:00 AM | Comments (0)

import java.sql.*;class BatchProConcept { public static void main(String[] args) throws Exception {   Class.forName("Sun.jdbc.odbc.JdbcOdbcDriver");   System.out.println("DRIVERS LOADED...");   Connection con = DriverManager.getConnection("jdbc:odbc:oradsn", "scott", "tiger");   System.out.println("CONNECTION ESTABLISHED..."); ...

Read more

Write a java program which illustrates the concept of updatable ResultSet?

9:38:00 AM | Comments (0)

import java.sql.*;class UpdateResultSet { public static void main(String[] args) {   try {    Class.forName("Sun.jdbc.odbc.JdbcOdbcDriver");    System.out.println("DRIVERS LOADED...");    Connection con = DriverManager.getConnection("jdbc:odbc:oradsn", "scott",...

Read more

Write a java program which illustrates the concept of scrollable ResultSet?

6:11:00 PM | Comments (0)

import java.sql.*;class ScrollResultSet { public static void main(String[] args) {   try {    Class.forName("Sun.jdbc.odbc.JdbcOdbcDriver");    System.out.println("DRIVERS LOADED...");    Connection con = DriverManager.getConnection("jdbc:odbc:oradsn", "scott",...

Read more

Write a java program which illustrates the concept of resource bundle file or how to develop a flexible jdbc application along with its metadata?

10:19:00 AM | Comments (0)

import java.sql.*;import java.io.*;import java.util.*;class RBFConcept { public static void main(String[] args) {   try {    FileInputStream fis = new FileInputStream("rbfdb.prop");    Properties p...

Read more

Write a java program which points the data of a table along with its column names?

10:09:00 AM | Comments (0)

import java.sql.*;class Table { public static void main(String[] args) {   try {    DriverManager.registerDriver(new Sun.jdbc.odbc.JdbcOdbcDriver());    System.out.println("DRIVERS LOADED...");    Connection con = DriverManager.getConnection("jdbc:odbc:oradsn",...

Read more

Write a java program which illustrates the concept of DatabaseMetaData and ResultSetMetaData?

10:01:00 AM | Comments (0)

import java.sql.*;class MetaData { public static void main(String[] args) {   try {    DriverManager.registerDriver(new Sun.jdbc.odbc.JdbcOdbcDriver());    System.out.println("DRIVERS LOADED...");    Connection con = DriverManager.getConnection("jdbc...

Read more

Write a jdbc program to retrieve the data from excel?

9:54:00 AM | Comments (0)

import java.sql.*;class XSelect { public static void main(String[] args) {   try {    DriverManager.registerDriver(new     Sun.jdbc.odbc.JdbcOdbcDriver());    System.out.println("DRIVERS LOADED...");    Connection con =...

Read more

Write a java program which illustrates the concept of procedure?

10:02:00 AM | Comments (0)

create or replace procedure StuPro(no in number, name in varchar2, loc1 out varchar2)asbeginselect dname, loc into name, loc1 from deptwhere deptno=no;insert int...

Read more

Write a java program which illustrates the concept of function?

9:51:00 AM | Comments (0)

create or replace function StuFun(a in number, b in number, n1 out number)  return number as n2 number; begin n1:=a*b; n2:=a+b; return (n2);...

Read more

Page 1 of 6123456Next