Total members 11894 |It is currently Mon Nov 25, 2024 9:24 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





1)In a class i have 10 variables... out of them i want to serialize

only 3 variables..how to do it?


you have to implement serializable interface and you have to declare variables
as transient which are not supposed to serialize.

2)In a class i have 2 methods.Each is associated with 2 threads (t1

for method1,t2 for method2).Both the methods r synchronized. .Now if i

call both the methods...will they execute simultaneously or not?


please explain?


it may lead to deadlock.

3)What is permanent generation ofJVM?



4)What is ORM file?

Object Relation Mapping in heard that it is used in Spring Frame work.

5)What is the default value in <load-on-startup> tag...what is the

difference among 0,1,2,3 etc...?




6)How people r saying that vector is a legacy class..what' s the logic

behind?


Vector is legacy class means it was built before the collection framework cames
without any synchronization. The Vector and Hashtable both are legacy class.
Which are implemented before Collection Framework is implemented.


7)How to synchronize a class?




8)Is an Action class itself is Servlet or not?





9)What is difference b/w Class Variables and Instance

Variables..and. .how can i find whether a variable is a CV r IV just by

looking at them in a class?


Class variables are declared as static with static keyword.
others are instance variables if they are not declared in method.


10)Which method will be called first in a Form-bean class?




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Java Important interview questions
 java interview questions     -  
 Important JSP tags     -  
 Important : Read before you post .     -  
 Usage of the CSS property !important     -  
 web hosting sites free check out important useful     -  
 Get the important variables of random forest classifier     -  
 Questions: Perl Script. PHP.     -  
 return false; questions     -  
 Real questions for BlackBerry BCP-211 exam     -  
 broken latest 1D0-435 test questions     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com