Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

interview question  RSS feed

 
jyothi sanka
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was asked questions in interview

1How did you display data in your jsp?

2 when do you use ArrayList and LinkedList?
3 would you prefer database code in application server or in stored procedures in database server? what are the advantages and disadvantage?

4 Objects takes parameter by pass by reference then why String Object takes oparameter by pass by value?
5 why would you do clientside validation? what are the advantages over serverside validation?
can Please give some answers for discussion
 
chris noe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1How did you display data in your jsp?
Using expressions, or tags (JSTL), or custom tags

2 when do you use ArrayList and LinkedList?
LinkedList : keeps the order of objects

3 would you prefer database code in application server or in stored procedures in database server? what are the advantages and disadvantage?

I could write a book about this. I would prefer in the DB, so other non-java applications can use the same code.

4 Objects takes parameter by pass by reference then why String Object takes oparameter by pass by value? -> strings are immutable.

5 why would you do clientside validation? what are the advantages over serverside validation? -> faster response.
 
sweta naidu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chris noe:
would you prefer database code in application server or in stored procedures in database server? what are the advantages and disadvantage?

I could write a book about this. I would prefer in the DB, so other non-java applications can use the same code.


what if database is changed ex oracle to sqlserver.
Important thing is whenever problem comes you have look for logic in two different places ( i dont think its a good idea ).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!