Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 1123 points

NC

Favorite Answers9%
Answers42
  • Please help me in this code for executing delete command....?

    i want to delete a specific row from database.Here i am using a temp. variable in which the name is stored.

    import java.sql.*;

    import java.applet.*;

    import com.mysql.jdbc.PreparedStatement;

    import com.mysql.jdbc.Statement;

    public class abc extends Applet{

    public void init()

    {

    int del = 0;

    String a="Hemant";

    try

    {

    Class.forName("com.mysql.jdbc.Driver");

    }catch(Exception e)

    {

    }

    try

    {

    String info2="delete from people where name=' " + a + " ' ";

    Connection con= DriverManager.getConnection("jdbc:mysql://localhost/information","root","");

    Statement st=(Statement)con.createStatement();

    del=st.executeUpdate(info2);

    }catch(SQLException e2)

    {

    }

    if(del>=1)

    {

    System.out.println("Hurray..!!");

    }

    else

    {

    System.out.println("boooo..!!");

    }

    }

    }

    i dont know why i am not getting the output...

    2 AnswersProgramming & Design9 years ago
  • Flash photographs in website..........?

    i am quite new to website field...i want to make a site in which the images can appear in a slideshow format just like we see in websites as many photographs come and go with some effect....i just want the code in html or in other lang..which supports flash .....plzz help...its urgent for me....

    3 AnswersPhotography9 years ago
  • Pointers in C..............................?

    hey guys whats the difference in

    cout<<ptr o/p=0Xff8313ce2

    cout<<&ptr o/p=0Xff8313ce4

    you can see the diiference of 2 in the o/p....i know 2nd one is pointing to a memory location but where the 1st is pointing.....???.....

    2 AnswersProgramming & Design9 years ago
  • Gmail problem..............................?

    m not able to receive any mail in my Gmail account....the memory usage is just 4%...about 400 mails....i deleted many but still not receiving...so can anybody tell me what s happening..and remedies?

    3 AnswersGoogle10 years ago
  • Java Problem...............!!!?

    Please tell me how to use 'this" keyword...??

    I have written an applet for displaying Banner...

    import java.awt.*;

    import java.applet.*;

    public class Banner extends Applet implements Runnable

    {

    String msg="Hello!...My friend";

    Thread t=null;

    boolean stopFlag;

    public void init()

    {

    setBackground(Color.black);

    setForeground(Color.white);

    }

    public void start()

    {

    t=new Thread(this);

    stopFlag=false;

    t.start();

    }

    public void run()

    {

    char ch;

    for(;;)

    {

    try

    {

    repaint();

    Thread.sleep(250);

    ch=msg.charAt(0);

    msg=msg.substring(1,msg.length());

    msg+=ch;

    if(stopFlag)

    break;

    }catch(Exception e){}

    }

    }

    public void stop()

    {

    stopFlag=true;

    }

    public void paint(Graphics g)

    {

    g.drawString(msg,50,50);

    }

    }

    Now this pgm runs nicely.....but why we are using this while declaring another thread inside start()...??..and if I remove "this" from that statement then the banner stops moving and simply a message "Hello.!! My friend" is displayed...??,....so whats the use of "this" here

    1 AnswerProgramming & Design10 years ago
  • Just a Simple java Question..?

    1) Write a program to implement calculator which perform general arithmetic operations like addition, multiplication etc. Pass values and type of operation from command line argument.

    Actually my doubt is whether we have to pass the values and operation in command line like as below

    c\java\bin>javac Operations.java

    c\java\bin>javac Operations.java 2 3 Addition Multiplication

    or

    like this

    c\java\bin>javac Operations.java

    c\java\bin>java Operations

    Enter values

    2

    3

    Enter your choice:-

    1)Addition

    2)Multiplication

    //That is using Scanner

    tell me..what that last statement .... "Pass values and type of operation from command line argument." exactly means.....and is my approach correct in one of the above options??

    5 AnswersProgramming & Design10 years ago
  • Java doubt...may be easy for you...?

    guys i have a doubt in object creation

    suppose there are two class

    class A

    {

    some statements

    }

    class B extends A

    {

    some statements

    }

    Now if i create an object,say

    A O2=new B();

    Now tell me if my explanation for both are right....??

    The declaration tells that we have created an object O2 of type A but of class B.

    But in some book i read that if we want casting of objects then the same declaration will tell...we have created an object O2 of class A of type A....man!!!...is this explanation is right...??

    Please tell me what happens actually when we declare an object in this way...???

    2 AnswersProgramming & Design10 years ago
  • Oracle sql plus problem....?

    i am having oracle 9i...actually in sql plus it never accepts my username and password.i.e scott and tiger....so what to do...??

    1 AnswerSoftware10 years ago
  • Why do we use "param tag" in java applet?

    Something i know about "param tag" is that we can set some predefined arguments along with their values and then we can display them using getParameter()....but boss the same thing can also be done using drawstring in paint()....i am quite confused...many said "param tag" is important....but how....??

    Also i am not getting what repaint() in applet does??............

    Please tell me in simple language.....

    1 AnswerProgramming & Design10 years ago
  • What is a Server..........?

    Please tell me the simplest definition of a server.I am quite confused in understanding it.Also explain me with some example like web server...

    6 AnswersOther - Computers10 years ago
  • Please Explain the logic...?

    void main()

    {

    int i,j=2;

    for(i=0;i<3;i++)

    if(j=i)

    cout<<"Lotus ";

    else

    cout<<"Rose ";

    }

    Its result is Rose Lotus Lotus.. How? Explain it?

    I have checked through compiler also.....but am not getting how it comes..how the "if " section is executing...??...and yes the it is " if (j=i) " not if (j==i)....

    3 AnswersProgramming & Design10 years ago
  • Questoin regarding a 32 bit processor?

    I have two questions

    My first Q is ...A 32 bit processor can have maximum 4billion i.e 4GB ram....so i want to know how the RAM has increased.?..I know the mathematical 2's power concept...but in computer terms how this is done..?.

    Can we say that by increasing the bits of processor for eg. till 32 bit... so the possible addresses will be 4.2 billion so that the RAM increases till 4GB.....ahh...is this the reason.....??..

    And my second Q is can we say a 64bit processor is always better than 32bit processor...??

    2 AnswersDesktops10 years ago
  • Poor graphics...what to do?

    i am running a game in windows 7.....the problem is it is not showing good graphics...i tried to change the resolutions and colors but all in vain........so help me......

    4 AnswersProgramming & Design10 years ago
  • I have some audio related problem...?

    No sound is coming from my speakers and they are perfectly connected in CPU..when i connect my speakers to my mobile directly then they work perfectly..but they do not give any sound when connected to PC...when i go in control panel->sounds and audio devices.... it shows no audio device is connected...i even cannot change my audio settings..even in the tray icons in taskbar the volume icon is also gone...and when i search for volume control then it demands for something like audio mixer( i dont know what it is).....please help...

    2 AnswersOther - Computers1 decade ago
  • how to do meditation?

    i do meditation by watching a point on a wall....continuesly...for 5-10 mins......so is it a correct method..

    10 AnswersReligion & Spirituality1 decade ago
  • Have a problem in javascript..?

    Can anybody tell me how to write a code for sorting an array in descending order in javascript...

    3 AnswersProgramming & Design1 decade ago