User Profile
Collapse
-
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..... -
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??...Leave a comment:
-
Thanks Bernd.......... ............... ............... ...............Leave a comment:
-
Sorry i dont understand.. Is the syntax like this??
pls help......Code:diff file1 file2 > outfile | grep ^\< | sed s/^\<\ //
Leave a comment:
-
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...Leave a comment:
-
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.... -
Downcasting
What is downcasting and how to implement it??
Am not getting any tutorial on this...
pls help... -
new Integer(Integer .parseInt(Strin gName))
In my program my string array has numbers..
ie) String a[]={"1","2","3" };...Leave a comment:
-
TypeCasting Array
Hi all,
How to TypeCast a String Array to Integer Array??
TIA... -
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??Leave a comment:
-
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) |...Leave a comment:
-
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 -
So i have to modify my variable to include a backslash before my quotes right??
Thanks...
Will implement it in my code.......Leave a comment:
-
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++) -
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'... -
Thanks pbmods... the link was very helpfull...
sorted out my problem..........Leave a comment:
-
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.. -
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% >...Leave a comment:
-
Ya am doing that...
TSDN is also a forum right, so only came for help :)...Leave a comment:
-
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.......Leave a comment:
No activity results to display
Show More
Leave a comment: