Understanding a Java Object image
Understanding a Java Object

Java is known as an object-oriented programming language (OOPS). The designers created it in a way such that objects become the centre of attention. Java programs create and manipulate objects in an attempt to model how the real world operates.

9 year ago | 1675 |
J2SE 1.2: Codename Playground image
J2SE 1.2: Codename Playground

We can clearly see how fast Java grew in just three years. During this time, Sun also introduced a new terminology to describe Java technology—Java SE (Standard Edition).

9 year ago | 3369 |
Java SE 8 image
Java SE 8

In 2014, Oracle Corporation released Java 8 on 18 March, which was another milestone release for the Java ecosystem.

9 year ago | 2228 |
Arrays in Java: Array Initializations (Part-2) image
Arrays in Java: Array Initializations (Part-2)

In my previous post, we have already learned how to declare an array, allocate the space for its elements, and how to modify and access its elements. Now we learn how to initialize a java array.

9 year ago | 2119 |
Inheritance in Java: Writing a Multi-level Inheritance Program image
Inheritance in Java: Writing a Multi-level Inheritance Program

The application discussed in the previous post is based on the asset management classes we have studied so far. We will now look at the concepts of multilevel inheritance with the help of program code.

9 year ago | 8389 |
Inheritance in Java: Calling the super Constructor image
Inheritance in Java: Calling the super Constructor

To understand how the super keyword is used for calling the superclass constructors, let’s add the constructors to our class hierarchy here

9 year ago | 2907 |
The static Keyword: Access Restrictions in Static Methods image
The static Keyword: Access Restrictions in Static Methods

Because a static method is invoked without a class instance, we cannot use a this or super reference in the static method.

9 year ago | 4222 |
Interfaces in Java: Real life Example image
Interfaces in Java: Real life Example

Suppose we are asked to develop communication software such as an FTP (File Transfer Protocol) or Telnet program that uses a modem.

9 year ago | 12360 |
Exception Handling in Java: Declaring Exceptions in Overriding Methods image
Exception Handling in Java: Declaring Exceptions in Overriding Methods

Let’s recall the rules we learn from previous post about declaring exception in Overriding Methods.

9 year ago | 2341 |
Exception Handling in Java: final Re-throw and Exceptions in Overriding Methods image
Exception Handling in Java: final Re-throw and Exceptions in Overriding Methods

The throw keyword (note the singular form) is used to force an exception.

9 year ago | 2312 |
Exception Handling in Java: User-defined Exceptions image
Exception Handling in Java: User-defined Exceptions

Sometimes we may find that the exception messages given by the standard exception classes are not intuitive, and it may be necessary to provide more elaborate messages to the application user.

9 year ago | 2667 |
Java I/O: The InputStream Methods image
Java I/O: The InputStream Methods

The read method we used in the previous post is in fact defined in the InputStream class. The FileInputStream class that extends from the InputStream class inherits this method.

9 year ago | 2569 |
Java I/O: The PrintStream Class and Character-Oriented Stream Classes image
Java I/O: The PrintStream Class and Character-Oriented Stream Classes

This is a very convenient class that has the ability to print representations of various data values, such as all primitive types. During printing it converts all characters into bytes using the platform’s default character encoding.

9 year ago | 2234 |
Java I/O: The Console Class image
Java I/O: The Console Class

So far we have been using System.out to print messages to the console. Java SE 6 added a Console class to enhance and simplify command-line applications.

9 year ago | 2158 |
Java I/O: Nested Objects Serialization image
Java I/O: Nested Objects Serialization

A Serializable object may contain references to other objects. We may be wondering if we serialize an object, whether the nested objects are also serialized.

9 year ago | 8043 |
Java Enumerations: Attaching Methods to Enumerations image
Java Enumerations: Attaching Methods to Enumerations

Suppose we want to convert a user-specified weight in pounds to a different unit of measure, such as kilograms, carats, or ounces.

9 year ago | 2010 |
Annotations in Java: Declaring Annotations (Part-1) image
Annotations in Java: Declaring Annotations (Part-1)

Having seen the built-in simple annotations in the previous posts, it is time now to create our own annotations. Why would we create our own annotations?

9 year ago | 4373 |
Annotations in Java: Declaring Annotations (Part-2) image
Annotations in Java: Declaring Annotations (Part-2)

In previous post, we have seen how to declare marker and single value annotations. So, let’s continue the same example and learn how to declare multi value annotations and set default values.

9 year ago | 3240 |
Annotations in Java: @Target and @Retention image
Annotations in Java: @Target and @Retention

But, in this post we learn how to annotate an annotation using few more annotation specifically meant for this purpose.

9 year ago | 25899 |
Evolution of Software Product Development in India image
Evolution of Software Product Development in India

India’s software development and IT industry is one of the world’s biggest and successful information technology industries.

9 year ago | 2171 |
Features of java image
Features of java

JAVA was developed by Sun Microsystems and released in 1995. It runs on variety of platform such as Mac OS, Windows, and the various versions of UNIX.

9 year ago | 2901 |
The Effects of Technology on Humans: Social Media image
The Effects of Technology on Humans: Social Media

Learn The Effects of Technology on Humans: Social Media in this article

3 year ago | 1145 |
How much time should we spend on your devices every day? image
How much time should we spend on your devices every day?

Learn How much time should we spend on your devices every day in this article

3 year ago | 867 |
Best PC games 2023 image
Best PC games 2023

Learn about the Best PC games 2023 and features in this article

2 year ago | 2278 |
Can New Technologies Make Us Live Longer? image
Can New Technologies Make Us Live Longer?

Learn whether New Technologies Make Us Live Longer in this article

1 year ago | 589 |
NVIDIA project GR00T will bring AI into the real world. possible? image
NVIDIA project GR00T will bring AI into the real world. possible?

Learn about the NVIDIA project GR00T will bring AI into the real world in this article.

1 year ago | 635 |
Neuralink patient playing chess after chip implant. Isn't it great? image
Neuralink patient playing chess after chip implant. Isn't it great?

Learn about the Neuralink patient playing chess after chip implant in this article

1 year ago | 531 |
Features and Benefits of Object Oriented Programming (OOPS) image
Features and Benefits of Object Oriented Programming (OOPS)

It is a good practice to provide a coupling between the data and the methods that operate on the data (method is another name for a function or a procedure, also called an operation).

9 year ago | 13111 |
Method Overloading image
Method Overloading

In our example of the previous post, the classes Asset, BankAccount, and SavingsAccount defined two constructors. Both constructors obviously have the

9 year ago | 2038 |
Java Access Modifiers: The protected and default Modifiers image
Java Access Modifiers: The protected and default Modifiers

The protected ModifierGoing back to our asset management example, we have defined several classes that lie in a single hierarchy. The Asset, BankAccou

9 year ago | 2686 |
The static Keyword: Multiple Static Blocks image
The static Keyword: Multiple Static Blocks

A static block is executed only once when the class is loaded. Our class may contain multiple static blocks. These are executed in the order in which

9 year ago | 1928 |
Exception Handling in Java: Combining Exception Handlers image
Exception Handling in Java: Combining Exception Handlers

In my previous post, we have learnt how we can handle multiple exceptions in our code by providing multiple numbers of catch block specific to a particular exception.

9 year ago | 2044 |
Exception Handling in Java: try-catch statements image
Exception Handling in Java: try-catch statements

We can easily catch and handle errors in our programs so that they do not terminate abnormally. When a program terminates abnormally, typically it dum

9 year ago | 1911 |
Exception Handling in Java: Basic Concepts image
Exception Handling in Java: Basic Concepts

Looking at Murphy’s Law, “If anything simply cannot go wrong, it will anyway,” we know that we should always prepare ourself for the worst-case scenario.

9 year ago | 1848 |
Java I/O: The Byte-Oriented Stream Classes image
Java I/O: The Byte-Oriented Stream Classes

In the previous posts, we got an introduction to byte-oriented stream classes, where we used the FileInputStream classFileOutputStream classAs we can

9 year ago | 3610 |
Autoboxing and Wrapper Classes in Java image
Autoboxing and Wrapper Classes in Java

J2SE 5.0 introduced a new feature called autoboxing and unboxing that automatically converts between the primitive data types and their wrapper classes.

9 year ago | 2158 |
Annotations in Java: Why we use Annotations? image
Annotations in Java: Why we use Annotations?

One of the major goals of any IDEsuch as NetBeansor Eclipseis to enhance ease of development. The IDE generally provides the boilerplate code for many

9 year ago | 2824 |
Final keyword in java image
Final keyword in java

It can be used to define final class, final method, final fields and final variable. It can be used in many context in java. Final keyword perform a important role in java programming.

8 year ago | 3243 |
Drone Technology and the Future image
Drone Technology and the Future

Learn Drone Technology and the Future in this blog

3 year ago | 1106 |
Most Common Data Backup Mistakes in 2020 image
Most Common Data Backup Mistakes in 2020

Learn Most Common Data Backup Mistakes in 2020 in this blog

3 year ago | 1076 |
Top blogging tools that make it easier to run my blog image
Top blogging tools that make it easier to run my blog

Learn Top blogging tools that make it easier to run my blog in this blog

3 year ago | 588 |
What is the difference between an IT remote job and working physically? image
What is the difference between an IT remote job and working physically?

Learn What is the difference between an IT remote job and working physically in this blog

3 year ago | 1081 |
Positive and negative effects of social media image
Positive and negative effects of social media

Learn Positive and negative effects of social media in this blog

3 year ago | 1193 |
The adverse impact of social media we should fight against image
The adverse impact of social media we should fight against

Learn The adverse impact of social media we should fight against in this blog

3 year ago | 1265 |
Great things we owe to social media image
Great things we owe to social media

Learn Great things we owe to social media in this blog

3 year ago | 1205 |
The role of social media in education image
The role of social media in education

Learn The role of social media in education in this blog

3 year ago | 785 |
Are social media sites productivity killers? image
Are social media sites productivity killers?

Learn Are social media sites productivity killers in this blog

3 year ago | 1221 |
What is Blockchain for Business? image
What is Blockchain for Business?

Learn What is Blockchain for Business in this blog

3 year ago | 868 |