Tag Archives: Languages

Java Notes-6

interface I { int i = Test.out(“i”, 1); int ii = Test.out(“ii”, 2); }interface J extends I { int j = Test.out(“j”, 3), jj = Test.out(“jj”, 4); }interface K extends J { int k = Test.out(“k”, 5); }class Test { … Continue reading

Posted in Java | Tagged , , , , , , , , , | 1 Comment

Frequently Asked Questions in Java Part-11

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: It is said that the code in a finally clause will never fail to execute, Is there any example where it fails to … Continue reading

Posted in Java | Tagged , , , , , , , | 2 Comments

Frequently Asked Questions in Java Part-7

Question: What is the difference between notify and notify All methods ? Answer: A call to notify causes at most one thread waiting on the same object to be notified (i.e., the object that calls notify must be the same … Continue reading

Posted in Java | Tagged , , , , , , , | 2 Comments

Frequently Asked Questions in Java FAQs Part-4

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: What types of values does boolean variables take It only takes values true and false. Which primitive datatypes are signed. Answer: All except … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , , , | 2 Comments

Java Notes-3

You need a boolean in the if condition. An overriding method only needs to declare that it can throw a subset of the exceptions the overriden method can throw. Having no throws clause in the overriding method is OK. Normal … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 4 Comments

Frequently Asked Questions in Java Part-2

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: What is a task’s priority and how is it used in scheduling? Answer: A task’s priority is an integer value that identifies the … Continue reading

Posted in Java | Tagged , , , , , , , | 11 Comments

Coder’s Delight- Java 7

The first feature-complete release of JDK 7 is available. It doesn’t mean JDK 7 is done, but the feature list is baked. As of build 123, JDK 7 is feature complete! The big features, as promised, are there (InvokeDynamic and … Continue reading

Posted in Java | Tagged , , , , , , , , , , , | 3 Comments

TROVE-High Performance Collections for Java

Fast, lightweight implementations of the java.util Collections API. These implementations are designed to be pluggable replacements for their JDK equivalents. Gap in Java Collections in Java accept only reference types as its element, not primitive datatypes. When trying to do … Continue reading

Posted in Java | Tagged , , , , , , , , , , | 2 Comments

Checkstyle~A static code analysis tool

Really big projects require the input of hundreds of programmers, often geographically dispersed and with great differences in skill level. Code reviews are essential to code quality, but no team wants to review tens of thousands of lines of code, … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , | 5 Comments

Understanding Object-Relational Persistence

Understanding Object-Relational Persistence According to Wikipedia Persistence in computer science refers to the characteristic of data that outlives the execution of the program that created it. Without this capability, data only exists in RAM, and will be lost when the … Continue reading

Posted in Hibernate | Tagged , , , , , , , | 1 Comment