29th June 2007

complete programmers reference

@ http://www.beyondaltitude.com

posted in java tutorials | 1 Comment

Written by: amjithps@gmail.com

26th June 2007

One Million Visitors

Wow, I pay so little attention to this blog at the moment, that I didn’t notice my visitor count rolling over 1 million. It must have done so at least a couple of weeks ago. Update I checked and it was May 30th at approximately 15:47 GMT and it looks like it was a visitor from the Netherlands.

My page view counter is nearly at 10 million too.

posted in java | 0 Comments

Written by: mike

25th June 2007

Happy Birthday Sue

Happy Birthday Sue!

Lots of love,
Jan, Mike, and Jamie
xoxoxox

posted in java | 0 Comments

Written by: mike

19th June 2007

What is the first argument of the String array in main method?

The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.

posted in core java | 0 Comments

Written by: admin

19th June 2007

What if I do not provide the String array as the argument to the method?

Program compiles but throws a runtime error “NoSuchMethodError”.

posted in core java, java interview questions | 0 Comments

Written by: admin

19th June 2007

What if I write static public void instead of public static void?

Program compiles and runs properly.

posted in core java, java interview questions | 0 Comments

Written by: admin

19th June 2007

What if the static modifier is removed from the signature of the main method?

Program compiles. But at runtime throws an error “NoSuchMethodError”.

posted in core java, java interview questions | 1 Comment

Written by: admin

19th June 2007

What if the main method is declared as private?

The program compiles properly but at runtime it will give “Main method not public.” message.

posted in core java, java interview questions | 0 Comments

Written by: admin

19th June 2007

What is final?

A final class can’t be extended ie., final class may not be subclassed. A final method can’t be overridden when its class is inherited. You can’t change value of a final variable (is a constant).

posted in core java, java interview questions | 0 Comments

Written by: admin

19th June 2007

What is static in java?

Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can’t override a static method with a nonstatic method. In other words, you can’t change a static method into an instance method in a subclass.

posted in core java, java interview questions | 0 Comments

Written by: admin

JAVAGUIDELINES