vijay


{ City } bangalore
< Country > india
* Profession * se
User No # 3151
Total Questions Posted # 0
Total Answers Posted # 36

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 461
Users Marked my Answers as Wrong # 82
Answers / { vijay }

Question { 6049 }

what is wrapper class and its uses?


Answer

A class enclosed or Wrapped the primitive data type is
called wrapper class.

Number class is the super class for Wrapper class. subclass
of Number classes are Byte,Short,Intger,Long,Float,Double,
Character

primitive values Wrapper class

byte Byte
short Short
int Integer
long Long
float Float
char Character

Mostly the wrapper classes are used to pass the date thru
networks/serializable.

Is This Answer Correct ?    3 Yes 2 No

Question { Photon, 7356 }

what is the life cycle of jsp?


Answer

jsp life cycle:
===============
1.Page translation - automatically translate the .jsp file
in .java(servlet)file
2.Compilation - automatically compile the .java(servlet)
file and create .class file .
3.Loading - load the compiled servlet into container.
4.Create instance - create instance for loaded servlet
(.java)
5.call jspInit method. (call only one time)
6.call _jspService method
7.call jspDestroy method.(call only one time)

Is This Answer Correct ?    10 Yes 2 No


Question { 5659 }

how exactly garbage collection take place?


Answer

Variable/object
1. is eligible for garbage collection when no object refers
to it.
2. Is eligible when its reference is set to null i.e
objName=null.
3. referred by method variables or local variables are
eligible for garbage collection when they go out of scope.

Is This Answer Correct ?    1 Yes 0 No

Question { 8779 }

How to make class immutable


Answer

Steps:
1. Create class as final class
2. Make all the properties i.e instance variable as final.
3. Avoid or make the least access for the setter method
for properties.

Is This Answer Correct ?    2 Yes 0 No

Question { TCS, 22983 }

Can we declare static variables in JSP page.


Answer

In Declaration tag (<%! -- %>), you can able declare the
static variable,class, define methods.

Is This Answer Correct ?    23 Yes 4 No

Question { 5740 }

If there is no implementation of MARKER INTERFACE in java.
Then how compiler come to know about specification.


Answer

Every marker interface has some specific functionality and
no methods in that interface.

Ex:
Searializable - Persistent purpose
Clonnable - for cloning the object
SingleThreadedModel - only one object can be create.

Is This Answer Correct ?    1 Yes 0 No

Prev    1   2    [3]