Oddity Test in Java

Wrong Way We start with a teaser. Here is a wrong function in Java to test whether an integer is odd or not.

An odd number as you know is a number that gives 1 as a remainder when divided by 2. So the function should logically be correct. However, it is not. This […]
Continue reading…

 

A Simple Calculator Applet in Java

This program illustrates some GUI usage through buttons, panels and text field. It makes use of layout managers and event handlers. Feel free to investigate the code and even make the applet a better one.

Continue reading…

 

Java Programming Language

Java is a programming language developed by Sun Microsystems. It derives much of its syntax from C and C++. Java applications run on any Java Virtual Machine regardless of computer architecture. Java applets are popular web applications.  Here is how Hello World implemented in Java.

Here are some crucial points on Java -It is […]
Continue reading…