Posts

Java static Keyword Part 1

Image
   Hello friends, when we enter programming, basic syntax are very important. Programmers make lot of errors due to less knowledge about basic syntax. So, let's talk about static keyword in Java. It is used for memory management in java. Let's understand it using a simple example. Example 1 * There is a company called "ABC Ltd". Some employees work in that company. Employee is a main entity. So, attributes will be Employee ID, Name and company. When we design a system for above company, we make the class "Employee" which consists of variables for Employee ID, Name, and company. We know that the company is same in each and every object. So, setting the company for every object is memory-consuming. But we can declare the company as a static variable to make it efficient. Then that field will get memory at once. If it is a non-static member, all company attributes will get memory each time when objects are created. Let's consider another example.  Example ...

History of Java

Image
  Hello guys, I'm going to tell you a story. That is "how Java got that name?" Let's find out. This programming language was developed by Sun Microsystems. It was initially released on January 23, 1996. James Gosling was known as the founder of Java. Before they called it Java, its name was "Oak". But there was another company with the same name. So, James Gosling and his team decided to change its name.  Have you seen the logo of Java programming language? Is it a cup of tea? Actually, it is not a cup of tea. It is a cup of coffee. Why is that so?   Java is an island in Indonesia. It is the place where the first coffee was made . There is a famous coffee variant called Java. The "Java" name was chosen by James Gosling while having a cup of coffee since many team members agreed to that name.   Sun Microsystems became a part of Oracle later. So, now we know Java as oracle owned. The first JDK was released on January 23, 1996 as JDK 1.0. Today, I...

Introduction to Thusith Developer

Image
 Hello there,        I'm Thusith Wickramasinghe. This is my official blog site. I will write posts about new technologies, programming languages, frameworks, and some advanced concepts of programming.    Programming is a challenging thing. We need logical thinking to be a good programmer. That is a basic requirement that every programmer needs. There can be some mathematical concepts, data structures & algorithms in programming tasks. We will discuss them.   Basically, we use programming to develop software. They can be desktop applications, web applications of mobile applications. There is a programming language that is suitable for all types of above applications. That is Java. We will mainly discuss about java programming in this blog site. But there will be posts about some other programming languages such as JavaScript, Dart, and Kotlin. I hope to write some posts about famous libraries and frameworks also. So, stay updated with me....