Breaking News
Home / Java / Java FAQ (page 3)

Java FAQ

How does Try/Catch/Finally work in Java?

Answer try { // Normally this code runs from the top of the block to the bottom// without problems. But it can sometimes throw and exception,// either directly or with a throw statement or intdirectly by calling// a method that throws and exception.}catch (SomeException e1) {// This block contains statements …

Read More »

What new in JDK 7.0?

Here is the run done of some of new features of JDK 7.0   JSR 292: Support for dynamically-typed languages (InvokeDynamic) Strict class-file checking JSR 334: Small language enhancements (Project Coin) Upgrade class-loader architecture Method to close a URLClassLoader Concurrency and collections updates (jsr166y)<!

Read More »

How do you compare C++, Go, Java and Scala?

Benchmark A  recent benchmark done by Google for each of these languages by implementing an algorithm using each language classes, looping constructs, and memory/object allocation schemes and here’s how the benchmark result looked like. C++ provides the best performance by far, but it requires the most extensive language-specific tuning. Scala …

Read More »

Is Java susceptible to buffer overflow issues?

Answer: No, the Java development language does not suffer from buffer overflows,  as long as native methods or system calls are not invoked, buffer overflows are not an issue. Generally these buffer overflow are more prevalent in languages like C, C++ where in the memory management is done by the …

Read More »

Int Overflow in Java

Integer overflow – sound familiar, isn’t it. This is one of the things every developer must have experience at least once during programming lifespan. Its a very common design flaw that acts as an silent killer and will crash the application/transaction or lead to erroneous result once overflows. So what …

Read More »