rakesh kumar jha


{ City } new delhi
< Country > india
* Profession * software developer
User No # 13534
Total Questions Posted # 1
Total Answers Posted # 4

Total Answers Posted for My Questions # 1
Total Views for My Questions # 3017

Users Marked my Answers as Correct # 44
Users Marked my Answers as Wrong # 13
Questions / { rakesh kumar jha }
Questions Answers Category Views Company eMail

after installatio of ORACLE 8i, work properly, but after restarting the system, it throw an error ORA 01034: ORACLE not availble

1 Oracle General 3017




Answers / { rakesh kumar jha }

Question { DELL, 20100 }

Can an unreachable object become reachable again?


Answer

YES, Finalization is a feature of the Java programming
language that allows you to perform postmortem cleanup on
objects that the garbage collector has found to be
unreachable. It is typically used to reclaim native
resources associated with an object.
When the garbage collector determines that obj is
unreachable, it notices that obj is finalizable -- as it
had been recorded upon allocation -- and adds it to the
JVM's finalization queue. It also ensures that all objects
reachable from obj are retained, even if they are otherwise
unreachable, as they might be accessed by the finalizer.

So, we can say that it can be reachable.

Is This Answer Correct ?    10 Yes 1 No

Question { 6000 }

How many times garbage collector will invoke an object?s
finalize() method?


Answer

whenever object is go beyond the reachable gc invoked the
object by the finalize method, but it should be atleast
once in life cycle.

Is This Answer Correct ?    4 Yes 0 No


Question { Wipro, 43806 }

can we have virtual functions in java?


Answer

In java all method use dynamic method lookup and therefore
are be default virtual. so there is no way to explicity
call an overriden base class method, but overwriting can be
prevented by declare a method final.

Is This Answer Correct ?    29 Yes 12 No

Question { 5274 }

Thanks A.jyotsna,
Can u tell me differnce between abstract class and interface

vikash


Answer

Abstract class:-
1. if we declare ny class as a abstract, then we can't
create an object/instace of that class explicitly.
2.afbstracts class may or may not contain abstract method.
3. if on declare any method as an abstract, then the class
should be declared as abstract.
4.if a method is declared as abstract in abstract class,
then child bound to define the abstract method of parent.
5.abstract class may contain constructor.
6.abstract class may hold the child object.
Interface class:-
1.by default all method be abstract.
2.class can implements more than one interface class.
3.child should give the body of all method of interface
class, but if a child class with abstract keyword, then nod
need to give the body of interface classes method.
4.interface can't create objects but can hold the object of
child.
5. variable in interface class are by default public,
static and final.
6.we can't use the final, static, native,synchronous
keyword with the methods define in interface.
7. we can't declare interface as final.


if any question have, tell me at rkjhaw@sify.com or
info@shandilya.org

Is This Answer Correct ?    1 Yes 0 No