Tag Archives: java

Let’s make the stack explode in Java!

In one of my lectures about memory management in Java, I was looking for a quick and simple way to demonstrate the influence of local variables on the stack memory usage. So what came to my mind was this: Local … Continue reading

Posted in Java, Programming Essentials | Tagged , , , , ,

A simple way to obfuscate string literals

By Andre M. Maier While I was sitting in a doctor’s waiting room last week, it occurred to me that I could send out a geeky holiday greeting to my younger programming students. Naturally, as a teacher, I wanted to … Continue reading

Posted in Information Theory, Java, Programming Essentials | Tagged , , , , ,

Let’s make the heap explode!

This blog entry is dedicated to those who teach computer science at high schools and vocational schools. In one of my Java programming classes, only few of the students showed up. It didn’t seem to make sense to continue with … Continue reading

Posted in Java, Linux, Programming Essentials, Uncategorized | Tagged , , , , ,

Regular Expressions

At the very beginning of this post I’d like to point out that this is neither related to a specific programming language nor related to a specific operating system, although I’ll need to employ some “real-world” examples for better understanding. … Continue reading

Posted in Programming Essentials, Uncategorized | Tagged , , , , , ,

A Beginner’s Guide to Object Oriented Programming (1)

What’s so fancy about Object Oriented Programming? Computers have been invented to help real-world people solving real-world problems, even though it seems today that computers actually contribute problems to the real world. Since a plain computer doesn’t know anything about … Continue reading

Posted in Programming Essentials, Uncategorized | Tagged , ,

Conditional Assignments

Many programs require implementing some code which assigns values to variables based on certain conditions. Here is an example: if( a < 5 )    b = 3; else    b = 8; The same in abbreviated form (Java): b … Continue reading

Posted in Programming Essentials, Uncategorized | Tagged , , , ,

Loops

A loop allows to repeatedly execute a sequence of instructions. From the CPU’s view a loop simply means resetting the program counter (PC) which always points to the currently executed instruction. ; Example in some pseudo assembly language ; showing … Continue reading

Posted in Programming Essentials, Uncategorized | Tagged , , ,