Basic Understanding of Java Programming Language

Java programming language was invented for two fundamental reasons:

  • to adapt the changing environments and used and
  • to implement improvements in the art of programming

Firstly it was called OAK and was designed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank and Mike Sheridan at Sun Microsystems in 1991. Java is not the “Internet version of C++”. Java was not designed to replace C++, but to solve a different set of problems. Java is now used to create web pages with dynamic and interactive  content, to develop large-scale enterprise applications, to enhance the functionality of world wide web servers, to provide apps for consumer devices and so on.

Java is purely object-oriented programming language. To understand more about Object Oriented Programming Structures, see our previous article on Object Oriented Programming – Theory and Examples. (more…)

How do we begin to construct Data Flow Diagrams (DFDs)?

A data flow diagram (DFD) is a graphical representation of the “flow” of data through an information system, modeling its process aspects. A DFD is often used as a preliminary step to create an overview of the system, which can later be elaborated.

Data flow diagram is a popular way to visualize the major steps and data involved in software system processes. This is not the same as business process modeling; DFDs were usually used to show data flows in a computer system, although they could in theory be applied to business process modeling. DFDs were useful to document the major data flow or to explore a new high-level design in terms of data flow. (more…)

C Program implementing the Bisection Method ( Numerical Computing )

First read Bisection Method Algorithm and Flowchart [Numerical Computing]

Method 1:
This program in C is used to demonstarte bisection method.
Bisection method is one of the many root finding methods.
In this method we are given a function f(x) and we approximate 2 roots a and b for the function such that f(a).f(b)<0.
Then we find another point
if f(c)==0
then root=c;
if f(a).f(c)<0
if f(b).f(c)<0
and we repeat these steps for the given number of iterations. (more…)

Difference between Applets and Applications Program in Java with Examples

Introduction to Applets and Applications in Java

Venn diagram explaining features of Java Applets and Application

Venn diagram explaining features of Java Applets and Application

In java an applet is a special kind of Java program that a browser enabled with Java technology can download from the internet and run. An applet is typically embedded inside a Web page and runs in the context of the browser. In order to be provided with the standard interface between the applet and the browser environment, an applet must be a subclass of the java.applet.Applet class or javax.swing.JApplet class. Java applets are compiled using javac command, but are run either with a browser or with the appletviewer command.

Applications in java are thought to be larger than applets which runs in a desktop mode and is used as productive software application. They can be created by writing packages other than java.applet.Applet. Java application programs run in a standalone environment with the support of virtual machine(JVM). Java applications are also compiled using the javac command and run using java command. A java application has a full network and local file system access, and its potential is limited only by the creativity of its developers. (more…)

Object Oriented Programming – Theory and Examples

What is Object Oriented Programming?

Object Oriented Programming (OOP) is commonly used in programs which require doing the same things over and over again. Much like a function or method can be ran multiple times, OOP classes can be ran multiple times, simultaneously.

When is OOP used?

OOP is used in games and some other software. The reason it is used in games is because the game requires the same things to happen over and over again at the same time, for example… (more…)

Java DataBase Connectivity API – (JDBC API)

JDBC is a Java Database Connectivity API that lets you access virtually any tabular data source from a Java application.

In addition to providing connectivity to a wide range of SQL databases, JDBC allows you to access other tabular data sources such as spreadsheets or flat files.

Although JDBC is often thought of as an acronym for Java Database Connectivity, the trademarked API name is actually JDBC.

JDBC defines a low-level API designed to support basic SQL functionality independently of any specific SQL implementation. This means the focus is on executing raw SQL statements and retrieving their results. (more…)

Best C/C++ Compilers and IDEs for Programmers

If you’re interested in learning to program in C/C++ you’ll find this list of C/C++ Compilers handy. You’ll need one for The C/C++ Programming tutorials we have on site. Most of these compilers do C++ and C. Just rename the files to have .C for C Programs and .cpp for C++ programs extensions. Here I have made a list of some best and free C/C++ compilers and IDEs for Computer Programmers.