Win a copy of Spring Boot in Practice this week in the Spring forum!

Abhi Deshmukh

+ Follow
since May 05, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhi Deshmukh

You can use "AJAX" on onclick event of "Add Admin" button. This will make an request to server where you can call your AddUser() method.
Congratulations !!!
12 years ago
I am agreeing with Henry.
Have a look at below code snippet where we are using "this" explicitly to clear picture.

And we know that within an instance method or a constructor, this is a reference to the current object (Derived object in our case) — the object whose method or constructor is being called. We can refer to any member of the current object from within an instance method or a constructor by using this.
Since printMe() method is overridden in Derived class it get executed.
12 years ago
You can create an instance of HelloWorld class that is not inside any package from within class with the help of reflections API.

Output is :-


add is valid prefixes for bean.
Listener method names used to "register" a listener with an event source must use the prefix add, followed by the listener type.
For example, addActionListener() is a valid name for a method that an event source will have to allow others to register for Action events.
Therefore option (A) is invalid.
I think we can not deserialize the object keeping the updated serialVersionUID.
It is because serialVersionUID is an exception to the rule that “static fields don’t get serialized”.
ObjectOutputStream writes every time the value of serialVersionUID to the output stream.
ObjectInputStream reads it back and if the value read from the stream does not agree with the serialVersionUID value in the current version of the class, then it throws the InvalidClassException.
12 years ago