In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?
how a programmer confirms that the data submitted has been
succesfully inserted into the database(either oracle or my
sql).. How a programmer confirm if there is any problem with
the program he wrote for insertion...
ANS:--- >executeupdate method is having boolean return type,
if anything goes wrong in data insertion or data updation,
it would return false. otherwise, if it successfully inserts
data into the database, it would return true
NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS
TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
write a program that list all permutations of ABCDEF in
which A appears before B?
Why does java doesnt suuport unsigned values?
how to write a server program and sending the mails to the
server using smtp protocol please help me
take an array with -ve and +ve value both.find out the
nearest value of 0(zero).if two values are same like(-2 and
+2)then extract +2 is nearest of 0(zero).
what are Hostile Applets?
Howto get an object that will perform date & time calculations
then format it for output in some different locales with
different date style.can ne1 tel me the answer of this
How to display names of all components in a Container?
What releases of Java technology are currently available?
What do they contain?
Write an algorithm program in java for the following question..
1) S is a set of integers.X is an integer obtained by sum of two digits in S.
Write logic for whether or not the X is from the S.
The time of algorithm should not exceed o(n logn).
Hi friends am new to java. I read jar file means collection
of java files. For executing struts application what are
the necessary jar files. " struts.jar " file contains
what. can u explain
what is dafault constructor and paramererised constructor
Say you want to store the information about a number of
pets in an array. Typical
information that you could store for each pet (where
relevant) would be
• Breed of animal
• Animal's name
• Its birth date
• Its sex
• Whether it has been sterilised or not
• When it is due for its next inoculation
• When it last had its wings clipped
For each type of pet (eg. dog, cat or bird) you would
typically define a class to hold
the relevant data.
Note: You do not need to implement these classes. Just
answer the following
3.1.1 What would be the advantage of creating a superclass
(eg. Pet) and
declaring an array of Pet objects over simply using an
array of Objects,
storing each of the instances of the different pet classes
(eg. Dog, Cat or
Bird) in it?
3.1.2 Would you define Pet as a class or as an interface?
How to Sort Strings which are given in List and display in
ascending order without using java api.
what is the use of bean managed and container managed with