Tag Archives: Java

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

Java Notes-5

Java™ Application Development on Linux® – Free 599 Page eBook Enterprise Java Virtualization: Understanding the TCO Implications InfoWorld’s Java IDE Comparison Strategy Guide: Java Essential Training Apache Jakarta Commons: Reusable Java™ Components Enabling Rapid ROI: With Java™ – Based Business … Continue reading

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

Java Notes-4

Note that, in certain situations an Inner class may not be able to extend some other particular class (for eg. a static inner class cannot extend another non-static inner class in the same class). But in general there is no … Continue reading

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

Frequently Asked Questions in Java Part-14

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: What is the importance of static variable? Answer: static variables are class level variables where all objects of the class refer to the … Continue reading

Posted in Java | Tagged , , , , , , , | Leave a comment

Frequently Asked Questions in Java Part-13

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: Java Runtime Environment (JRE): Answer: A subset of the Java Development Kit (JDK) for end-users and developers who want to redistribute the runtime … Continue reading

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

Frequently Asked Questions in Java Part-12

Disclaimer: “Sources Unknown”; Compilation only; I compiled it from various sources When I was exploring Java. Question: What are different types of inner classes? ANSWER:  Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare … Continue reading

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

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-10

Question: What are three ways in which a thread can enter the waiting state? Answer: A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object’s lock, or … Continue reading

Posted in Java | Tagged , , , , , , , | Leave a comment

Frequently Asked Questions in Java Part-9

Question: What are access modifiers Answer: These public, protected and private, these can be applied to class, variables, constructors and methods. But if you don’t specify an access modifier then it is considered as Friendly Question: Can protected or friendly … Continue reading

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

Frequently Asked Questions in Java Part-8

Question: What is Externalizable Interface ? Answer: Externalizable interface is a subclass of Serializable. Java provides Externalizable interface that gives you more control over what is being serialized and it can produce smaller object footprint. ( You can serialize whatever … Continue reading

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