Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #204

Re: java doubts

From "Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Subject Re: java doubts
Message-ID <ra5774l7vtj6ah64fbtc6sh1vbsq2a8fvi@4ax.com> (permalink)
Newsgroups comp.lang.java.databases
References <f6e9f1a6-bfaa-4792-ae75-dc97930f18c0@z72g2000hsb.googlegroups.com>
Date 2011-04-27 15:22 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.databases
On Tue, 8 Jul 2008 06:13:04 -0700 (PDT), amarmca2u@gmail.com wrote,
quoted or indirectly quoted someone who said :

>what we call a concrete class in java api with out constructors(Like
>DriverManager)?

Class with private or protected constructor.

>detail data about protected constructor. Can we have protected class?
Try the experiment.

>why all exception classes implementing the serialzible interface?
It was possibly for a program like Lotus Ensuite, that could save the
program state, do something else, then pick up where it left off.  It
used serialisation to encapsulate the entire state of the app.
The other reason is it was easy to do.  Exceptions don't have much
inside them.

>what is the difference between the "A class by defaultly
>synchronized(Vector)" and "A class which is manuvally synchronized"?
It is the difference between using Vector and ArrayList+
Collections.synchronizedCollection( a ); 

or Hashtable and HashMap + Collections.synchronizedCollection( a );

or doing the threading manually, only where needed.

see http://mindprod.com/jgloss/arraylist.html#THREADSAFETY

Normally you have onely one thread, so there is no point in the sync
overhead.
-- 

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

java doubts "amarmca2u" <amarmca2u@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
  Re: java doubts "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
  Re: java doubts "=?ISO-8859-1?Q?Arne_Vajh=" <=?iso-8859-1?q?arne_vajh=@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
    Re: java doubts "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000

csiph-web