Latest Answer : Exception means runtime error and error occures during compile time.So exception could not be an error and viceversa. ...
In interfaces the methods just defined without implementation then what is the purpose of defining the methods?
Latest Answer : Even though we call a jsp page from servlet through request dispatcher,we can not call a perticular method of a jsp from servlet.there is no such mechanism in servlet API.but iam not sure. ...
Latest Answer : no primitive methods in javaactully java have eight primitive variables boolean,byte,char,int,float,short,long,double, ...
Latest Answer : String are made immutable because 1. better memory management.Generally thousands of string literals objects are created in any of the application.To avoid the individual memory allocation to all the string objects ,JVM creates the string literal objects ...
Latest Answer : According to the Java Specification, the four methods related to threading is defined in the Object class rather than the Thread Class, because of the Java Concurrency and Synchronised construct. As we start the JDK, there are different therad runs ...
Latest Answer : Hi,Destroy method is a method where we can provide the actions (to free up the resources)Â to be performed while the servlet is getting unloaded. In general when a servlet is getting destroyed the servlet container calls this method and also does many ...
Servlet is Java class. Then why there is no constructor in Servlet? Can we write the constructor in Servlet
Latest Answer : Considerint a = 10;int b = 2*a;now consider a variable having the name of 2*a then what will happenint 2*a = 89;compiler will be confused and will not consider it as identifierbut consider it as multiplication sort of thing.As java has no type of compiler ...
Latest Answer : it is used to load the class at runtime and in jdbc it is used to load the driver and according to specification every driver class must contain a static block in which it contains the code to instanciate itself and the register itself with the driver ...