Exceptions are usually the things when something is wrong with the code.
Error is sth which is out of your control , and jvm usually crashes in case of Error so you can't continue the program .
Type: Posts; User: prakash_13dec; Keyword(s):
Exceptions are usually the things when something is wrong with the code.
Error is sth which is out of your control , and jvm usually crashes in case of Error so you can't continue the program .
Checked Exceptions are checked by the compiler during the compile time so if you have not handled (using try/catch or throws) the checked exception you wud not be able to complie the class....
sorry can u explain what kind of fields need to be validated?
sorry i dint get the question, can u explain?
it actually uses both hashCode and equals for find the keys.
you mean Data Encapsulation?
This comes directly from the java api
public class WeakHashMap
extends AbstractMap
implements Map
A hashtable-based Map implementation with weak keys. An entry in a WeakHashMap will...
nearer to date itself?? and how much near?
First of there seems to be a problem with this code:
public int compare(Object CODE, Object Time) {
if(CODE instanceof Summary & Time instanceof Summary)
{
Summary p1=(Summary)CODE;...
You can have a table for currently logged in users lets say CURRENT_USERS
when ever a user logs in check against this table to see if he/she is there in that table , if not let the user log in...
http: // www . mail . yahoo . com is the path where the server for yahoo is listening for requests ..
htt: // www . yahoo . com/mail is a subfolder (logically) in that web application.
have u imported the class containing the your Form class? or else is your Form in the class path?
it should throw some exception i guess , as the init() method is called only once during the life cycle of a servlet.
the init() method has signature like public void init() throws ServletException
it is usually called by init(ServletConfig sc) method
so yes if u override init() it is still going to be...
having connections open is like programmer sitting on beach(doing nothing) :) now wud that not be a waste of resource?
what is the error/exception message?
when an exception is thrown print the stack trace and see which method actully cused the exception.
well what i think is it should have been called NULLREFERENCEEXCEPTION instead of null pointer..
whether Java supports or does not support can be answerd just by answered " Can u use pointers in...
hmmm .. instances and objects are actully one and the same thing..
and yeah they are created in the heap , how much size is allocated it doest matter as you cant' control it ..
well , the subclass constructor has access to the superclass' constructor but subclass constructor can't override the superclasses constructor , so NO its not inherited.
okay well Lets' see ,,,
if i ask you to create an Animal , (mind it i m asking an Animal not Dog ,Cat, Lion , Monkey , Cow , Goat ,Whale, Fish , cockroach or like) how wud to create an Animal??? ...
the one basic difference between String and StringBuffer classes is that
if you change the value of an object referred to by String it will create a new object (so u will end up with two String...