Tuesday, August 16, 2011

Interview Questions on Software testing

Software Testing Interview Questions

Here are some of the most common Software testing Interview Questions asked during Interviews.

1) How do you define the job responsibilities of a software tester?
2) What are the entire different software testing applications do you know?
3) Describe about a major obstacle you found during testing an application or a program?
4) Why do you like testing rather than programming?
5) What do you think is the future of this industry?
6) What are the problems you faced when you automated testing tool?
7) Explain how you can activate the test case design and explain us the possibility of the process?
8) What are all the test principles you advise to a programmer?
9) Describe some common problems you face during testing?
10) What are all the testing projects you have handled?
11) How do you determine the working of specific tools work with your application?
12) What are the different tools available for testing during software development cycle?
13) What so you mean by synchronization and how do you implement it win load runner?
14) Why should win load runner be used and what are the advantages of it? Explain a case scenario when you used it?
15) Compare win runner to other products in the market?
16) What is the difference between context sensitive and analog recordings?
17) Explain to me about test director?
18) Give differences between Test Director and win runner?
19) What are the possible ways to check a bitmap?
20) State the different databases on which Test director can reside on?
While answering these questions to the interviewer it is very imperative to answer these questions in detail. Interviewer wants to know the amount of information you know and he will be very pleased if you can answer to him thoroughly. In most of the interviews there will be a written test on passing that test you will be put through a one-one interview. In a one-one interview you will be asked on various topics and issues.
21) Explain what is a module and the features and uses of compile module?
22) When should you use verify/update and debug modes?
23) Explain about a batch test and when do you use it?
24) Explain to us about the various projects you have performed using win runner?
25) What is a test data and what is the effective way to manage it?
26) Can win runner be used for testing web and web applications?
27) What is the difference between a quality analysis and quality check?
28) What are the different test cases you formulate when there are no documents or data for the test case schedule?
29) Explain about back end testing and Unit testing?
30) State and explain about Defect life cycle?
31) Explain about the bug life cycle?
32) What is a traceability matrix and how is it done?
33) If the test scenario involves a login screen how will you test it?
These are some of the questions which can help you in preparation to the testing interview. If you don’t understand a particular question ask the interviewer he will be the right person to guide you.

Interview Questions on Unix Commands

Unix Commands Interview Questions

1) State and explain about features of UNIX?
UNIX operating system originally was developed in 1969. This is an open source operating system developed by AT&T. It is widely used in work stations and servers. It is designed to be multi tasking, multi user and portable. UNIX has many several components packed together.

2) Explain about sh?
Sh is the command line interpreter and it is the primary user interface. This forms the programmable command line interpreter. After windows appeared it still retained the programmable characteristics.

3) Explain about system and user utilities?
There are two utilities they are system and user utilities. System utilities contain administrative tools such as mkfs, fsck, etc. Where as user utilities contain features such as passwd, kill, etc. It basically contains environment values.

4) Explain about document formatting?
UNIX systems were primarily used for typesetting systems and document formatting. Modern UNIX systems used packages such as Tex and Ghostscript. It uses some of the programs such as nroff, tbl, troff, refer, eqn and pic. Document formatting is very used because it forms the base of UNIX.

5) Explain about communication features in UNIX?
Early UNIX systems used inter user communication programs mail and write commands. They never contained a fully embedded inter user communication features. Systems with BSD included TCP/IP protocols.

6) Explain about chmod options filename?
This command allows you to change, write, read and execute permissions on your file. Changes can be done to the file system but at times you need to change permissions for the file systems. At times files should be executable for viewing the files.

7) Explain about gzip filename?
Gzip filename is used to compress the files so that those files take up less space. The size of the file actually gets reduced to half their size but they might also depend upon about the file size and nature of the file systems. Files using gzip file name end with .gz.

8) Explain about refer?
Refer was written in Bell Laboratories and it is implemented as a troff preprocessor. This program is used managing bibliographic references and it is used to cite them in troff documents. It is offered in most of the UNIX packages. It refers with text and reference file.

9) Explain about lpr filename?
This command is used to print a file. If you want to change the default print you can change the printer by using the P option. For double sided print you can use lpr-Pvalkyr-d. This is very useful command in UNIX present in many packages.

10) Explain about lprm job number?
This command is used to remove documents from the printer queue. The job number or the queue number can be found by using lpq. Printer name should be specified but this is not necessary if you want to use your default printer.

11) Brief about the command ff?
This command finds files present anywhere on the system. This command is used to find document location where you forgot the directory in which you kept the file but you do remember about the name. This command is not restricted in finding files it displays files and documents relevant to the name.

12) Brief about finger username?
This command is used to give information about the user; it gives out a profile about the user. This command is very useful for administrators as it gives the log information, email, current log information, etc. finger also displays information such as phone number and name when they use a file called .plan.

13) Explain about the command elm?
This command lets you to send email message from your system. This command is not the only one which sends email there are lots of other messenger systems which can facilitate the process of sending a mail. This command behaves differently on different machines.

14) Brief about the command kill PID?
This command ends the process to which it was assigned (ID). This command cannot be used in multi systems in the network. ID can be obtained by the command ps. This command ignores completely the state at which the process is it kills the process.

15) Explain about the command lynx?
This command helps you to browse web from an ordinary terminal. Text can be seen but not the pictures. URL can be assigned as an argument to the G command. Help section can be obtained by pressing H and Q makes the program to quit.

16) Brief about the command nn?
This command allows you to read the news. First you can read about the local news and then the remote news. "nnl” command makes or allows you to read local news and nnr command is used to read remote news. Manual and help information is available with many popular packages.

17) Brief about ftp hostname?
This command lets you download information, documents, etc from a remote ftp. First it is important to configure an FTP for the process to begin. Some of the important commands relevant to the usage of FTP are as follows get, put, mget, mput, etc. If you are planning to transfer files other than ASCII defined it is imperative to use binary mode.

Interview Questions on Unix

Unix Interview Questions

1) What exactly is UNIX?
UNIX is written in C and it is portable. It runs on a range of computers from microprocessors to the largest mainframes. The source code is available and written in high level language which makes it easy to adapt for a particular requirement.
2) Explain about the return key?
Return Key signifies the end of a line of input; it must be presses before the system will interpret the characters you have types. It serves as an example of control character return key can be typed by holding the control key and typing M.
3) Explain about DELETE and BREAK?
These keys have significant meaning sometimes DELETE is called as RUBOUT key. Break is sometimes called INTERRUPT. In most SYSTEMS the delete key stops a program immediately, without waiting for it to finish on some systems, Ctrl-C provides this service. Break is a synonym for DELETE or CTRL-C.

4) Explain about TYPE-ahead?
The kernel reads what you type as you type it, even if it’s busy with something else, so you can type as fast as you want, whenever you want, even when some command is printing at you. Your I/P characters will appear intermixed with the O/P characters but they will be stored away and interpreted in the correct order.

5) How to get a computer aided instruction?
Your system may have a command called learn which provides computer aided instruction on the file system and basic commands, the editor, document preparation and even “C” programming. IF $learn exists on your system, it will teach you what to do from there.

6) Explain about cat?
Cat is the simplest of all the printing commands. Cat prints the contents of all the files named by its arguments. The named file or files are catenated the terminal one after another with nothing between. You have to be quick with CTRL-S to stop O/P from cat before it flows off your screen.

7) How to search files for lines that match a pattern?
Grep command searches for files for lines which match a pattern.
E.g. g/regular expression/p.grep will also look for lines that don’t match the pattern, when the option-V is sued. grep can be used to search several files in that case it will prefix the filename.

8) Describe about the root file system?
The root file system has to be present for the system to execute /bin, /dev, and /etc are always kept on the root system because when the system starts only files in the root system are accessible and some files such as /bin/sh are needed to run at all. During the boot strap operation, all the file systems are checked for self consistency and attached to the root systems.

9) Explain about ZAP?
ZAP, which selectively kills processes, is another program. The main problem with that version is speed; it creates so many processes that it runs slowly, which is especially undesirable for a program that kills errant processes rewriting ZAP in C will make it faster.

10) Suppose that you are using a terminal in which the screen size is bigger than the normal 24 lines. If you want to use p and take full advantage of your terminal capabilities what choices are open to you?
You have to specify the screen size each time you use P. $P-36.
Also you could put a shell file in your bin.
$cat/usr/you/bin/p
Exec/usr/bin/p-36$*
$
Another solution is to modify p to use an environment variable that defines the properties of your terminal.

11) Explain abut low-level I/O?
The lowest of I/O is a direct entry into the O.S. your program reads or writes files in chunks of any convenient size. The kernel buffers your data into chunks that match the peripheral devices and schedule operations on the devices to optimize their performance over all users.

12) What are the special arrangements to make a terminal i/p and o/p?
When it is started by the shell, a program inherits three open files, with file descriptor 0, 1 and 2 called the standard i/p, the standard o/p, and the standard error. If the program reads “0” and writes descriptors 1 and 2, it can do I/O without opening files.

13) Explain about read slow?
One can call to read return 0 which signals the end of file life, if data is written on that file then a subsequent read will be able to find more bytes available. This observation is the basis of a program called readslow which continues to read its input, regardless of whether it got an end of file or not. Readslow is handy for watching the progress of the file.

14) What function does “errno” do?
Sometimes it is nice to know what specific error occurred; for this purpose all system calls, when appropriate, leave an error number in an external integer called calls, when appropriate, leave an error number in an external integer called errno. By using errno, your program can, for example, determine whether an attempt to open a file failed because it did not exist or because you lacked permission to read it.

15) Describe the process of “spname”?
The operation of spname is straightforward enough, although there are a lot of boundary conditions to get right. Suppose the file name is /d1/d2/f. The basic ideas is to peel off the first component (/), then search that directory for a name close to the nest component (dl), then search that directory for something near d2, and so on, until a match has been found for each component. If at any stage there isn’t a plausible candidate in the directory, the search is abandoned.

16) Explain about fork?
Splitting is done by a system call named fork. Proc_id = fork (); splits the program into two copies, both of which continue to run. The only difference between the two is the value returned by fork, the process-id. Two copies of the program are made by the fork. In the child, the value returned by fork is zero, so it calls execlp, which does the command line and then dies. In the parent, fork returns non-zero so it skips the execlp.

17) What is the easiest way to store variables and explain?
The easiest way to store the values of the variables is in a 26-element array; the single-letter variable name can be used to index the array. But if the grammar is to process both variable names and values in the same stack, yacc has to be told that its stack contains a union of a double and an int, not just a double.

Interview Questions on Oracle SQL

Oracle SQL Interview Questions

These are some of the questions based on databases. These questions cover oracle and SQL questions. Preparing for the interview has to be much planned approach and we hope that you get benefited by some of the questions described here: -

1) What is a relational database management system?
When answering these types of questions you need to answer them in a very detailed manner because everyone in your group can answer them without any difficulty. There should be difference between your approach and the other candidates. Interview candidate should try to present all the information he has in a very detailed and step by step manner. A professional approach should be present.

2) What do you know about normalization? Explain in detail?

3) Explain the difference between a procedure and a function? What do you understand by those terms?

4) Explain about functional dependency and its relation with table design?

5) Explain the different normalization forms?
Remember how you answer shortens your technical interview you are trying to convince the interviewer that you are a suitable candidate for the job.

6) What are the different types of trigger and explain its various uses and functions?

7) Are truncate and delete commands same? If so why?

8) Compare and contrast between SQL and SQL server and explain its various functions?

9) What is a query and state the different types of queries and their uses?

10) Explain about your project and its relation the current job position you are applying to?

11) How different is MS Access and Oracle?

12) What is a cluster and non cluster index?

13) State the difference between a primary key and foreign key?

14) State all possible different index configurations a table can possibly have?

15) What is a cursor and what are the steps need to be taken?
If possible while answering this question try to explain him the various steps in an order.

16) Why do you use stored procedures and state some of its disadvantages?

17) State the various uses of DBCC command?

18) What is a collation and state the different types of collation sensitivity?

19) What are the uses of linked server and explain it in detail?

20) State and explain about the different types of data models?

21) State and explain about oracle instance?

22) Explain about achiever in SQL?

23) What are the different Pseudo commands? Explain in general?

24) State some uses of redo log files?
These are some of the most important questions and there are chances of it being asked in an interview which is: -
1) Explain what you understand of a primary key and a unique key and explain the differences between them?
2) Explain about the commands Truncate and Delete?
3) Which operating system you are comfortable to use for databases?
4) Do you like command language or GUI?
5) State and explain some of the properties of Sub-Query?
6) What are the different types of user defined functions you can create?
7) What do you understand by log shipping explain the process?
8) State and explain the different types of replication?
9) Explain the cases or situations where you use de-normalization?

Interview Questions on EJB

EJB Interview Questions

1) Explain about the concept of EJB?
EJB is a complex subject and it requires patience to master it. This is used for Enterprise construction of applications. It is a server side component and architecture. The main role which EJB functions is, it hides the business logic of an application.

2) Name some common roles which EJB performs?
Enterprise Java Beans is used chiefly for encapsulating the business logic of an application. It handles problems such as security, persistence and transactional integrity of applications. It solves these major three problems of developers thus allowing them to freely concentrate on the problem at hand.

3) Explain about POJOs which form a part of EJB?
Plain old java objects are nothing but java objects. EJB3 has implemented POJOs. It gives a feel to the developers about the old objects and names used in programming. This makes a developer comfortable rather than to use fancy names for the same old application or function.

4) Explain in detail about stateless session bean?
Concurrent access to a bean can be possible by using stateless session bean because they don’t have a state associated with them. This bean is less resource intensive due to lack of overhead which negates its functionality in calling a conversation with the program.

5) Explain about stateful session Beans?
Stateful session beans have a state and they are distributed objects, because of them having a state they keep a track record of the calling program. This session should be carefully programmed because it may tell you about the status and presence of the customer during checkout.

6) Explain the difference between Container managed persistence and Bean managed persistence?
If the persistent state was managed by a container present in a bean then it is called as Container managed persistence. If the own state was managed by a bean then it is called as Bean managed persistence. The chief difference lies between the management of the state by the bean or by the container.

7) Explain about Entity bean and its features?
Entity Bean is a sever side component belonging to J2EE. Persistence can be managed either by Container or a Bean; these functions are present in Entity bean. Mostly it can be identified or sorted by a primary key. Remote references can survive a crash and can be trusted as a second source for storing data.

8) Explain about message driven beans?
Message driven beans are primarily used to handle asynchronous JMS messages which require integration of EJB and Java messaging services. These beans behave asynchronously. Handling of an operation which does not require instant reply or response is made easy by message driven beans.

9) Explain about the process of execution of EJBs?
EJB or Enterprise Java beans are always present in EJB container which is in turn present in an application server. Interaction of the EJB with the container and client code with container or EJB depends upon the specification. They are always included in applications in the form of javax.ejb.

10) Explain about instance methods?
Instance methods are placed in component interface and they are attached to specific instance. There nature of being Java instances makes EJB to generate classes for these instances which act as a proxy. Code from the client end is required to invoke the method present on the generated proxies which places method arguments onto a message and this message is sent to the EJB server.

11) Explain about class methods?
Home interface declares class methods. They are not used to find an existing entity and neither are they tied to a specific instance. These are not used for creating an EJB instance.

12) Explain about factory method?
It is an OOD pattern and deals with designing of the objects without specifying the class of the object which would be the final end product. A separate method is defined which will be used for creating an object and this can be easily overwritten by sub classes. This method is useful in getting the desired end product.

13) Explain about the transactions feature present in EJB?
ACID transactions and bean managed transactions should be supported by EJB container. Transactions which are container managed require declarative syntax which will be used in the deployment descriptor.

14) Explain about deployment descriptor?
As the name indicated deployment descriptor refers to a configuration file which is deployed to a container. It is primarily used for deploying a module or application. Configuration requirements are also stated in a deployment descriptor and these should be followed by a developer while deploying an application.

15) Explain about the naming and directory services present in EJB?
Home interface implementation object can be found using JNDI and this feature is available for clients using EJB. The same Home interface can be found by using CORBA name service. Creation and deletion of EJBs can be done from home interface and client code can find entity beans.

16) Explain about J2EE application and its components?
Two components are present in a J2EE application they are web and enterprise Java bean. Enterprise Java bean consists of all the logic which is very much required for a web service to run. These can be stored as .jar file and can be deployed on an application server.

17) Explain about the method ready pool?
In this stage of operation bean contains an instance in its memory. This instance of memory is present in EJB container. These instances are created at the start up and a session context is set up and ultimately this data or instance is transferred to Method ready pool stage. If it doesn’t like it transfers it to remove stage.

Interview Questions on Windows

Windows Interview Questions

1) Describe and explain about values in Microsoft windows operating system?
At the bottom of the hierarchy are the entries, called values, which contain the information. Each value has three parts a name, a type, and the data. The name is just a Unicode string, often default if the directory contains only one value. The type is one of 11 standard types. The most common ones are Unicode string, a list of Unicode strings, a 32 bit integer, an arbitrary length binary number, and a symbolic link to a directory or entry elsewhere in the registry.

2) Explain about SAM in Windows?
SAM is generally called as Security account manager. The SAM subkey contains the user names, groups, passwords, and other account and security information needed for logging in. The SECURITY sub key contains general security policy information, such as minimum length for passwords, how many failed login attempts are tolerated, etc.

3) Explain about two major pieces in windows operating structure?
Windows 200o consists of two major pieces: the operating system itself, which runs in kernel model, and the environment subsystems, which runs in user mode. The kernel is a traditional kernel in the sense that it handles process management, memory management, file systems, and so on. The environment subsystems are somewhat unusual in that they are separate processes that help user programs carry out certain system functions.

4) Explain about HAL
HAL is a thin layer below the Kernel. The job of the hardware abstraction layer is to present the rest of the operating system with abstract hardware devices. These devices are presented in the form of machine-independent services that the rest of the operating systems and the drivers can use. By using the HAL services and not addressing the hardware directly, drivers and the kernel require fewer changes when being ported to new hardware.

5) Explain about control objects?
Control objects are those objects that control the system, including primitive process objects, interrupt objects, and two somewhat strange objects called DPC and APC. A DPC object is used to split off the non time critical part of an interrupt service procedure from the time critical part.

6) What are dispatcher objects?
The other kind of kernel objects are dispatcher objects. These include semaphores, mutexes, events, waitable timers, and other objects where threads can wait on. The reason that these have to be handled in the kernel is that they are intimately interwined with thread scheduling, which is a kernel task.

7) Explain cache manager?
The cache manager keeps the most recently used disk blocks in memory to speed up access to them in the event that they are needed again. Its job is to figure out what which blocks are probably going to be needed again and which ones are not. It is possible to configure Windows 2000 with multiple file systems, in which case the cache manager works for all of them, so each one does not have to do its own cache management. When a block is needed, the cache manager is asked to supply it.

8) Explain about device drivers?
Each device driver can control one or more I/O devices, but a device driver can also do things not related to a specific device, such as encrypting a data stream or even just providing access to kernel data structures. Device drivers are not part of the ntoskrnl.exe library. The advantage of this approach is that once a driver has been installed on a system, it is added to a list in the registry and is loaded dynamically when the system boots.

9) Explain about objects in Microsoft windows 2000?
Objects have a structure. Each object contains a header with certain information common to all objects of all types. The fields in this header include the objects name, the object directory in which it lives in objects space, security information and a list of process with open handles to the object. Each object header also contains a quota charge field, which is the charge levied against a process for opening an object.

10) What are sockets?
Sockets are like pipes, except that they normally connect processes on different machines. One process writes to a socket and another one on a remote machine read from it. Sockets can also be used to connect processes on the same machine, but since they entail more overhead than pipes, they are generally only used in a networking context.

11) What is a semaphore?
A semaphore is created using the CreateSemaphore API function, which can initialize it to a given value and define a maximum value as well. Semaphores are kernel objects and thus have security descriptors and handles. The handle for a semaphore can be duplicated using DuplicateHandle and passed to another process so that multiple processes can synchronize on the same semaphore.

12) Explain about winlogon.exe?
Winlogon.exe is also responsible for all user logins. The actual login dialog is handled by a separate program in msgina.dll to make it possible for third parties to replace the standard login with face print identification or something else other the name and password. After a successful login, winlogon.exe gets the user`s profile from the registry and from it determines which shell to run.

13) What is the function of Mapped page writer and modified page writer?
These functions periodically check to determine clean pages. If there are not, they take pages from the top of the modified list, write them back to disk, and then move them to the standby list. The former handles writes to mapped files and the latter handles writes to the paging files. The result of these writes is to transform dirty pages into clean pages.

14) What are the six states which the power manager can put the computer into?
The I/O manager is also closely associated with the power manager. The power manager can put the computer into any of the six states, they are
1)Fully operational
2)CPU power reduced, RAM and cache on, instant wake up
3)CPU and RAM on, CPU cache off, continue from PC.
4)CPU and cache off; RAM on;, restart from fixed address.
5)Hibernate: CPU, cache, and RAM off; restart from saved disk files.
6)OFF: Everything off; full reboot required.

15) Explain windows support for dynamic disks?
An interesting feature of windows 2000 is its support for dynamic disks. These disks may span multiple partitions and even multiple disks and may be reconfigured on the fly, without even having to reboot. In this way, logical volumes are no longer constrained to a single partition or even a single disk so that a single file system may span multiple drives in a transparent way

16) Explain about NTFS volume.
Each NTFS volume contains files, directories, bitmaps, and other data structures. Each volume is organized as a linear sequence of blocks, with the block size being fixed for each volume and ranging from 512 bytes to 64 KB, depending on the volume size. Most NTFS disks use 4-KB blocks as a compromise between large blocks and small blocks.

17) Explain the working of compression?
NTFS writes a file marked for compression to disk; it examines the first blocks in the file, irrespective of how many runs they occupy. It then runs a compression algorithm on them. If the resulting data can be stored in 15 or fewer blocks, the compressed data are written to the disk, preferably in one run. If the compressed data still take 16 blocks, the 16 blocks are written in uncompressed form. Then blocks 16-31 are examined to see if they can be compressed to 15 blocks or less.

Interview Questions on Hibernate

Hibernate Interview Questions

1) Explain about Hibernate?
Hibernate solves problems such as Object Relational impedance mismatch, etc. It is commonly used for object and query service. It helps data base developers develop classes which include inheritance, association, composition and polymorphism. A developer or user can express queries either in HQL or SQL.

2) Explain about the primary feature of Hibernate?
Primary feature of hibernate is to java classes to database tables. Data query and retrieval is also possible with Hibernate. Application portability is a key feature in Hibernate it allows developers to port applications to almost all SQL databases.

3) Explain about transparent persistence of Hibernate?
Transparent persistence is provided for Plain old Java objects or POJOs. For proper functioning of the applications importance should be given to the methods equals () and hash Code methods (). It has a requirement which should be strictly followed in the applications which is a no-argument constructor.

4) Explain about the dirty checking feature of Hibernate?
Dirty checking feature of the Hibernate allows users or developers to avoid time consuming data base write actions. This feature makes necessary updations and changes to the fields which require a change, remaining fields are left unchanged or untouched.

5) Brief about the Session factory interface?
It creates new hibernate sessions by referencing immutable and thread safe objects. Application using hibernate are usually allowed and desgined to implement single instance of the class using this interface. Only single instance of a class can be used which is using this interface.

6) Explain about session interface?
This represents hibernate session which perform the manipulation on the database entities. Some of the activities performed by session interface are as follows they are managing the persistence state, fetching persisted ones and management of the transaction demarcation.

7) Explain the steps involved in creating database applications with Java using Hibernate?
Creating Database applications with Java is made simpler with Hibernate. First Plain old java object needs to be written, XML mapping file should be created which shows relationship between database and class attributes. Hibernate APIs can be used to store persistent objects.

8) Explain about hibernate.cfg.xml?
Hibernate can be configured with two types of files out of which hibernate.cfg.xml is widely used and popular feature. Hibernate consults hibernate.cfg.xml file for its operating properties such as database dialect, connection string and mapping files. These files are searched on class path.

9) Explain about mapping description file?
Mapping description file is the second file which Hibernate uses to configure its functions. This mapping file has an extension *.hbm which instructs mapping between Java class and database tables. The usage of mapping description file rests entirely upon the business entity.

10) Explain about transaction file?
Transactions denote a work file which can save changes made or revert back the changes. A transaction can be started by session.beginTransaction() and it uses JDBC connection, CORBA or JTA. When this session starts several transactions may occur.

11) Explain about mapping files in Hibernate?
Mapping files forms the core of any database mapping tools. These files contain field to field mapping, usually this mapping occurs between classes and attributes. After mapping files they can be persist to the database. Tags can be used to indicate the presence of a primary key.

12) What is the effect when a transient mapped object is passed onto a Sessions save?
When a Sessions save () is passed to a transient mapped object it makes the method to become more persistent. Garbage collection and termination of the Java virtual machine stays as long as it is deleted explicitly. It may head back to its transient state.

13) Explain about version field?
Application level data integrity constants are important if you are making changes to offline information which is again backed by database. Higher level locking or versioning protocol is required to support them. Version field usage comes at this stage but the design and implementation process is left to the developer.

14) State some advantages of hibernate?
Some of the advantages which a developer can get from Hibernate are as follows: -
Mapping of one POJO table to one table is not required in hibernate.
It supports inheritance relationships and is generally a fast tool. Portability is necessary the greater benefit from hibernate. POJOs can be used in other applications where they are applicable.

15) Explain about addClass function?
This function translates a Java class name into file name. This translated file name is then loaded as an input stream from the Java class loader. This addclass function is important if you want efficient usage of classes in your code.

16) Explain about addjar() and addDirectory() methods?
These methods are the most convenient to use in hibernate. These methods allow you to load all your Hibernate documents at a time. These methods simplify code configuration, refactoring, layout, etc. These functions help you to add your hibernate mapping to Hibernate initialization files.

17) Explain about the id field?
This id field corresponds to the surrogate key which is generated by the database. These fields are handled by the id field. Name attribute is used to specify the names of the field and it should correspond to the method name of getid. This also should correspond to long type and the values should be stored I the database in the long column.