In this post, I try to give a reasonable account of Java's error handling system being as it is that the handling of errors is a concern that any reasonable programming language must find some way to contend with. Java's error handling methodology is based on an idea of exceptions.
An exception is a condition that prevents your program from further executing along the current path. It signifies...
If you have followed previous posts, you might begin to perceive a pattern in the semantics of the Java programming language. If not, it might help to go over previous posts as I tend to return to expand on previous topics or add clearer examples as time permits. Inner classes might at first seem like a whole new language to the uninitiated but they are a nice feature in Java that allow you to logically group related classes and control the visibility of one class from outside of the other
In the normal course of solving a general programming problem, it is almost certain that you will become compelled to create, and identify useful ways by which one may hold any number of objects within your program. In Java, you are normally inclined toward the array as the natural choice for holding a group of primitives, but this has the obvious limitation of being of a fixed size, whereas, under normal circumstances, you are unlikely to know before hand, the number of objects, or indeed anything about their type before run-time
Interfaces serve a very useful tool that help improve the overall design of your code by providing the ability to upcast to more than one base type, and to more effectively encapsulate implementation..
When you create a class in Java, you implicitly inherit the fields and methods of the root Object class even when you do not explicitly inherit from some other class. This ability allows you to substitute an object for its base class and is proof of the saying - "in Java everything is an object".
One of the most compelling features about an OOP language like Java is that it provides a way to reuse code to add functionality within the classes you create. Essentially, when writing code in Java, seldom are you required to begin from scratch because the Java library comes with a great many classes that make it easy for you to attain a minimum level of functionality with relative ease.
A key consideration for the library designer in the normal conduct of operations is maintaining the ability to make changes or improvements to the library at any time without requiring the consumers (client programmers) of that library to do the same. In Java, a library consists of a logical grouping of .class files packaged together to make a working program.
Operators in Java work much like they do in mathematics, producing a value from one or more operands. An operand is any quantity on which an operation can be performed and in Java these include primitives and objects.
Basic arithmetic operators in Java include addition (+), subtraction (-), multiplication (*), division (/) and the assignment operator (=), all of which constitute...
Much of what you do in Java is to define classes that package data and functionality together by concept to represent the desired problem-space element. When you instantiate a class, you create an object that has it's own piece of memory made up of other objects. Java has a peculiar means of manipulating these elements in memory. This is to say even though you treat everything as an object, you do not manipulate these objects directly. On the contrary, you manipulate an identifier that is a "reference" to the object. You may think of a reference as the physical address of the location of the object in memory or some other physical device. An identifier is simply a name or label for that reference. For instance, to create a reference to hold a word or sentence you would do something like this:-
This article will explain what is the origin, principles, syntax and versions of Java as a programming language.
In this blog post you will learn to prototype your applications using UML before typing a line of code. This is useful because you can generate a code template from these diagrams.
In this article you will learn how compile Java sources on runtime using the JSR 199 API.
Just recently I was engaged to assist with an application that wasn’t behaving. The application, running in a 1.7.0_45 JVM, relied heavily on a 3rd party SAAS framework. That vendor provided my client with a list of 26 different JVM flags that should be set. When faced with this long list of flags I couldn’t resist asking why all the flags and why these flags. After all there are more than 700 product flags defined in the JVM and to be honest, I’ve only a vague idea of the effect may have on a runtime.
Introducing a project for developing a premises guardian system in Java with actors.
Learn how to configure actors in Java for remote interaction.
Learn some useful configuration patterns that will help you debug and manage your locally based actor application.
Begin coding actors with this simple entertaining application as an example.
In this post we will be looking at code for a system designed to integrate all of the devices used to provide surveillance and security to extensive physical premises such as malls, campuses, and industrial parks. The approach I am taking involves the actor paradigm and the Java programming language. The selection of actors for this type of application is based on a number of...
Object Oriented programming (OOP) is a programming methodology whose progress of abstraction allows for the conception of elements within the problem space to exist as objects within the solution space. This seemingly one-on-one mapping provides an ideal abstraction of the real world or problem space; consider if you will, the normal objects with which you interact with everyday for instance a maple tree, a bicycle, a car etc..
Why you might want to consider actors for your next Java project.