Write java code to print "Hello how are you"
Thread1 should have "Hello"
Thread2 should have "how are you"
both the threads should start at the same time
public class Garbage
{
int a=0;
public void add()
{
int c=10+20;
System.out.println(c);
System.out.println(a);
}
public static void main(String args[])
{
Garbage obj=new Garbage();
System.gc();
System.out.println("Garbage Collected");
obj.add();
}
}
Above is a code in java used for garbage collection. object
obj has been created for the class Garbage and system.gc
method is called. Then using that object add method is
called.System.gc method if called the obj should be garbage
collected?
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
question.pls
49
I am unable to find or learn about print command. I have a
graphical program in core java in applet but i want to give
print command but i have coding for that so if anyone know
about this plz mail me on avdhesh_chauhan007@yahoo.co.in
98
Hai friends I am MCA 2006 passout. Spend time in 1 yr for
teacing and 5 months in small s/w firm. worked in 4 or 5
months in few places. Presently I am writing bank exams. I
want to get back to IT sector. Are there any possibilities.
any growth prospects?. I am having some knowledge in core
and advanced java. I am so desperate. Any suggestions thanks
in advance. u can write to my mail mahidestiny@gmail.com
40
We are seeing so many videos/audios as many web sited. But
question is these videos or audios are stored in Databases (
Oracle, Mysql, Sybase,... ) or stored any file directory
from there they will give the link for that? Pls explain and
give sample code to achieve this one? Thanks, Seenu.
hi am an engineering student and my next plan is for ms in
either in us or australia i got my passport but i dont know
anything bout visa can u give brief idea
1)How to get prepared for visa and
2)How to apply for top universities and
3)How to pay the fee and so on
These all are basic questions plz give me a clear idea
4.1 Supply contracts (in the form of comments specifying
pre- and post conditions)
for the enqueue() method of the LinkedQueue class given in
the Appendix.
(2)
4.2 Let Thing be a class which is capable of cloning
objects, and consider the code
fragment:
Thing thing1 = new Thing(); //(1)
Thing thing2 = thing1; //(2)
Thing thing3 = (Thing) thing1.clone(); //(3)
Explain how the objects thing2 and thing3 differ from each
other after
execution of the statements.
(
19
what is meant by multicast?
146
Name the components that are termed to be Heavy-weight
component but available in Light-weight components?
371
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
22
what is difference betweem home interface and remote interface?