sivadasan


{ City } chennai
< Country > india
* Profession * software engineer
User No # 38706
Total Questions Posted # 10
Total Answers Posted # 25

Total Answers Posted for My Questions # 17
Total Views for My Questions # 90182

Users Marked my Answers as Correct # 173
Users Marked my Answers as Wrong # 70
Answers / { sivadasan }

Question { Ajmal Perfumes, 6157 }

How to select the right answer?


Answer

Read all the answers. Come for a partial or it may full
fledged conclusion. And go for an authorised or verygood
sites for technical clarification. Just compare your answer
with the exact concept which is expalined there. Now u have
the exact answer with brief knowledge on it.

Is This Answer Correct ?    1 Yes 0 No

Question { HDFC, 16195 }

in which sports left hand not used


Answer

POLO is Correct.

Players must hit right-handed.

Is This Answer Correct ?    3 Yes 1 No


Question { Oracle, 7622 }

What is the basically use of finally while we know it
is always executed but why?


Answer

Finally block always execute, its not consider whether an
exception is raised or not. Once try block is executed
means finally will be executed.

Finally block is necessary, often sufficient to execute
some important things its nothing but connection close
stmt..

system.exit(0); given in try catch block means finally
block will not be executed.

Is This Answer Correct ?    4 Yes 0 No

Question { Wipro, 10190 }

Why can't we make jsp as a controller and action
servlet in struts?


Answer

Most of the applications are created in MVC design pattern
to seperate the functions of differnet components and
handle the complexity of applications.

JSP and Servlets are the server side components which can
respond to the client request.

Servlets are the basic components for request handling in
Web Server. They contains pure Java code.

Everything that needs to be done to generate the proper
user response (which is genarally HTML code) needs to be
done through coding. As a single servlet cannot respond
each and every request by itself as client request varies
in type (e.g. enquiry update request add etc) the request
and response object is passed onto different servlets with
little task completed by each servlet.

This controlling part is easier to write in java. So
Servlet is used as controller.

Is This Answer Correct ?    0 Yes 2 No

Question { 13276 }

There are two persons on death bed. God has given a chance
to save one of them.one is the person who loves u, and
another is the one whom u love.whom do u save and y?


Answer

Sorry ... I wont save anybody... If i want to save anyone
you have to give offer immediately... That's it

Is This Answer Correct ?    2 Yes 1 No

Question { TCS, 96492 }

In Java why we write public static void main(String args[])
why not main()?


Answer

1. public - Access Specifier, properties and methods can
access anywhere, any package.

2. main() - The Java environment starts the execution of a
program from main() method.

3. void - The main() method is not return anything. So the
return type of the main() method must be void.

4. static - The jave environment able to call the main()
method without creating an instance of the class. So its
declared as static

5...(String args[]) -- In java, whatever we give, it will
takes as String. So we are giving the command line argumet
as String.


i hope it will help u..

Shivadasan
Coromandel Infotech

Is This Answer Correct ?    16 Yes 4 No

Question { Ness Technologies, 12915 }

How many objects are created for a singleton class


Answer

Singleton class allows to create only one instance of the
class. But the other objects can inherit from it. Singleton
is a Design Pattern to restrict create more than one
instance of a class.

And

1. It ensures only one object created for a class
2. Provides global point of access.

Mostly it is used to create DB connections.

Is This Answer Correct ?    4 Yes 1 No

Question { Accenture, 8986 }

How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size


Answer

Answer 'C'

Is This Answer Correct ?    3 Yes 17 No

Question { Accenture, 8503 }

System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0


Answer

Answer is 7 Only...it will not print the float value..

Is This Answer Correct ?    17 Yes 1 No

Question { Cybernet, 7034 }

I have 100 records in a table with two rows. I need to
display 10 records per page like Google Search. I need only
the Logic(Pagination) in Pure Java. No JSP and all..Thanks
in Advance...


Answer

Thanks Avani...

Is This Answer Correct ?    2 Yes 4 No

Prev    1    [2]