Display a Clock In Java Applet

Create a Clock In Java Applet

Now, here we’ll create a clock in java applet. Java method that you first have to understand is :

  • The Thread
  • The Calendar Class, and
  • Graphics g

After that, you can create a clock app just like this :

Continue reading Display a Clock In Java Applet

Multi Threading Programming (Java)

Multi Threading Programming In Java

What is the multi threading programming that we used is Java, hear this.. Java is actually a multi-threaded programming language and by that Java can let us develop a multi-threaded program.

Do you know what a multi-threaded program is? well a multi-threaded program contains two or more than two parts. Which runs concurrently and each of that one part can handle different task (i.e codes that contains methods, constructors etc) at the same equal time. This can actually improves the optimal use of the available resource, if you have multiple CPUs.

Basically multi threading programming takes the idea of multi tasking. Which is “doing more than 1 activities at the same time”. Multi tasking in our terms it means when a multiple processes share a common process resource such as a CPU.
Continue reading Multi Threading Programming (Java)