Showing posts with label JAVA. Show all posts
Showing posts with label JAVA. Show all posts

Friday, January 16, 2015

How to Connect Database (JDBC) In Java Servlet


This tutorial assumes you have knowledge on how the JDBC application work. Before accessing the database from a servlet, make sure you have the latest JDBC with a database.

The details on how to access the database using JDBC and an environment where you will go through our JDBC Tutorial.

Saturday, November 22, 2014

JDBC (Java Database Connectivity) Tutorial


What is JDBC ?

JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
The JDBC library includes APIs for each of the tasks commonly associated with database usage:
  • Making a connection to a database
  • Creating SQL or MySQL statements
  • Executing that SQL or MySQL queries in the database
  • Viewing & Modifying the resulting records

Introduction to Java Beans and What is EJB ?


What is Java Beans ?

  • A Java Bean is a reusable software component (actually, a Java class) that can be manipulated visually in a builder tool
  • Java Beans are just ordinary Java classes that follow certain conventions - you don't need special tools to create them
  • It is useful to have some tools to help assemble and configure a Bean-based application
  • Examples of "builder tools":

Friday, October 17, 2014

What is Null Pointer Exception and How to Handle/Fix it in Java?


When you declare a reference variable (i.e. an object) you are really creating a pointer to an object. Consider the following code where you declare a variable of primitive type int:

int x;
x = 10;
 
In this example the variable x is an int and Java will initialize it to 0 for you. When you assign it to 10 in the second line your value 10 is written into the memory location pointed to by x.
But, when you try to declare a reference type something different happens. Take the following code:

How to Comapre Strings In Java


While Surfing on Internet we got to Know that a Beginner is Facing the Following Problem :

"I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.Is == bad? When should it and should it not be used? What's the difference? "
 Well  In Our Basic Operator and Expression Topic we Get to Know that == is comparison operator but it is valid for Only Integer,Float,Array, Char.

Introduction To Java


Founders Of Java : James Gosling, Mike Sheridan, and Patrick Naughton
Year : 1991

The Whole team who are developing this awesome programming Language was known as Green Team.  First it was Called as Greentalk with a extension .gt but then  Changed to Oak.

In Many OnCampus or Off Campus Placement Interviews a common question occur i.e. Why Java not Oak and Why Logo of a Coffee Cup with Steam ?

So we will Clear All the Doubt by Here itself. First Why Oak ?

Saturday, August 9, 2014

Algorithm, Source Code/Program For Merge Sort in C and JAVA


Merge Sort is the Best Example Of Divide and Conquer Algorithm In this Algorithm First Of all the List is divided into Sub Division and this Process will be go on until You'll get Smallest Unit Of that List. The Operation Performing Previously is Divide Operation Now We will Go On For the Conquer Operation i.e. Sorting all the individual List and Place them in a List.

Well This seems to be some Confusing one But Don't Worry we Will Give you Full Tutorial in this Article.