Category Archives: Java

Using Inner class in Java

Here is the code:
package innerClasds.scjp.liguoliang.com;

import java.io.Serializable;

public class TestInnerClass {

private String name = “var+T

More…

Posted in Java | Tagged , , | Leave a comment

Java: Using Assertion in Eclipse

Assertion:
public static void main(String[] args) {
int x = 10;
assert x==100:”assertion failed!”;
}

How to determine assertion is enabled or

More…

Posted in Java | Tagged , | Leave a comment

About Exceptions in Java

Exceptions in Java:
                     &nbs

More…

Posted in Java | Tagged , | Leave a comment

Overloading and overriding method call

Overloading method will be determined by reference type, but override method will be determined by the actual object tyep. property is determined by

More…

Posted in Java | Tagged , , | Leave a comment

Java method invoked sequence

Static block / variable;
Instance block / variable;
Constructor;
public class StaticTest {
public static void main(String[] args) {
// System.out.p

More…

Posted in Java | Tagged , | Leave a comment