Tag Archives: java

Interview questions: verify the braces

This is one of the easier coding tasks, but you still can meet it in some preliminary tech screening. The problem looks like this: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the … Continue reading

Posted in interviews, java, Programming, Uncategorized | Tagged , , , | 3 Comments

Cover your bases, or How to play the tests

Writing tests is an important part of a developer’s job, however, it can be boring. Especially if you are not a TDD fan and leave the tests for after the code is done, so that you have to write a … Continue reading

Posted in java | Tagged , , | Leave a comment

There’s something about… ThreadPoolExecutor

There’s definitely a lot to say about Executors in Java and ThreadPoolExecutor as a particular case, but what I recently ran into was a simple issue. An application gets a large stream of data from source to destination; it does so concurrently so as to speed up the process. Problem was, when I added the parallelism, the application started running out of memory very soon. Continue reading

Posted in java, Programming, Uncategorized | Tagged | Leave a comment

This is just Groovy, or stubbing chained method calls

This is just a quick note to self because I am prone to forget such things. This blog is my reminder right? I am writing down the things that may be of use later. So, today I spent a few … Continue reading

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

How to get a list of Tomcat session IDs using JMX and jconsole

Sometimes you want to check if a session is alive or already dead. There’s several ways how you can do it, but I want to tell about the one I found which looks rather simple – it’s by exposing catalina … Continue reading

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

JavaDay in Kharkiv

Recently, I’ve gone to Java Day Kharkiv (this is a website for it.) It was a big event for Kharkiv, actually; it’s been happening there for the first time, though it is not the first (or last) Java Day in … Continue reading

Posted in java | Tagged | Leave a comment

Returning to interview questions

There is a lot of types of interview. One is a #developer-in-a-vacuum type, where you are getting questions on algorithms and data structures and system architecture. The interviewers of this type couldn’t care less about your previous experience or the … Continue reading

Posted in java | Tagged , | Leave a comment