Powered by Blogger.

Collections KeyPoints

>> Thursday, May 19, 2011

The Main Collections KeyPoints in java

Collection is a group of objects.  java.util package provides important types of collections. There are two fundamental types of collections they are Collection and Map. Collection types hold a group of objects, Eg. Lists and Sets where as Map types hold group of objects as key, value pairs.
Eg. Hashtable, HashMap, TreeMap, and LinkedHashMap (LinkedList+HashTable). Explained in detail in last post, how to iterate HashMap.
Here the collections of classes and interfaces having some their own properties.They are


Read more..

Hibernate Caching Techniques

>> Wednesday, May 18, 2011

Caching is a Temporary memory or buffer which resides at client side and stores the results sent by server. When client generates same request for multiple number of times, the first request generated results will be stored in cache and this result will be used across the multiple requests. This reduces the round trips between the client and server. Since the result will be collected from cache that is available at client side.
Hibernate supports for 2 levels of cache:
  1. Level one cache
  2. Level two cache.

Read more..

What is the difference between sleep(), wait() and suspend()?

>> Wednesday, May 11, 2011

Thread.sleep() is used to suspend a thread execution for a specified time. or it sends the current thread into the "Not Runnable" state for some amount of time. The thread keeps the monitors it has aquired --

i.e. if the thread is currently in a synchronized block or method no other thread can enter this block or method. If another thread calls t.interrupt() it will wake up the sleeping thread.

Note that sleep is a static method, which means that it always affects the current thread (the one that is executing the sleep method). A common mistake is to call t.sleep() where t is a different thread; even then, it is the current thread that will sleep, not the t thread.

Read more..

Creating a Connection object in mysql using Connection Pooling

>> Monday, May 9, 2011

Create a connection obj using Connection pooling in mysql.

Connection pooling is the maintenance of a group of database connections for reuse by applications on an application server. It is part of the JDBC 2.0 Optional Package API. Another part of the Optional Package API provides for the use of the Java Naming and Directory Interface (JNDI) and DataSource objects instead of JDBC 1.0 DriverManager objects to access relational data.

Read more..

Daily Activities of RealTime Software Employee.

Daily Activities of a Real Time Software Employee.

1). Monitoring.

a. Mails - we should configure MS Outlook to our system.
b.Check mails u got from TeamLead or Client.
c.Check Development/TestServer/ProductServer mails
d.check Mails from project tracker.
e.Check mails  from issue/bug tracker.
f.Check logger fiels.

Read more..

Object Serialization and Deserialization

>> Friday, May 6, 2011

Working with ObjectOutputStream class and ObjectInputStream Classes

Object Serialization and Deserialization_JavabynataraJ

When ever the object values need to be stored with in a file then ObjectOutputStream class is used. When ever the object values need to be retrieved from a file then ObjectInputStream class is used.

When ever the object values need to be stored with in a file or need to be retrieved from a file then class corresponding to that object must implement the interface Serializable.

Read more..

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.