All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Ask a Question
Search
Search
Sign In
Register
study help
computer science
advanced java programming
Questions and Answers of
Advanced Java Programming
What is the root level element in a hibernate mapping file? (a) (b) (c) (d) None of the above
How does bhm.xml file include other hbm.xml files? (a) (b) (c) (d) None of the above
What is dirty checking in Hibernate?(a) Object state changes in order to synchronize the updated state with the database(b) Remove the dirty data from database(c) Check the data when inserted into
What does "" means?(a) Generate primary key(b) Generate tables based on configuration(c) Generate sql statement on configuration(d) None of the above
Is it possible to declare mappings for multiple classes in one mapping file?(a) True(b) False(c) Can’t say(d) None of the above
What does session.evict() method do?(a) Remove the object and its collections from the second level cache(b) Remove the object and its collections from the first level cache(c) Remove the object
Which of the following statements is correct?(a) Only the Session that you obtained with sf.getCurrentSession() is flushed and closed automatically.(b) Only the Session that you obtained with
What does hibernate.hbm2ddl.auto create mean?(a) Create session object automatically(b) Create Sessio Factory object automatically(c) Create tables automatically(d) None of the above
Is Hibernate Session threadsafe?(a) No(b) Yes(c) No relation with thread(d) None of the above
How can you make a property be read from the database but not modified in anyway?(a) By using the isinsert="false" and isupdate= "false" attributes.(b) By using the isinsert="no" and
Which statement is correct?(a) session.contains() method to determine if an instance belongs to the database.(b) session.contains() method to determine if an instance belongs to the session
How can you get a session object?(a) SessionFactory.getSession();(b) SessionFactory.openSession();(c) SessionFactory.get();(d) (session)SessionFactory.getObject();
Which of the following is FALSE about Session in hibernate?(a) Session is a non-threadsafe object.(b) You can share the session between threads.(c) Session represents a single unit-of-work with
What is the name of the default configuration file?(a) config.xml(b) hibernate.config.xml(c) cfg.hibernate.xml(d) hibernate.cfg.xml
Which of the following is not a function of the Session interface?(a) Acts as Factory for Transaction(b) Wraps a JDBC connection(c) Holds a mandatory first-level cache of persistent objects, used
Which of the following is not a method on Session interface?(a) save()(b) remove()(c) saveorupdate()(d) load()
Which of the following is the default generator type?(a) Increment(b) Identity(c) Assigned(d) Sequence
What is the full form of POJO?(a) Plain Ordinary Java Object(b) Plain Old Java Object(c) Primitive Old Java Object(d) Primary Old Java Object
Where can you specify object to database mapping information?(a) Mapping files(b) Classes(c) Both a) and b)(d) None of the above
Which of the following does the default constructor of Configuration class search?(a) config.properties(b) coonfig.xml(c) hibernate.properties(d) hibernate.cfg.xml
What is the root element of a hibernate configuration file? (a) (b) (c) (d)
Which of the following methods on Session interface is used to obtain a Transaction object?(a) startTransaction()(b) getTransaction()(c) openTransaction()(d) beginTransaction()
Which of the following packages contains hibernate annotations?(a) javax.annotations(b) javax.persistence(c) javax.hibernate.annotations(d) javax.persistence.annotations
Which of the following is not a valid object state in hibernate?(a) Transient(b) Persistent(c) Detached(d) Volatile
What is the full form of HQL?(a) High-level Query Language(b) Hibernate Query List(c) Hibernate Question Language(d) Hibernate Query Language
Which of the following is not a valid hibernate annotation?(a) Entity(b) Table(c) Column(d) Row
Which of the following is not HQL keyword?(a) Choose(b) From(c) Select(d) Where
Which of the following methods on Session interface is used to create a Query?(a) openQuery()(b) getQuery()(c) createQuery()(d) prepareQuery()
Which of the following is a hibernate to POJO class exporter? (a) (b) (c) (d)
What is Object Relational Mapping (ORM)?
Why do you need ORM tools like hibernate?
Write the advantages of Hibernate over JDBC?
What are POJOs?
Discuss the different ways hibernate can be configured.
How can you specify hibernate to database mapping information?
What happens when both hibernate.properties and hibernate.cfg.xml are in the classpath?
Write the sample content of hibernate configuration and mapping files.
What are the important tags of hibernate.cfg.xml?
What is object/relational mapping metadata?
Write the core interfaces and classes with their functionality of hibernate framework.
Write the basic steps required to communicate with RDBMS using hibernate.
What is the function of Session object in hibernate?
What is the function of a SessionFactory object?How will you obtain such an object?
What is the difference between getCurrentSession()and openSession() in Hibernate?
Describe the life cycle of hibernate objects.
What is the difference between transient and detached objects?
How do you map Java Objects with Database tables?
What are the primary differences between Entity Beans and Hibernate ?
What is Hibernate Query Language (HQL)?
What is the difference between HQL and SQL?
How will you create a primary key using Hibernate?
What is the difference between JDBC and JTA transactions in Hibernate?
Which interfaces are defined to execute the query in the Hibernate?
What is the difference between load() and get()?
What is a Named query and why is it used?
How will you see Hibernate generated SQL statements on console?
What are the benefits of detached objects?
How will you reattach detached objects to a session?
What can you do with hibernate tools?
What is the full form of JNDI?(a) Java Network and Directory Interface(b) Java Naming and Directory Implementation(c) Java Network and Directory Implementation(d) Java Naming and Directory Interface
What is the full form of LDAP?(a) Lazy Directory Access Protocol(b) Lightweight Dynamic Access Protocol(c) Lightweight Directory Access Protocol(d) Little Directory Access Protocol
Which of the following is not an example of naming service?(a) DNS(b) rmiregistry(c) file system(d) HTTP
Which of the following is used to obtain the initial context?(a) InitContext()(b) InitialContext()(c) getInitialContext()(d) Context()
Which of the following is used to bind an object to a name?(a) assign()(b) name()(c) bind()(d) map()
Which of the following are JNDI properties?(a) java.naming.factory.initial(b) java.naming.provider.url(c) Both a) and b)(d) None of the above
Which of the following methods is used to resolve a name?(a) lookup()(b) resolve()(c) find()(d) search()
Which of the following is used to rename an existing binding?(a) change()(b) renew()(c) modify()(d) rename()
Which of the following methods is used to find all bindings?(a) find()(b) search()(c) list()(d) enumerate()
Which of the following is an example of a directory server?(a) Apache tomcat(b) Apache Ant(c) Apache(d) ApacheDS
Which of the following characters is used as the separator between name and value in LDAP?(a) :(b) =(c) .(d) -
What is the full form of DNS?(a) Directory and Naming Service(b) Dynamic Name System(c) Dynamic Native System(d) Domain Name System
A LDAP URL starts with(a) jndi(b) ds(c) iiop(d) ldap
Which of the following Java command line options is used to specify URL of the JNDI provider?(a) -Djava.jndi.provider.url(b) -Djava.provider(c) -Djava.naming.provider.url(d) -Djava.naming.url
Which of the following Java command line options is used to specify initial context
The association of an object with a name is called(a) Associating (b) Binding (c) Assigning(d) Referencing
The procedure of finding an object by its name is known as(a) search(b) find(c) lookup(d) look for
Which of the following is a directory service?(a) rmiregistry(b) DNS(c) orbd(d) file system
A directory context is represented by(a) DirectoryContext(b) DirContext(c) Dir(d) DContext
Which of the following static constants is used to indicate deletion of an attribute?(a) DELETE_ATTRIBUTE(b) DEL_ATTRIBUTE(c) REMOVE_ATTRIBUTE(d) THROW_ATTRIBUTE
Which of the following static constants is used to indicate deletion of an attribute?(a) MODIFY_ATTRIBUTE(b) EDIT_ATTRIBUTE(c) CHANGE_ATTRIBUTE(d) REPLACE_ATTRIBUTE
Which of the following types of objects can LDAP bind?(a) Serializable(b) Reference(c) Remote(d) CORBA
Which of the following types of objects can rmiregistry not bind?(a) Referenceable(b) Reference(c) Remote(d) Serializable
Which of the following is used to find initial directory context?(a) InitialDirContext()(b) InitDirContext()(c) InitialContext()(d) InitContext()
What is the format of an LDAP URL?
What is the relationship between LDAP and JNDI?
Explain the importance of JNDI.
What is the difference between JDBC, JNDI and Hibernate?
What is a naming service?
What is a directory service?
Distinguish between naming and directory service.
Explain the components of JNDI.
What is Context and InitialContext?
Differentiate among JNDI lookup(), list(),listBindings(), and search() methods.
What is an LDAP server? And what is it used for in an enterprise environment ?
How will you read all attributes of a directory object?
How do you bind an object having attributes to a context?
Describe the procedure to add, modify and delete attributes.
Discuss how objects can be searched based on their attributes.
What are filters? Why are they used?
Identify the different components of JNDI and explain their functionality briefly.
Showing 500 - 600
of 1226
1
2
3
4
5
6
7
8
9
10
11
12
13