Welcome to my blog !


What is Hadoop?:Apache Hadoop Tutorials

December 10, 2011 ·  6 min read

Hadoop tutorial Hadoop is an Apache framework developed completely in Java with the opensource brand. Hadoop analyzes and processes a large amount of data i.e petabytes of data in parallel with less time located in the distributed environment. Hadoop is not a single tool which contains a combination of different sub-frameworks called Hadoop Core, Map Reduce, HDFS, Pig, HBase. Hadoop is mostly used for OLTP transactions. Some big companies like Facebook use Hadoop for OLAP transactions as well....

Top 10 JDBC Interview Questions

December 4, 2011 ·  1 min read

1.what are different frequent JDBC classes or interfaces used in java code? Connection,DriverManager,ResultSet,Statement,PreparedStatement,CallableStatement. . 2.How do you load the JDBC driver class?. Class.forName(“DriverClass”) is used load the driver class. whenever DriverClass is loaded with this, create a new instance of DriverClass and register the driver with DriverManager Class. Once Driver is registered, it is ready to create physical connections to a database using the Connection object. 3. What is connection pooling?...

Statement,PreparedStatement and CallableStatement

December 4, 2011 ·  2 min read

In JDBC, There are different statements to execute the sql queries in databases. We can send the simple SQL,complex SQL and PL/SQL queries using this statements There are three types of Statements. The following statements are returned from the connection object.before creating any statement object, connection should be presented. The connection object can be returned from the following lines of code Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con= DriverManager.getConnection("jdbc:odbc:orc", "scott", "tiger"); ```**1.Statement :-** This is simple Statement to execute SQL queries like insert,update and delete operations....

Convert of String to Integer or Integer to String in java

December 4, 2011 ·  2 min read

As a developer, in the day to day programming, we have encountered in a number of situations to convert from String to Integer or vice verse. String object holds a sequence of characters Integer object stores the numeric values. The string should hold valid int value. if an invalid numeric value is presented in the string, then NumberFormatException is thrown. For this, you have to handle using try and catch blocks....

Jdbc Basic Example to connect to database in java

December 4, 2011 ·  2 min read

Following steps for writing a sample java program to connect to the database and get the result. JDBC API is provided by sun framework which contains different interfaces and classes to connect to databases. The below diagram depicts the steps to connect to any database. import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class ConnDemo { public static void main(String args[]) throws Exception { // establish connection to database this includes loading driver // and fetching data....