ADS BY GOOGLE

The stack is the hack, Jack. That's my takeaway from several events I attended over the past few weeks in Silicon Valley and Southeast Asia. I listened to and participated in discussions about everything from large datacenter management (think Facebook Open Compute) to enterprise-l...
In ten days I’ll be sitting at the general session at Adobe MAX 09 in LA. People from Adobe will come up on stage one after another delivering the latest news on the products we all use daily. Here’s my short wish list of the news I’d like to hear. I’m sure people who are using Creati...
In the second of a new series, Yakov Fain takes a look at the basics of object orientation and method overloading in Java.
In the third lesson Yakov takes into the world of object constructors and method access methods with easy to follow examples.
This installment has Yakov looking at Java Exceptions.
This installment has Yakov looking at Java Streams Basics.
Yakov shows that working with the streams over the Internet may be as simple as dealing with files on your local disk, in the sixth installment of Java Basics.
In lessons 5 and 6 of this series, you've learned how to use some of the Java streams to read or write bytes, characters or numeric data. This lesson is about reading or writing entire Java objects into streams.
Yakov Fain's popular online tutorial series continues. This lesson he discusses the basics of threads, including how to create them, how to get them to step aside, and how to stop them.
Yakov Fain, in Lesson 9 of his immensely popular online 'Java Basics' series for JDJ Industry Newsletter, talks about using threads for creating more advanced programs than those already discussed in Lesson 8. He analyzes the role they play in major Internet portals like Yahoo, CNN, or...
When Java was originally created, only AWT library was available for working with graphics. This library is a simple set of classes like Button, TextField, Label and others. Pretty soon, another and more advanced library called Swing was introduced.
This rather pedagogically worded article is a collection of my thoughts on debugging Java software, the programming patterns I have used, some useful APIs, and techniques.
The 5.0 release of JDK introduced a slew of new features. A powerful technique that resulted from the JSR-175 recommendation is the Program Annotation Facility. It can annotate code in a standard way and automate the generation of source code or configuration files, helping cut down on...
Chakra Yadavalli wanted to explore the new printf feature of the java.io.PrintStream, to see how it differed from its C counterpart. Says the author: 'This revealed some interesting observations that refreshed my Java fundamentals.'
Many Java developers today have moved toward some form of logging and/or unit test framework, and their code has been purged of many System.out. println() statements that were the traditional approach. Now perhaps it's time to get rid of some of those if ( x ) {. . .} as well.
Anyone who has dealt with complex enterprise applications knows the value of a good logging solution. Features such as consolidating log files, separating events, and turning debugging on or off all come free with a good logging API.
Copy-paste coding is a kind of misguided code reuse. You have a problem to solve and you see a similar problem and its solution in your existing body of code. So you copy and paste the solution, and make the necessary modifications so that the solution matches your current problem.
I have come to the unpleasant realization that I might have forgotten how to learn. I'm not talking about the small bridges we cross every day in our jobs or our lives. I'm talking about the big tectonic shifts that take place far less often. I suppose it started out when I realized I ...
In lessons 5 and 6 of this series you've learned how to use some of the Java streams to read or write bytes, characters or numeric data. This lesson is about reading or writing entire Java objects into streams.
A common approach to caching data in Web applications is to use an HTTP session. A business use case that spans multiple HTTP requests may create the need for caching in a Web tier. Once business use–case processing is completed, this cached data needs to be removed.
Individuals just starting out with Java and object-oriented (OO) programming often feel overwhelmed by not only having to learn a new language syntax but also having to comprehend the unfamiliar concepts of OO programming. For those individuals, building a strong foundation on the key ...
In the first of a new series, Yakov Fain takes a look at the basics of coding in Java with the traditional 'Hello World' programming.
If the answer is no, at a minimum your project needs a code review. Let's work on the following assignment: a company has employees and consultants. Design classes with and without the use of inheritance to represent the people who work for this company. The classes should have the...
Network systems based on service discovery can provide a consistent view of their distributed components even during changing network conditions. The ability of a system to heal itself during a network catastrophe, including architectural change and system breakdown, will help the syst...
Part 1 of this series appeared in the August issue of Java Developer's Journal (Vol. 8, issue 8). JDJ: I'd just like to pick up on that 85% portability goal Jeff mentioned earlier. I'm just going on assumptions, but I think if you were developing a title for the PS2, GameCube, and XB...
My laptop goes where I go. Some people like to read; I like to hack code. Just ask my wife - I took the laptop on vacation to the Cayman Islands. The problem I'm having is that I can never predict the state of my online connection. At home I'm wireless; at work, wired. In between, such...
This article, tailored for seasoned COBOL and RPG programmers, provides a jump start into the Java programming language and the concepts behind it; it may also be useful for anyone who is stepping into the Java arena for the first time.
As the Java 2 Enterprise Edition (J2EE) platform continues to grow and gain ground in corporations and the battle between Java and Microsoft .NET intensifies, more and more companies are looking for help in building their J2EE applications.
XProperties is a simple subclass of java.util.Properties that allows you to treat property values like constants, referring to and embedding them inside other property values. It handles the substitution of the constant value automatically and transparently when you call the getPropert...
Many development shops have used J2EE to build a successful business-logic tier but have fallen short on obtaining the desired look and feel. On my current project we considered using applets as substitutes for GIF-based buttons, creating a utility to modify tree-based structure data a...
The performance of J2EE-based applications sometimes doesn't live up to users' expectations. Usually it's impossible to quantify exactly where the bottlenecks are. Many developers spend time searching for articles on the Internet only to find the same old tips about using the synch...
Errors in multithreaded programs may not be easy to reproduce. The program may deadlock or encounter other thread-related errors under only very specific circumstances, or may behave differently when running different VMs.
There are many articles about basic performance tuning a Java application. They all discuss simple techniques such as using a StringBuffer versus using a String, and the overhead of using the synchronized keyword.
This excerpt discusses the specifics of coding the Student Registration System (SRS). Java is an extremely rich language, and our goal is not to duplicate the hard work that has gone into existing Java language books, but rather to complement them by showing you how to bridge the gap b...
The absence of standard and familiar Java APIs presents one of the biggest obstacles when developing for Java 2 Micro Edition (J2ME). Since J2ME targets much smaller devices, it lacks many libraries and features that are normally available in larger Java installations.
After reading the previous articles in this series, we're now ready to apply our Java database knowledge to real-world applications. Perhaps the simplest example is utilizing JSP to dynamically present data stored in our database over the Internet.
Since this issue of JDJ is devoted to Linux, it's only appropriate to focus on architectural issues. In our case this means examining the various software architectures that use databases in Java applications as well as some details of the low-level operations that occur between a data...
JServ for me represents the best-value servlet engine on the market today. 'Why?' I hear you ask. Well, that's easy. It's free, of course. To this day, the fact that I can download the Apache Web server and JServ for Linux and have the beginnings of an excellent enterprise server for n...
In this series we've explored the process behind selecting a database and a JDBC driver as well as establishing a connection between your Java application and your database using JDBC. To actually do something useful, however, you need to be able to actively interact with a database us...
So here you are, the eager Java developer, about to embrace JDBC (Java Database Connectivity), the next item on your Java technology checklist. If you followed my last article (JDJ, Vol. 5, issue 9), you've selected a database system and a JDBC driver to help you master this technology...


ADS BY GOOGLE