Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

Java_Official · Java SE . EE . ME . AJAX . Web services

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 36641
  • Category: Java
  • Founded: Aug 19, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 31606 - 31635 of 32575   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#31606 From: "Chip Dunning" <chip.dunning@...>
Date: Fri Sep 5, 2008 11:56 pm
Subject: Re: [Java] HELP NEEDED VERY URGENT STRING CONVERSION
chipdunning
Send Email Send Email
 
Convert the string into bytes - using either ASCII or UTF8 - then back again.



Chip


On Fri, Sep 5, 2008 at 1:51 AM, me4u_pathania <no_reply@yahoogroups.com> wrote:
> Hi,
>
> I have a requirement,it goes like this:
>
> I want to covert a string into bits and then convert same bits into
> string?
> Can any body tell me the code for this.
> Thanks in Advance.
>
> Regards,
> Vikram Pathania
>
>
> ------------------------------------
>
> Visit http://aiaiai.com or http://jgame.org for more groups to join.
> Java Official Group is created for the following topics: Java 2 Enterprise
Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME,
XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
> Whoever posts spam / ads / job related message will be BANNED
IMMEDIATELYYahoo! Groups Links
>
>
>
>



--
"The reason the mainstream is considered a stream is because it's so
shallow" --George Carlin

#31607 From: "synergest_mark" <synergest_mark@...>
Date: Sat Sep 6, 2008 10:23 am
Subject: hello help me how to input character and string in java programming language
synergest_mark
Send Email Send Email
 
i cannot input an character and string in the java running program
give me a running code regarding my problem
plzzzzzzzzzzzzzz
plzzzzzzzzzzzzzz

#31608 From: talluri venkat <talluri_venkat2001@...>
Date: Sat Sep 6, 2008 11:37 am
Subject: Re: [Java] some java doubts
talluri_venk...
Send Email Send Email
 
HiThis will clarifies your doubt. I think so.

When To Use Interfaces
An interface allows somebody to start from scratch
to implement your interface or implement your interface
in some other code whose original or primary purpose was quite different from
your interface. To them, your interface
is only incidental, something that have to add on to the their code to be able
to use your package.
When To Use Abstract classes
An abstract class, in contrast, provides more
structure. It usually defines some default implementations and provides some
tools useful for a full implementation. The catch is, code using it must
use your class as the base. That may be highly inconvenient if the other
programmers wanting to use your package have already developed their own class
hierarchy independently. In Java, a class can inherit from only one base class.
When to Use Both
You can offer the best of both worlds, an interface
and an abstract class. Implementors can ignore your abstract
class if they choose. The only drawback of doing that is calling methods via
their interface name is slightly slower than
calling them via their abstract class name.


Regards,

Venkat

--- On Thu, 4/9/08, sirisha_suha <sirisha_suha@...> wrote:
From: sirisha_suha <sirisha_suha@...>
Subject: [Java] some java doubts
To: Java_Official@yahoogroups.com
Date: Thursday, 4 September, 2008, 10:19 PM











             Hi



1)Can any1 tell me whts the use of marker interface?i knw

serializable, cloneable etc are marker interfaces.thy doesnt have any

methods thn whts the use of it?i checked so many sites bt couldnt

understand the exact meaning..so can 1 plz explain me...



2)1 mre doubt...abt abstract class and interface...



whr we use them exactly?already abstract class does the same as

interface thn why interface was introduced?



Thanks

Siri



























       Be the first one to try the new Messenger 9 Beta! Go to
http://in.messenger.yahoo.com/win/

[Non-text portions of this message have been removed]

#31609 From: rajesh ranga <indorajesh2000@...>
Date: Sat Sep 6, 2008 4:31 pm
Subject: Re: [Java] Very Important interview questions...
indorajesh2000
Send Email Send Email
 
Hi guys,
 
 
The importance of Load-on-startup is
if we want to call the servet while STARTIING  the server that will be mapped
to the load-on-startup
in the load-on-startup we can set the priority levels,
if we have more then one servet to be called
 
i.e
 
<LOAD-ON-STARTUP>1<LOAD-ON-STARTUP>
TELLS THE PRIORITY LEVEL IS FIRST
 
 
 
 
 
 
 
 
 
 
 
 


--- On Fri, 22/8/08, MAYUR MISTRY <mayur_mistry1982@...> wrote:

From: MAYUR MISTRY <mayur_mistry1982@...>
Subject: Re: [Java] Very Important interview questions...
To: Java_Official@yahoogroups.com
Date: Friday, 22 August, 2008, 5:31 PM







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?

--- On Wed, 20/8/08, nvrmba <nvrmba@yahoo. co.in> wrote:
From: nvrmba <nvrmba@yahoo. co.in>
Subject: [Java] Very Important interview questions...
To: Java_Official@ yahoogroups. com
Date: Wednesday, 20 August, 2008, 12:11 AM

Hi,

Plz. let me know the ans. for follg. int. qs..

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

only 3 variables..how to do it?

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?

3)What is permanent generation ofJVM?

4)What is ORM file?

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?

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?

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

regards,

nvr











Did you know? You can CHAT without downloading messenger. Go to
http://in.webmessen ger.yahoo. com/

[Non-text portions of this message have been removed]
















       Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[Non-text portions of this message have been removed]

#31610 From: "u06116" <u06116@...>
Date: Sun Sep 7, 2008 5:41 pm
Subject: Help
u06116
Send Email Send Email
 
Hello
I am a new user and i want ur help. I want to learn Java on my own.
Can you guys help me from where should i start or which book should i
consult. I have previously studied C only.
Thanks

#31611 From: Elwood Lacap <elwood_lacap2000@...>
Date: Mon Sep 8, 2008 1:13 am
Subject: Re: [Java] plss help me...
elwood_lacap...
Send Email Send Email
 
thsi is not a homework im new to java programming and i want to adopt java...b4
i use C++ programming plsss.. help me
 
thank u so much

--- On Thu, 9/4/08, Java Guy <javaguy@...> wrote:

From: Java Guy <javaguy@...>
Subject: Re: [Java] plss help me...
To: Java_Official@yahoogroups.com
Date: Thursday, September 4, 2008, 8:41 PM






??? Your question???

If this is homework, we don't do it.

-Java Guy

murdoch wrote:
>
> main () {
>
> int num1,num2;
>
> printf("enter a number:")
> scanf("%d",& num1);
>
> printf("enter a number:")
> scanf("%d",& num2);
>
> printf("%d %d",num1,num2) ;
>
> return 0;
>
> }
>
>

















[Non-text portions of this message have been removed]

#31612 From: "wsxwinter" <wsxwinter@...>
Date: Mon Sep 8, 2008 5:43 am
Subject: Re: some java doubts
wsxwinter
Send Email Send Email
 
1) Marker interface used to tell JVM how to process it's offspring
2)
    1>:One class can extends ONE abstract class; One class can
implements More than ONE interface
    2>:You can define some methods with body portion in abstract class
to let offspring use them; you CAN NOT put method body into interface
class.
    3>:You must reload the abstract's methods if you do not like them;
you need only implements methods in interface.
    4>:Abstract class is the collection of similar and different
portions collection of some classes; interface is one agreement.
    5>:Other aspect I do not know
--- In Java_Official@yahoogroups.com, "sirisha_suha"
<sirisha_suha@...> wrote:
>
> Hi
>
> 1)Can any1 tell me whts the use of marker interface?i knw
> serializable,cloneable etc are marker interfaces.thy doesnt have any
> methods thn whts the use of it?i checked so many sites bt couldnt
> understand the exact meaning..so can 1 plz explain me...
>
> 2)1 mre doubt...abt abstract class and interface...
>
> whr we use them exactly?already abstract class does the same as
> interface thn why interface was introduced?
>
>
>
>
>
> Thanks
> Siri
>

#31613 From: Hari kumar <hari7447@...>
Date: Mon Sep 8, 2008 9:14 am
Subject: Re: [Java] special characters appears at the starting , when reading file data in java
hari7447
Send Email Send Email
 
Hi,

  Thats really interesting....

  Sounds Good

  --------------
Regards
Hari. D



----- Original Message ----
From: arul ananthi <arulananthi@...>
To: Java_Official@yahoogroups.com
Sent: Friday, September 5, 2008 3:17:05 PM
Subject: Re: [Java] special characters appears at the starting , when reading
file data in java


hi

thanks for reply.

actually its a log file which is generated  during the process of sql server
jobs.

no probs. i found the solution

i used java' s replaceAll([ the spl. char to be removed]) to rectify this
error

thanks,

2008/9/4 Hari kumar <hari7447@yahoo. com>

>   Hi.
>
> I get things correct... It reads up the file without any special character
> in the file.
>
> Can u attach the other text file so tat i cud find wats the problem...
>
> ------------ --------- --------- ---
>
> Regards
> Hari. D
>
> ----- Original Message ----
> From: arul ananthi <arulananthi@ gmail.com <arulananthi% 40gmail.com> >
> To: Java_Official@ yahoogroups. com <Java_Official% 40yahoogroups. com>;
> ezlink@yahoogroups. com <ezlink%40yahoogrou ps.com>
> Sent: Monday, September 1, 2008 9:01:41 AM
> Subject: [Java] special characters appears at the starting , when reading
> file data in java
>
> hi
> i tried to read the text file in java,
>
> in the output, i am seeing the special characters present at the starting.
>
> *below is my program :*
>
> import java.util.StringTok enizer;
> import java.io.*;
> class STDemo {
> public static void main(String args[]) {
> try{
> FileInputStream fin=new FileInputStream( "d:\\jobResult1. txt");
> DataInputStream in=new DataInputStream( fin);
> StringTokenizer st=null;
> while(fin.available ()!=0)
> {
> st=new StringTokenizer( in.readLine( ),",");
> while(st.hasMoreTok ens())
> {
> System.out.println( st.nextToken( ));
> }
> }
>
> }//try
> catch(Exception e)
> {
> System.out.println( "exception :: "+e);
>
> }
> }
> }
>
> *the output is :*
>
> D:\>java STDemo
> ǯ a m e
> S t a t u s
> R u n D a t e
> S t a r t i n g T i m e
> E n d T i m e
> D u r a t i o n
> L o a d _ M C P T L F 0 6
> F a i l e d
> 2 1 / 0 8 / 2 0 0 8
> 8 : 3 6 A M
> 8 : 3 6 A M
> 0 0 : 0 0 : 0 1
>
> *how to avoid the Special character present at the starting(ie. before the
> Name)?*
>
> --
> Regards,
>
> Arul ananthi
>
> [Non-text portions of this message have been removed]
>
> ------------ --------- --------- ------
>
> Visit http://aiaiai. com or http://jgame. org for more groups to join.
> Java Official Group is created for the following topics: Java 2 Enterprise
> Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME,
> XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
> Whoever posts spam / ads / job related message will be BANNED
> IMMEDIATELYYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>

--
Regards,

Arul ananthi

[Non-text portions of this message have been removed]






[Non-text portions of this message have been removed]

#31614 From: j ramesh <jaligama_ramesh@...>
Date: Mon Sep 8, 2008 1:17 pm
Subject: Re: [Java] some java doubts
jaligama_ramesh
Send Email Send Email
 
Dear sirisha,
 
Marker interface is also called as tagged interface and it doesn't contain any
methods but we can provide a class which is implementing this tagged
interface.And tagged interfaces are used to make a class some meaningful by
implementing this tagged interface.
For Ex. if u went to purchase T-Shirt, on T-Shirt u can find a tag which
exhibits its rate,cloth type,size etc i.e it provides the information regarding
the T-Shirt in the same way tagged interface provides some information to the
class which is implementing it.
 
any class implementing tagged interface(Serializable) java understood that this
class is serializable class

--- On Fri, 5/9/08, sirisha_suha <sirisha_suha@...> wrote:

From: sirisha_suha <sirisha_suha@...>
Subject: [Java] some java doubts
To: Java_Official@yahoogroups.com
Date: Friday, 5 September, 2008, 10:49 AM






Hi

1)Can any1 tell me whts the use of marker interface?i knw
serializable, cloneable etc are marker interfaces.thy doesnt have any
methods thn whts the use of it?i checked so many sites bt couldnt
understand the exact meaning..so can 1 plz explain me...

2)1 mre doubt...abt abstract class and interface...

whr we use them exactly?already abstract class does the same as
interface thn why interface was introduced?

Thanks
Siri
















       Connect with friends all over the world. Get Yahoo! India Messenger at
http://in.messenger.yahoo.com/?wm=n/

[Non-text portions of this message have been removed]

#31615 From: Aboda Abdrhim <javanesseman2010@...>
Date: Mon Sep 8, 2008 2:34 pm
Subject: JavaScript: The World's Most Misunderstood Programming Language
javanesseman...
Send Email Send Email
 
The Name

The Java- prefix suggests that JavaScript is somehow related to Java,
   that it is a subset or less capable version of Java. It seems that the name
   was intentionally selected to create confusion, and from confusion comes
misunderstanding.
   JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is
   a different language.

JavaScript has a syntactic similarity to Java, much as Java has to
C. But it is no more a subset of Java than Java is a subset of C. It
is better than Java in the applications that Java (fka Oak)
was originally intended for.

JavaScript was not developed at Sun Microsystems, the home of
Java. JavaScript was developed at Netscape. It was originally called
LiveScript, but that name wasn't confusing enough.

The -Script suffix suggests that it is not a real programming language,
   that a scripting language is less than a programming language. But it is
really
   a matter of specialization. Compared to C, JavaScript trades performance for
   expressive power and dynamism.

Lisp in C's Clothing

JavaScript's C-like syntax, including curly braces and the
clunky for statement, makes it appear to be an ordinary
procedural language. This is misleading because JavaScript has more
in common with functional languages like Lisp or Scheme  than with C or Java.
It has arrays instead of lists and objects instead of property
lists. Functions are first class. It has closures.
You get lambdas without having to balance all those parens.

Typecasting

JavaScript was designed to run in Netscape Navigator. Its success there led
   to it becoming standard equipment in virtually all web browsers. This has
resulted
   in typecasting. JavaScript is the
   George Reeves of programming languages. JavaScript is well suited to a large
   class of non-Web-related applications

Moving Target

The first versions of JavaScript were quite weak. They lacked
exception handling, inner functions, and inheritance. In its present
form, it is now a complete object-oriented programming language. But
many opinions of the language are based on its immature forms.

The ECMA committee that has stewardship over the language is
developing extensions which, while well intentioned, will aggravate
one of the language's biggest problems: There are already too many
versions. This creates confusion.

Design Errors

No programming language is perfect. JavaScript has its share of design errors,
   such as the overloading of  +  to mean both addition and concatenation
   with type coercion, and the error-prone with statement should be avoided.
   The reserved word policies are much too strict. Semicolon insertion was a huge
   mistake, as was the notation for literal regular expressions. These mistakes
   have led to programming errors, and called the design of the language as a
whole
   into question. Fortunately, many of these problems can be mitigated with a
good
   lint
   program.

The design of the language on the whole is quite sound.
Surprisingly, the ECMAScript committee does not appear to be
interested in correcting these problems. Perhaps they are
more interested in making new ones.

Lousy Implementations

Some of the earlier implementations of JavaScript were quite buggy. This
reflected
   badly on the language. Compounding that, those implementations were embedded
   in horribly buggy web browsers.

Bad Books

Nearly all of the books about JavaScript are quite awful. They contain errors,
   poor examples, and promote bad practices. Important features of the language
   are often explained poorly, or left out entirely. I have reviewed dozens of
   JavaScript books, and I can only recommend one: JavaScript:
   The Definitive Guide (5th Edition) by David Flanagan. (Attention authors:
   If you have written a good one, please send me a review copy.)

Substandard Standard

The official
   specification for the language is published by ECMA.
   The specification is of extremely poor quality. It is difficult to read and
   very difficult to understand. This has been a contributor to the Bad Book
problem
   because authors have been unable to use the standard document to improve their
   own understanding of the language. ECMA and the TC39 committee should be
deeply
   embarrassed.

Amateurs

Most of the people writing in JavaScript are not programmers. They
lack the training and discipline to write good programs. JavaScript
has so much expressive power that they are able to do useful things
in it, anyway. This has given JavaScript a reputation of being
strictly for the amateurs, that it is not suitable for professional
programming. This is simply not the case.

Object-Oriented

Is JavaScript object-oriented? It has objects which can contain
data and methods that act upon that data. Objects can contain other
objects. It does not have classes, but it does have constructors
which do what classes do, including acting as containers for class
variables and methods. It does not have class-oriented inheritance,
but it does have prototype-oriented inheritance.

The two main ways of building up object systems are by inheritance
(is-a) and by aggregation (has-a). JavaScript does both, but its
dynamic nature allows it to excel at aggregation.

Some argue that JavaScript is not truly object oriented because it
does not provide information hiding. That is, objects cannot have
private variables and private methods: All members are public.

But it turns out
that JavaScript
objects can have private variables and private methods. (Click here now
to find out how.)  Of course, few understand this because JavaScript is
the world's most misunderstood programming language.
Some argue that JavaScript is not truly object oriented because it does not
   provide inheritance. But it turns out that JavaScript
   supports not only classical inheritance, but other code reuse patterns as
well.


My Blog


 copied 
Douglas
Crockford

   www.crockford.com








[Non-text portions of this message have been removed]

#31616 From: Aboda Abdrhim <javanesseman2010@...>
Date: Mon Sep 8, 2008 2:52 pm
Subject: Six Common Enterprise Programming Mistakes
javanesseman...
Send Email Send Email
 
1. It doesn't matter what data store type you use.

One of the first steps in designing an application is to decide on
the data store. It used to be that every application was based upon a
database, and this was simply not an issue. However, there has recently
been an upsurge in additional options: you can now use relational
databases, XML databases, object databases, directory servers, and more.




Instead of this approach, it is possible to devise a method where
your own beans handle this numbering. By putting the code into your
beans, and removing it from the vendor-domain, you suddenly are back to
vendor-neutrality, flexibility, and even (in many cases) better
performance. If you check out my book, I'll give you the exact
code to handle this specific case, and show you in detail how to avoid
these vendor-specific problems.

3. I need an editor or tool to write my Enterprise JavaBeans.

I'm often asked about the tools that I use in my EJBs. Specifically,
people want to know what I use to generate my remote interface, home
interface, and implementation-class source code. The idea is that there
is so much repeated code in these components that you have to have a
tool in order to make things easier. The mistake creeps in when you go
in and modify these skeletons, and miss a spot here, or accidentally
foul up a method signature there. The result is code that fails
compilation and is often hard to debug.

Now maybe it's just that I cut my teeth on Java using vi and
notepad, but I'm content with Ctrl+C and Ctrl+V, and 'yy', 'dd', and
'p'. Cutting and pasting in these text editors has kept me much better
off than any editor or tool ever has. It also generally results in me
understanding my code better, and knowing exactly where everything in
my code is.

I'm not saying that you shouldn't use an editor or a tool (I often use jEdit.);
however, as soon as you depend
on those tools, you're in trouble. Take a week to code in nothing but a
text editor, and you'll be amazed at how reacquainted you manage to get
with your code. Of course, my book assumes no such tools, and it walks
you through the exact process that results in efficient, logical coding
of beans, as well as other components in your application.

4. I've got to include JMS, XML, JAXP, and more in every application.

I realize that if you¢ve been reading my books and articles for very
long, you¢re probably tired of this sort of thing. I'm constantly
harping on programmers, insisting that they only use what they need in
their programs. However, until I see people get over their
technology-lust, I'll keep hollering about this one.

The basic mistake I'm referring to is the thinking that everything
in J2EE must be used in a J2EE application. If that application doesn't
use EJBs, JMS, JMX, XML, and every other acronym on the package of your
application server, you think you're somehow wasting money.

Nothing could be further from the truth, though. In fact, in my
latest book, I had to almost force in a chapter on JMS (the Java
Message Service). This isn't because JMS isn't important; it's simply
that the application I was writing for the book didn't really need JMS
that much. I have written several applications that do use JMS, and I
was able to come up with a pretty good use-case for JMS in the book.
However, that situation is a perfect illustration of the issue:
sometimes you just don't need the whole kitchen sink.

In any case, for about the 50th time, you should only use what you
need. If all that is required is a couple of servlets and some JDBC
code, then stick with that; don't add the complexity of EJBs if you
don't need it. If you need EJBs, but message-driven beans are beyond
the scope of your application, don't worry about it. In the long run,
you'll appreciate the resulting simplicity of your application.

5. Stateful beans make programming more object-oriented.

This is a common one, and usually an easy one to correct. The basic
mistake involves the way that methods are called. For example, here's a
few methods that you might find in a stateful session bean's remote
interface:

     public User create(String username);
   public Address getAddress();
   public List getAccounts();
   public boolean deleteAccount(Account account);

The thinking is that you need to make this a stateful session bean so that you
can pass in the username only one time (in the create() method). So your method
calls would look like this:

     User user = userHome.create(username);
   Address address = user.getAddress();
   List accounts = user.getAccounts();

This is more object-oriented than using a stateful bean, which has methods more
like this:

     public User create();
   public Address getAddress(String username);
   public List getAccounts(String username);
   public boolean deleteAccount(String username, Account account);

The result is that the same code block would look like this:

User user = userHome.create();
Address address = user.getAddress(username);
List accounts = user.getAccounts(username);

Wow! It's obvious that this is so much harder to understand
and work with. (OK, that was a bit sarcastic; print is such a hard
medium to get clever in.) As you can see, this may not be quite as OO
(object-oriented). However, you'll find that changing to the stateless
approach (shown second) results in a speed up to the tune of 10 times
or sometimes even 100 times faster (depending on the application
server). So for this rather small sacrifice in OO coding results in
your code speeding up dramatically. One more mistake dealt with and out
of the way.

6. I don't need anyone telling me what to do in my programming.

Ah, yes. We've all been there, right? I remember my first few years of
programming when I knew
that I was going to always innovate, always create, never copy, and
never need any help. Of course, I later found out that most of my
clever "innovations" were poor solutions to well-understood problems,
many with established "best-case" solutions. It's absurd to be so
egotistical as to refuse to accept help when it's offered.

Is this a shameless plug for my book? No, not really. I'd advise you
to go out and get anything you can find on the subjects you are working
in. Heck, I have nearly as many non-O'Reilly technical books as I do
O'Reilly books, and I use my whole library all the time.

I'd also recommend you get involved in the open source community.
You'll learn more than you could ever imagine. The bottom line is that
there are a lot of really bright people out there, and I'd suggest you
suck all the knowledge from these folks that you can. As soon as you
decide that you don't need anyone else's help, you'll certainly begin
to make more mistakes than ever.

Well, there are six common problems I see cropping up time and time
again. You may see one or two in this list that you yourself have
ascribed to. Don't feel embarrassed; I've been guilty of all of these
at one time or another, but I got over it. Just take them as spurs to
make you a better programmer. I hope you enjoy the new book, and I look
forward to hearing what you think. See you online!
My Blogcopied Six Common Enterprise Programming Mistakes


other resources
Common C Programming Errors
What's wrong with my program - Common Programming Mistakes
Welcome to the Java Mistakes Page!
Top Ten Errors Java Programmers Make
common java syntax error





[Non-text portions of this message have been removed]

#31617 From: Oscar Mauricio <oscar_garciameza@...>
Date: Mon Sep 8, 2008 5:58 pm
Subject: Re: [Java] HELP NEEDED VERY URGENT STRING CONVERSION
oscar_garcia...
Send Email Send Email
 
Hola

La clase String te permite convertir una cadea a bytes y viceversa.

No se si esto te sirva de algo.

Saludos
Oscar Mauricio


--- On Fri, 9/5/08, me4u_pathania <no_reply@yahoogroups.com> wrote:
From: me4u_pathania <no_reply@yahoogroups.com>
Subject: [Java] HELP NEEDED VERY URGENT STRING CONVERSION
To: Java_Official@yahoogroups.com
Date: Friday, September 5, 2008, 12:51 AM











             Hi,



I have a requirement, it goes like this:



I want to covert a string into bits and then convert same bits into

string?

Can any body tell me the code for this.

Thanks in Advance.



Regards,

Vikram Pathania





























[Non-text portions of this message have been removed]

#31618 From: "praveen likki" <likki.praveen@...>
Date: Tue Sep 9, 2008 4:44 am
Subject: Re: [Java] some java doubts
java_id_4me
Send Email Send Email
 
The only drawback of doing that is calling methods via
their interface name is slightly slower than
calling them via their abstract class name.... is that true .. i never heard
about this??

On Mon, Sep 8, 2008 at 6:17 AM, j ramesh <jaligama_ramesh@...>wrote:

>   Dear sirisha,
>
> Marker interface is also called as tagged interface and it doesn't contain
> any methods but we can provide a class which is implementing this tagged
> interface.And tagged interfaces are used to make a class some meaningful by
> implementing this tagged interface.
> For Ex. if u went to purchase T-Shirt, on T-Shirt u can find a tag which
> exhibits its rate,cloth type,size etc i.e it provides the information
> regarding the T-Shirt in the same way tagged interface provides some
> information to the class which is implementing it.
>
> any class implementing tagged interface(Serializable) java understood that
> this class is serializable class
>
>
> --- On Fri, 5/9/08, sirisha_suha
<sirisha_suha@...<sirisha_suha%40yahoo.co.in>>
> wrote:
>
> From: sirisha_suha <sirisha_suha@... <sirisha_suha%40yahoo.co.in>>
> Subject: [Java] some java doubts
> To: Java_Official@yahoogroups.com <Java_Official%40yahoogroups.com>
> Date: Friday, 5 September, 2008, 10:49 AM
>
> Hi
>
> 1)Can any1 tell me whts the use of marker interface?i knw
> serializable, cloneable etc are marker interfaces.thy doesnt have any
> methods thn whts the use of it?i checked so many sites bt couldnt
> understand the exact meaning..so can 1 plz explain me...
>
> 2)1 mre doubt...abt abstract class and interface...
>
> whr we use them exactly?already abstract class does the same as
> interface thn why interface was introduced?
>
> Thanks
> Siri
>
> Connect with friends all over the world. Get Yahoo! India Messenger at
> http://in.messenger.yahoo.com/?wm=n/
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#31619 From: "Hasan Muhammad Kafi" <kafi_cse05@...>
Date: Sat Sep 6, 2008 2:50 pm
Subject: Re: plss help me...
kafi_cse05
Send Email Send Email
 
--- In Java_Official@yahoogroups.com, "murdoch" <elwood_lacap2000@...>
wrote:
>
> main () {
>
>  int num1,num2;
>
>   printf("enter a number:")
>     scanf("%d",&num1);
>
>    printf("enter a number:")
>     scanf("%d",&num2);
>
>  printf("%d   %d",num1,num2);
>
>  return 0;
>
> }
>


Actually,what do you want to know?

#31620 From: "arul ananthi" <arulananthi@...>
Date: Tue Sep 9, 2008 5:14 am
Subject: Re: [Java] hello help me how to input character and string in java programming language
arulananthis
Send Email Send Email
 
use BufferedReader and InputStream Reader

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

br.readLine()

On Sat, Sep 6, 2008 at 6:23 PM, synergest_mark <synergest_mark@...>wrote:

>   i cannot input an character and string in the java running program
> give me a running code regarding my problem
> plzzzzzzzzzzzzzz
> plzzzzzzzzzzzzzz
>
>
>



--
Regards,

Arul ananthi


[Non-text portions of this message have been removed]

#31621 From: "kannam_kk" <kannam_kk@...>
Date: Tue Sep 9, 2008 7:52 am
Subject: Re: [Java] Query on hiddenform fields and url rewriting
kannam_kk
Send Email Send Email
 
hi,

hidden form field and URL Rewriting are Session Tracking Techniques
if Cookies are disabled on browser the alternative is URL Rewriting.

1) on first page in html form
    you can add like this

    <input type="hidden" name="TransId" value" " >

    value can be assigned from any script or directly.

then this values are send in a request object like other elements
so you can retrieve in other page.

2)URL Rewriting is modifying every url with unique session id

u can use two classes URLEncoder of java.net class or
servlet api method response.encodeURL(String).

when using above method for url that will modified with jsessionid.

HttpSession internally uses Cookies /URL Rewriting.

regards
krishna kumar.(KK)






--- In Java_Official@yahoogroups.com, rajakumar rajakumar
<raja_kumar_02@...> wrote:
>
> Yes . you can do it   using hidden form fields like  <input type =
hidden  vale =something>
>
> --- On Sun, 8/24/08, Ramesh <cinnasamyramesh@...> wrote:
>
> From: Ramesh <cinnasamyramesh@...>
> Subject: Re: [Java] Query on hiddenform fields and url rewriting
> To: Java_Official@yahoogroups.com
> Date: Sunday, August 24, 2008, 11:51 PM
>
>
>
>
>
>
> u can keep a variable as hidden when u want to transfer the value of
it from
> one page to other page. u can put the hidden variable in the session
also
> that could be used in the next page or near future.
>
> On Thu, Aug 21, 2008 at 5:09 PM, sandeep kumar <sandeepkumar0307@
yahoo.co. in
> > wrote:
>
> > HI
> > can any one explain the use of hidden form fields iand url rewriting n
> > sessein tracking ,
> > what does it mean , and its purpose and use,
> > can any one pls explain them breifly.
> >
> > thanks
> > sandeep
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

#31622 From: "jawad.abbassi" <jawad.abbassi@...>
Date: Tue Sep 9, 2008 1:51 pm
Subject: Web application path
jawad.abbassi
Send Email Send Email
 
Hello everybody,

how to get the path of my web application,
for example im working on eclipse and the name of my web application
is test which is in the desktop; i want in my javabean get the path :
"c:\Documents and Settings\user\workspace\test", how we can do this in
java, in my javabean which i can't extend it to the HttpServlet class.

Thanks in advance.

#31623 From: srikanth minchu <srikanthminchu@...>
Date: Tue Sep 9, 2008 1:56 pm
Subject: Srikanth need Help(Problem with Eclipse)
srikanthminchu
Send Email Send Email
 
Hi,This is srikanthi installed the jdk version on my system 1.5.0and i installed
the Eclipse IDE alsobut while clicking the Eclipse IDE icon i am getting some
exceptionlike set the classpath for jdk\jre can anybody help me ??even i dont
know how to set the CLASSPATH and PATH though System variables.iam using window
operating System.Thanks and RegardsSreekanth Minchu




[Non-text portions of this message have been removed]

#31624 From: "Chip Dunning" <chip.dunning@...>
Date: Tue Sep 9, 2008 4:21 pm
Subject: Re: [Java] plss help me...
chipdunning
Send Email Send Email
 
Google for Thinking in Java (Bruce Eckel) - it is free as a PDF. It is
the book that I used the most to make the transition from C++ to Java.



Chip


On Sun, Sep 7, 2008 at 9:13 PM, Elwood Lacap <elwood_lacap2000@...> wrote:
> thsi is not a homework im new to java programming and i want to adopt
java...b4 i use C++ programming plsss.. help me
>
> thank u so much
>
> --- On Thu, 9/4/08, Java Guy <javaguy@...> wrote:
>
> From: Java Guy <javaguy@...>
> Subject: Re: [Java] plss help me...
> To: Java_Official@yahoogroups.com
> Date: Thursday, September 4, 2008, 8:41 PM
>
>
>
>
>
>
> ??? Your question???
>
> If this is homework, we don't do it.
>
> -Java Guy
>
> murdoch wrote:
>>
>> main () {
>>
>> int num1,num2;
>>
>> printf("enter a number:")
>> scanf("%d",& num1);
>>
>> printf("enter a number:")
>> scanf("%d",& num2);
>>
>> printf("%d %d",num1,num2) ;
>>
>> return 0;
>>
>> }
>>
>>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------
>
> Visit http://aiaiai.com or http://jgame.org for more groups to join.
> Java Official Group is created for the following topics: Java 2 Enterprise
Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME,
XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
> Whoever posts spam / ads / job related message will be BANNED
IMMEDIATELYYahoo! Groups Links
>
>
>
>



--
"The reason the mainstream is considered a stream is because it's so
shallow" --George Carlin

#31625 From: Elwood Lacap <elwood_lacap2000@...>
Date: Wed Sep 10, 2008 1:23 am
Subject: Re: [Java] Re: plss help me...
elwood_lacap...
Send Email Send Email
 
i want to know how to store a value in a variable without assigning a value and
also to store a string in a variable...
 
example:
 
int num = 1; ( i dont like this )
 
i want to store the user input not by assigning value
 
thank u so much...

n Sat, 9/6/08, Hasan Muhammad Kafi <kafi_cse05@...> wrote:

From: Hasan Muhammad Kafi <kafi_cse05@...>
Subject: [Java] Re: plss help me...
To: Java_Official@yahoogroups.com
Date: Saturday, September 6, 2008, 9:50 AM






--- In Java_Official@ yahoogroups. com, "murdoch" <elwood_lacap2000@ ...>
wrote:
>
> main () {
>
> int num1,num2;
>
> printf("enter a number:")
> scanf("%d",& num1);
>
> printf("enter a number:")
> scanf("%d",& num2);
>
> printf("%d %d",num1,num2) ;
>
> return 0;
>
> }
>

Actually,what do you want to know?


















[Non-text portions of this message have been removed]

#31626 From: gopal kanjolia <gopal_kanjolia_rt@...>
Date: Wed Sep 10, 2008 5:58 am
Subject: Re: [Java] mailserver I Attach code for develope a mail server
gopal_kanjol...
Send Email Send Email
 
--- On Thu, 3/4/08, noroozi_work <noroozi_work@...> wrote:

From: noroozi_work <noroozi_work@...>
Subject: [Java] mailserver
To: Java_Official@yahoogroups.com
Date: Thursday, 3 April, 2008, 5:32 PM






Hi dears!
I want to use javamail api in my java web application and handle a
mail system. I download javamailapi_ 1.4.jar and activation.jar and I
should use a mail server. Can anybody introduce to me a mail server
that config and start easily in windows os?
Thanks very much!

















   ----------

import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;


public class SendMailUsingAuthentication
{

   private static final String SMTP_HOST_NAME = "smtp.gmail.com";
   private static final String SMTP_AUTH_USER = "mohtashims@...";
   private static final String SMTP_AUTH_PWD  = "enfmsdno1";

   private static final String emailMsgTxt      = "Online Order Confirmation
Message. Also include the Tracking Number.";
   private static final String emailSubjectTxt  = "Order Confirmation Subject";
   private static final String emailFromAddress = "mohtashims@...";

   // Add List of Email address to who email needs to be sent to
   private static final String[] emailList = {"saif_kamaal@...",
"mohtashims@..."};

   public static void main(String args[]) throws Exception
   {
     SendMailUsingAuthentication smtpMailSender = new
SendMailUsingAuthentication();
     smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt,
emailFromAddress);
     System.out.println("Sucessfully Sent mail to All Users");
   }

   public void postMail( String recipients[ ], String subject,
                             String message , String from) throws
MessagingException
   {
     boolean debug = false;

      //Set the host smtp address
      Properties props = new Properties();
      props.put("mail.smtp.host",SMTP_HOST_NAME);
      props.put("mail.smtp.port","465");
      //props.put("mail.smtp.auth","true");
      props.put("mail.smtp.starttls.enable","true");
       props.put("mail.smtp.auth", "true");
         //props.put("mail.smtp.debug", "true");
         props.put("mail.smtp.socketFactory.port","465");
         props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
         props.put("mail.smtp.socketFactory.fallback", "false");

         SecurityManager security = System.getSecurityManager();



     Authenticator auth = new SMTPAuthenticator();
     Session session = Session.getDefaultInstance(props, auth);

     //session.setDebug(debug);

     // create a message
     Message msg = new MimeMessage(session);

     // set the from and to address
     InternetAddress addressFrom = new InternetAddress(from);
     msg.setFrom(addressFrom);

     InternetAddress[] addressTo = new InternetAddress[recipients.length];
     for (int i = 0; i < recipients.length; i++)
     {
         addressTo[i] = new InternetAddress(recipients[i]);
     }
     msg.setRecipients(Message.RecipientType.TO, addressTo);


     // Setting the Subject and Content Type
     msg.setSubject(subject);
     msg.setContent(message, "text/plain");
     Transport.send(msg);
  }


/**
* SimpleAuthenticator is used to do simple authentication
* when the SMTP server requires it.
*/
private class SMTPAuthenticator extends javax.mail.Authenticator
{

     public PasswordAuthentication getPasswordAuthentication()
     {
         String username = SMTP_AUTH_USER;
         String password = SMTP_AUTH_PWD;
         return new PasswordAuthentication(username, password);
     }
}

}



   ----------





import javax.mail.*;
import javax.activation.*;
import javax.mail.internet.*;
import java.util.Properties;

import java.io.*;


public class composeAtt
{
	 public static void main(String ar[]) throws Exception
	 {

		 String to="user@...";
		 String sub="Test mail 2";
		 String body="Mail with attachment";
		 String from="kerrox@...";
     	 String file="c:\\text.txt";


	     try
		 {

	    	 Properties props=new Properties();
			 props.put("mail.transport.protocol","smtp");
			 props.put("mail.smtp.host","localhost");
			 props.put("mail.smtp.port","25");
			 Session mailSession=Session.getDefaultInstance(props,null);
			 MimeMessage msg=new MimeMessage(mailSession);
	 		 msg.setFrom(new InternetAddress(from));
			 msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));
			 msg.setSentDate(new java.util.Date());
			 msg.setSubject(sub);

			 Multipart mailBody = new MimeMultipart();

			 MimeBodyPart mainBody = new MimeBodyPart();
			 mainBody.setText(body );

			 mailBody.addBodyPart(mainBody);

			 FileDataSource fds = new FileDataSource(file);

			 MimeBodyPart mimeAttach = new MimeBodyPart();
			 mimeAttach.setDataHandler( new DataHandler(fds) );

			 mimeAttach.setFileName( fds.getName() );

			 mailBody.addBodyPart(mimeAttach);

			 msg.setContent( mailBody );

			 Transport.send(msg);
     	 }
     	 catch(Exception e)
     	 {
     		 e.printStackTrace();
	   	 }




	 }


}
   ----------




import javax.mail.*;
import javax.activation.*;
import javax.mail.internet.*;
import java.util.Properties;

import java.io.*;


public class composeAction
{
	 public static void main(String ar[]) throws Exception
	 {

		 String to="user@...";
		 String sub="Test mail 2";
		 String body="Body 2";
		 String from="karrox@...";



	     try
		 {

	    	 Properties props=new Properties();
	  		 props.put("mail.transport.protocol","smtp");
	    	 props.put("mail.smtp.host","localhost");
	    	 props.put("mail.smtp.port","25");
		 	 Session mailSession=Session.getInstance(props);
	     	 Message msg=new MimeMessage(mailSession);
	     	 msg.setFrom(new InternetAddress(from));
	     	 msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));

	     	 msg.setSentDate(new java.util.Date());
		     msg.setSubject(sub);
			 msg.setText(body);
	    	 Transport.send(msg);
     	 }
     	 catch(Exception e)
     	 {
     		 e.printStackTrace();
	   	 }




	 }


}
   ----------

import javax.mail.*;
import javax.activation.*;
import javax.mail.internet.*;
import java.util.Properties;
import java.io.*;

public class addfolder
{
	 public static void main(String ars[])throws Exception
	 {
		 boolean result=false;
		 String mail="imap://user:101010@localhost";
		 try
		 {
			 URLName urlname=new URLName(mail);
			 Properties props=new Properties();
			 props.put("mail.imap.host","localhost");
			 props.put("mail.transport.protocol","imap");

		     props.put("mail.imap.port","143");

		     Session session=Session.getInstance(props);

		  	 Store store=session.getStore(urlname);
		     store.connect();
		   	 Folder rootFolder = store.getDefaultFolder();
		   	 Folder folder = rootFolder.getFolder("PQR");
		   //  result = folder.create(Folder.READ_ONLY);
		 // folder.close(true);
		 result=folder.delete(true);
		   	 store.close();
		  }
		  catch(Exception e)
		  {
		 	 e.printStackTrace();
		  }
		   	 if(result)
		   	 {
		   		 System.out.println ("folder renamed");
			 }
			 else
			 {
				 System.out.println ("there is problem in folder renaming.");
			 }
	 }
}

[Non-text portions of this message have been removed]

#31627 From: manjunath prabhu <manjuprabhuv@...>
Date: Thu Sep 11, 2008 3:56 pm
Subject: Dynamic JSP Creation
manjuprabhuv
Send Email Send Email
 
Hi All,
         My Question is,
          Using JAVA I/O i created a new JSP file (in the web content
folder)
         Can a this dynamically created JSP  be loaded by the server
with out restarting/republishing. I use JBoss Server.






Regards,
Manjunath



       Did you know? You can CHAT without downloading messenger. Go to
http://in.webmessenger.yahoo.com/

[Non-text portions of this message have been removed]

#31628 From: Java Guy <javaguy@...>
Date: Thu Sep 11, 2008 9:35 pm
Subject: Re: [Java] plss help me...
mmjavaguy
Send Email Send Email
 
Read the tutorials at java.sun.com . There is a printf () equivalent in
Java; scanf is a different story, and you may have to get creative.

There is no such thing as a pointer in Java. Primitives are stored by
value, and Objects are stored by reference. So, your scanf () would have
to only accept Objects, as they can be changed by the caller, but
primitives could not be passed.

-Java Guy


Elwood Lacap wrote:
>
> thsi is not a homework im new to java programming and i want to adopt
> java...b4 i use C++ programming plsss.. help me
>
> thank u so much
>
> --- On Thu, 9/4/08, Java Guy <javaguy@...
> <mailto:javaguy%40midnightmusic.net>> wrote:
>
> From: Java Guy <javaguy@...
> <mailto:javaguy%40midnightmusic.net>>
> Subject: Re: [Java] plss help me...
> To: Java_Official@yahoogroups.com <mailto:Java_Official%40yahoogroups.com>
> Date: Thursday, September 4, 2008, 8:41 PM
>
> ??? Your question???
>
> If this is homework, we don't do it.
>
> -Java Guy
>
> murdoch wrote:
> >
> > main () {
> >
> > int num1,num2;
> >
> > printf("enter a number:")
> > scanf("%d",& num1);
> >
> > printf("enter a number:")
> > scanf("%d",& num2);
> >
> > printf("%d %d",num1,num2) ;
> >
> > return 0;
> >
> > }
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
>

#31629 From: Java Guy <javaguy@...>
Date: Thu Sep 11, 2008 9:30 pm
Subject: Re: [Java] Help
mmjavaguy
Send Email Send Email
 
First place to look: the tutorials on java.sun.com .

-Java Guy


u06116 wrote:
>
> Hello
> I am a new user and i want ur help. I want to learn Java on my own.
> Can you guys help me from where should i start or which book should i
> consult. I have previously studied C only.
> Thanks
>
>

#31630 From: rajakumar rajakumar <raja_kumar_02@...>
Date: Fri Sep 12, 2008 1:30 pm
Subject: JDBC
raja_kumar_02
Send Email Send Email
 
Hi All ,
 
   Is the any way to get information about which driver(type 1 , type 2 , type
3, type 4).?
I am using Oracle 9i, and knew Type-4 Used . can i see this programmatically in
JDBC ??
 
 
thanks


--- On Mon, 7/7/08, Bala Subramanian <bala_java3d@...> wrote:

From: Bala Subramanian <bala_java3d@...>
Subject: [Java] THIN Driver
To: "Java Group" <Java_Official@yahoogroups.com>
Date: Monday, July 7, 2008, 3:52 AM






Hi friends,
            I need a program to connect the oracle DB using THIN driver. I
installed oracle 9i and java in my
PC(Local system). If any one have program for connect db using thin driver,
please send me.
Thanks in advance
Bala

[Non-text portions of this message have been removed]


















[Non-text portions of this message have been removed]

#31631 From: Palakollu kumar <tskumar83@...>
Date: Fri Sep 12, 2008 12:53 pm
Subject: Re: [Java] some java doubts
tskumar83
Send Email Send Email
 
HI ,
   Generally interfaces  contains abstract methods,but marker interfaces does
not.Marker interface means its just mark the classes which implement marker
interface to be serializable.Means JVM understand that class object state to be
written to persistent storage.

Thanks&Regards
Suresh


--- On Sat, 6/9/08, David Kramer <dkramer@...> wrote:
From: David Kramer <dkramer@...>
Subject: Re: [Java] some java doubts
To: Java_Official@yahoogroups.com
Date: Saturday, 6 September, 2008, 1:37 AM











             sirisha_suha wrote:

>

>

> Hi

>

> 1)Can any1 tell me whts the use of marker interface?i knw

> serializable, cloneable etc are marker interfaces.thy doesnt have any

> methods thn whts the use of it?i checked so many sites bt couldnt

> understand the exact meaning..so can 1 plz explain me...



First and second hits from Googling "java marker"

http://www.devx. com/tips/ Tip/5266

http://www.roseindi a.net/java/ master-java/ interface. shtml



> 2)1 mre doubt...abt abstract class and interface...

>

> whr we use them exactly?already abstract class does the same as

> interface thn why interface was introduced?



An interface cannot define any methods (only declare them).  An abstract

class can't be instantiated itself, but it can define concrete methods

that can be used in subclasses.



The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.

























       Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[Non-text portions of this message have been removed]

#31632 From: "mark" <anthonymorada@...>
Date: Fri Sep 12, 2008 1:58 pm
Subject: class declaration
anthonymorada
Send Email Send Email
 
i found this segment from a code

public class MyClass <Something> {

}

I just want to ask, what does "<Something>" do in the code?
What do you call that thing?

if there's somebody out there who can help by  giving links to reading
materials or ideas related to my query,or other better explanation of
that, then i will greatly appreciate it.

thanks

#31633 From: kannan kannan <kannan_kt81@...>
Date: Fri Sep 12, 2008 3:01 pm
Subject: Overriding in Java
kannan_kt81
Send Email Send Email
 
As I know we can increase the visibility of super class method in our overrided
sub class method.
 
If super calss have public method, and subclass have the overrided protected
method of that super class' method.So what will be the problem over this
scenario. please clarify me..
 
 


       Add more friends to your messenger and enjoy! Go to
http://in.messenger.yahoo.com/invite/

[Non-text portions of this message have been removed]

#31634 From: "ashley_a_j" <ashley_a_j@...>
Date: Thu Sep 11, 2008 11:35 pm
Subject: size of a row (resultset)
ashley_a_j
Send Email Send Email
 
Hi All,

I am new to this group.

I have a problem. I need to construct an XML with the contents of a
database row, But the XML should be less than 500MB. The select query
returns 100 rows and each row contains a BLOB field. Is there any way
to calculate the size of a row in bytes?

Waiting for your help. Thanks in advance.

Best Regards,
Ashly.

#31635 From: "Tim Robertson" <fsulova@...>
Date: Sat Sep 13, 2008 12:26 am
Subject: Re: Overriding in Java
fsulova
Send Email Send Email
 
I guess you are asking why you can't do this:  The answer is because protected
has weaker
access than public.

--- In Java_Official@yahoogroups.com, kannan kannan <kannan_kt81@...> wrote:
>
> As I know we can increase the visibility of super class method in our
overrided sub class
method.
>  
> If super calss have public method, and subclass have the overrided protected
method of
that super class' method.So what will be the problem over this scenario. please
clarify me..
>  
>  
>
>
>       Add more friends to your messenger and enjoy! Go to
http://in.messenger.yahoo.com/invite/
>
> [Non-text portions of this message have been removed]
>

Messages 31606 - 31635 of 32575   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help