Java programming

Queue data structure implementation in java

What is Queue? Queues are dynamic collections which have some concept of order. This can be either based on order of entry into the queue – giving us First-In-First-Out (FIFO) or Last-In-First-Out (LIFO) queues. Both of these can be built with linked lists: the simplest “add-to-head” implementation of a linked list gives LIFO behaviour. A […]

Posted in java programming | Tagged , , , | Leave a comment

Database connectivity in java

In this tutorial , i will teach you about a database connectivity with mysql database using java programming language. As java is a object oriented programming language so the best approach to follow is : 1. Make a individual package for a database. 1.1 In this package create a class for database connectivity. 2. Make […]

Posted in java programming, OOP | Tagged , , , , , , , | Leave a comment

Serialization

Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called […]

Posted in java programming, OOP | Tagged , , , , | Leave a comment

Lambda Expression

The new lambda expressions included in Java Platform Standard Edition 8 (Java SE 8). Lambda expressions are a new and important feature included in Java SE 8. They provide a clear and concise way to represent one method interface using an expression. Lambda expressions also improve the¬†Collection¬†libraries making it easier to iterate through, filter, and […]

Posted in java programming | Tagged , , , , , , | 2 Comments

What is new in java8

Java8 has been released with a many new features and no doubt these new features are very useful and very interesting to use such as Lambda expressions. So have a look on java 8′s features : Lambda Expressions¬† Lambda Expressions, a new language feature, has been introduced in this release.They enable you to treat functionality […]

Posted in java programming | Tagged , , , , , , , | 2 Comments

Primitive Data types in java

Java programming language support these primitive data types: 1. Byte : It is equals to 8 bits 2. Short : (16 bits equals to two bytes) 3. Int : (32 bits equals to 4 bytes) 4. Long : (64 bits equals to 8 bytes) 5. Boolean : Has to possible values either True or False […]

Posted in java programming | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

Working with variables in java

I am going to start with a basic description for java variables because variables in any language are very useful works as a building block for any program , so lets start… First of all What is meaning of word variable it means not having a fixed pattern. Its a container hold a value for […]

Posted in java programming | Tagged , , , , , , , , | 5 Comments

Object-oriented programming

Object-oriented programming (OOP) is an approach to designing modular, reusable software systems. Although discussions of object-oriented technology often get mired in the details of one language vs. the other, the real key to the object-oriented approach is that it is a modelling approach first.Although often hyped as a revolutionary way to develop software by zealous […]

Posted in java programming | Tagged , , , , | 1 Comment