What Is Java Swing Component?

Swing Framework contains a large set of components which provide rich functionalities and allow high level of customization. All these components are lightweight components. They all are derived from JComponentclass. It supports the pluggable look and feel. JButton JButton class provides functionality of a button. JButton class has three constuctors, JButton(Icon ic) JButton(String str) JButton(String …

What Is Java Swing Component? Read More »

Introduction to Reflection

Reflection means ability of a software to analyze itself. In Java, Reflection API provides facility to analyze and change runtime behaviour of a Class, at runtime. For example, using reflection at the runtime you can determine what method, field, constructor or modifers a class supports. What is reflect package ? java.lang.reflect package encapsulates several important …

Introduction to Reflection Read More »

java.lang.Class class

Class is a final class in java.lang package which extends Object class. Instance of this class represents classes and interfaces in a running Java application. It is used to analyze and change dynamic behaviour of a class at runtime. Some Important Methods of java.lang.Class class This class defines several methods using which we can get …

java.lang.Class class Read More »

What is RMI Application in java?

  Remote method invocation(RMI) allow a java object to invoke method on an object running on another machine. RMI provide remote communication between java program. RMI is used for building distributed application. Concept of RMI application A RMI application can be divided into two part,Client program and Server program. A Server program creates some remote …

What is RMI Application in java? Read More »

What is JDBC (Java Database Connectivity)?

Java Database Connectivity(JDBC) is an Application Programming Interface(API) used to connect Java application with Database. JDBC is used to interact with various type of Database such as Oracle, MS Access, My SQL and SQL Server. JDBC can also be defined as the platform-independent interface between a relational database and Java programming. It allows java program …

What is JDBC (Java Database Connectivity)? Read More »

JDBC 4.0 API

JDBC 4.0 API JDBC 4.0 API is mainly divided into two package java.sql javax.sql java.sql package This package include classes and interface to perform almost all JDBC operation such as creating and executing SQL Queries. Important classes and interface of java.sql package classes/interface Description java.sql.BLOB Provide support for BLOB(Binary Large Object) SQL type. java.sql.Connection creates …

JDBC 4.0 API Read More »

What Are The Steps To Connect Oracle Database using Thin Driver?

Connecting to Oracle Database using Thin Driver To connect a Java application with Oracle database using Thin Driver. You need to follow the following steps Load Driver Class: The Driver Class for oracle database is oracle.jdbc.driver.OracleDriver andClass.forName(“oracle.jdbc.driver.OracleDriver”) method is used to load the driver class for Oracle database. Create Connection: For creating a connection you …

What Are The Steps To Connect Oracle Database using Thin Driver? Read More »

Connecting to MySQL Database using Thin Driver

Connecting to MySQL Database using Thin Driver To connect a Java application with MySQL database using Thin Driver. You need to follow the following steps Load Driver Class: The Driver Class for MySQL database is com.mysql.jdbc.Driver andClass.forName(“com.mysql.jdbc.Driver”) method is used to load the driver class for MySQL database. Create Connection: For creating a connection you …

Connecting to MySQL Database using Thin Driver Read More »

Scroll to Top