Hi,? No,we can't? declare both final and abstract for the same method,B'coz if you declare method as abstract means we are declaring?a method not actual a concrete method? so we need to override i...
If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.Regard...
san
Nov 8th, 2005
IF EXCEPTION WILL OCCUR THEN WE CAN THROW THAT TYPE OF EXCEPTION IN TRY BLOCK AND CATCH IT IN CATCH BLOCK
Exception object can be caught only once after it was caught i think it will be eligible for garbage collection. Not that it will be immediately destroyed but it will be destroyed soon if we are not using that object to detect what kind of exception it is.
Java is not pure object oriented language because all data types are not object. In java we can use primitive data types they are not objects.? PURE OOPL? everything should be objects and methods.
Because there is no concurrency with respect to the object. Like Objects itself can not do anything unless it has some methods / lines of code to operate.
What sense it makes to 'synchronize' a class? Threads going to execute across only blocks or method (sequence of code). The class itself doesnt have any code sequence.-- Manivannan Palanichamy
Home object is store in jndi.client get the home object using lookup method.if we call create method in the home object it returns remote object.using of the remote object we call the remote methods,
ss
Nov 9th, 2005
I beleave this question is belonging to ejb. Home interface is an interface acts like a create factory. JNDI is stands java naming domin interface.
String object are immutable so they are not garbage collectedall kinds of objects are garbage collected except string objectso try to avoid the usage of string objects in a large application
Constantin Chertakovsky
Oct 30th, 2005
A full GC condemns all objects. An ephemeral GC only condemns one or more ephemeral generations; older generations are not condemned and thus not subject to this garbage collection
MVC Model View ControllerThis is basically an architecture that is used to stress the reusing object oriented concept that will be conducive for programmer as well others.You can use more than one con...
Bhupender
Nov 9th, 2005
Actually MVC is basically an arachitecture in which there is clear seperation between presentation and business logic.MVC M(Model) :Is your bean (conataining information like name,age,sex,add
Finalize method is used to clean up the unmanaged code. when we use the finalize method that object reference will be placed into the finalize queue. so whenever the memory required the GC will lookinto the finalize queue and corresponding object will be freed.
By using notify() or notifyAll() method we can release the lock.But notify() method sometimes notify unwanted thread.So in some situation notify() method is avoidable.
You can remove in iterate but not in enumeration while walkin through
keerti
Oct 21st, 2005
The Enumeration interface is what allows you to walk through the elements of a legacy collection(ie., for Synchronized Collections). Iterator interface is used for stepping through the elements(.ie., for ArrayList,LinkedList).
Web Server contains only web container which can handle only http requests and Application server contains both web container and EJB Container.
Madhava
Oct 2nd, 2005
Difference b/w AppServer and a WebServer? Web server serves pages for viewing in web browser, application server provides expose business logic for client application through various protoc...
In DriverManager.getConnection jdbc url is the parameter .it it is type 1 driver then the parameter is (jdbc:odbc:data sourcename);for type 2 the driver name is (jdbc:oracle:oci:netservice name:scott : tiger)for type 4 (jdbc:oracle:thin:@localhost: 1521:orcl:scott:tiger)
Servlets are serverside programs, we can execute servlets with in web or application servers only.Using servlets we can't generate presentation very effectively because html code is hard coded in serv...
Ans