User Profile

Collapse

Profile Sidebar

Collapse
snowfall
snowfall
Last Activity: Aug 26 '08, 03:05 PM
Joined: Aug 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • snowfall
    replied to Downcasting
    in Java
    oh k.. thnks jos... I went to an interview.. There they said that, interface can be partially implemented and the concept for that is know asdowncasting.....
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to Downcasting
    in Java
    No both are concrete classes only.. And there is no inheritance relationship between the classes. Is it possible to implement only some methods of our interface without using abstract concept??

    Dont we do that with adaptors in JFC... Is there any technique like that for POJO classes??...
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to diff command in unix
    Thanks Bernd.......... ............... ............... ...............
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to diff command in unix
    Sorry i dont understand.. Is the syntax like this??

    Code:
    diff file1 file2 > outfile | grep ^\< | sed s/^\<\ //
    pls help......
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to Downcasting
    in Java
    Hi Jos, Thanks for the reply..

    Can the same be done for interfaces. For example i have a Base Interface whose some methods the first class should implement and other methods the second class must implement.
    i.e.; all the interface methods should not be available to both the classes.
    Only access to particular methods should be given.

    Can this be done?? (is this also downcasting??

    (Sorry for...
    See more | Go to post

    Leave a comment:


  • snowfall
    started a topic diff command in unix

    diff command in unix

    I need to find the difference of two files and save it in third file and process it..
    But the outpur of diff command is coming with the 'line number - difference' code.

    Eg of my output

    i22,26d21
    < Use the bc program to convert from decimal to hexadecimal.
    < To do so, use the obase command to set the base for output:
    39c34,35
    < See Section 5.6 for more examples of using bc....
    See more | Go to post

  • snowfall
    started a topic Downcasting
    in Java

    Downcasting

    What is downcasting and how to implement it??

    Am not getting any tutorial on this...

    pls help...
    See more | Go to post

  • snowfall
    replied to TypeCasting Array
    in Java
    new Integer(Integer .parseInt(Strin gName))

    In my program my string array has numbers..
    ie) String a[]={"1","2","3" };...
    See more | Go to post

    Leave a comment:


  • snowfall
    started a topic TypeCasting Array
    in Java

    TypeCasting Array

    Hi all,

    How to TypeCast a String Array to Integer Array??


    TIA...
    See more | Go to post

  • snowfall
    replied to MySQLIntegrityConstraintViolationException
    If i delete a row in the child table with 'where condition of my foreign key', then does the table get corrupt??

    Is that why i am getting this error??
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to MySQLIntegrityConstraintViolationException
    But i dnt have a primary key or unique key in my table. I have only Foreign Key

    My table structure is

    +---------------+-------------+------+-----+---------+-------+
    | Field | Type | Null | Key | Default | Extra |
    +---------------+-------------+------+-----+---------+-------+
    | reply_no | int(5) | YES | | NULL | |
    | question_no | int(5) |...
    See more | Go to post

    Leave a comment:


  • snowfall
    started a topic MySQLIntegrityConstraintViolationException

    MySQLIntegrityConstraintViolationException

    I am getting the following error on inserting into my MySQL DBase.

    My child table has a foreign key of the parent table. But while creating the table, i have used 'on delete cascade'.

    I dnt know what the problem is. Pls help

    com.mysql.jdbc. exceptions.MySQ LIntegrityConst raintViolationE xception: Cannot add
    or update a child row: a foreign key constraint fails
    See more | Go to post

  • snowfall
    replied to Single Quotes in select Query
    So i have to modify my variable to include a backslash before my quotes right??
    Thanks...
    Will implement it in my code.......
    See more | Go to post

    Leave a comment:


  • snowfall
    started a topic Insertion of image from Remote Location
    in Java

    Insertion of image from Remote Location

    My project is to allow remote users to insert their photo. how to do this? I am able to insert photos in Local System, but for Remote System FileNotFound Exception is coming.

    My Code is

    Code:
    fis=new FileInputStream(req.getParameter ( "fileupload" ) );
    byte b[]=new byte[fis.available()];
    fis.read(b);
    fout=new FileOutputStream("photos/"+empNo+ ".jpg",true);
    for(int y=0;y<b.length;y++)
    ...
    See more | Go to post

  • snowfall
    started a topic Single Quotes in select Query

    Single Quotes in select Query

    Hi all,

    Am trying to retrive data from database with a where clause. The Where condition value is got from the jsp page on submission. This Value contains single quote..

    [CODE=java]stmt4=con.prepa reStatement("se lect question_no from forumquestions where question_name=' "+question+ "'")[/CODE]

    Here question is the variable coming from the jsp and its value is " What is 'Session Tracking'...
    See more | Go to post
    Last edited by mwasif; Jan 7 '08, 12:10 PM. Reason: Added [CODE=java] tag

  • snowfall
    replied to Changing the date format
    Thanks pbmods... the link was very helpfull...
    sorted out my problem..........
    See more | Go to post

    Leave a comment:


  • snowfall
    started a topic Changing the date format

    Changing the date format

    By default the date's format is 'yyyy-mm-dd'. My requirement comes with only 'MM-dd' .
    Can i save this format in the MYSQL database for Date column??

    Pls help..
    See more | Go to post

  • snowfall
    replied to JSP conditions
    in Java
    You can straight away assign the message to be displayed to mymessage, instead of giving err or proc.
    In the jsp u can display the msg by <%=mymessage% >...
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to Help - To create a Forum
    in Java
    Ya am doing that...
    TSDN is also a forum right, so only came for help :)...
    See more | Go to post

    Leave a comment:


  • snowfall
    replied to Help - To create a Forum
    in Java
    Should i save the threads in the forum in database or in files??

    If in files, should i save each discussion(mean to say, each question and replies) in separate file or in the single file, should i maintain all the discussions??

    pls help me.......
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...