473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Deprication details....

Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???
Feb 28 '07 #1
10 3473
horace1
1,510 Expert 1GB
Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???
it means that one of the classes or methods you are useing has been replaced with a another (one hopes better) alternative. The original should still work OK. To get full details compile the program with the -Xlint option which enables warning messages. If you go to the java documentation on the class in question it will tell you what has replaced it.
Feb 28 '07 #2
r035198x
13,262 8TB
Uses or overrides a deprecated API. ------- This is the message shown while compiling java program and what should be done to avoid this ???
The code will run fine if it has no other errors but it is very bad practice to use deprecated code.
Mar 1 '07 #3
readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???
Mar 1 '07 #4
readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???
Mar 1 '07 #5
r035198x
13,262 8TB
readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???
Do not use DataInputStream. Use the java.util.Scanner class instead.
Mar 1 '07 #6
r035198x
13,262 8TB
readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???
Please do not double post for the same problem.
Mar 1 '07 #7
You should use BufferedReader instead of DataInputStream
Example:
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));


Siddhanta
Jul 31 '08 #8
JosAH
11,448 Expert 8TB
readLine() in java.io.DataInputStream has been depricated. What can be used instead of that to get input from keyboard ???
I bet your didn't bother to read the API documentation for the method because
for deprecated items the documentation gives you an alternative way of getting
done what you want to get done. I am not going to repeat the API documentation
for you.

kind regards,

Jos
Jul 31 '08 #9
ajos
283 100+
I bet your didn't bother to read the API documentation for the method because
for deprecated items the documentation gives you an alternative way of getting
done what you want to get done. I am not going to repeat the API documentation
for you.

kind regards,

Jos
Jos you just replied to thread which is 1.5 years old ;)

regards :)
Jul 31 '08 #10
JosAH
11,448 Expert 8TB
Jos you just replied to thread which is 1.5 years old ;)

regards :)
Huh? Oh darn, now I see it: it was reply #8 that bumped it up again. Silly me ;-)

kind regards,

Jos
Jul 31 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: sam1967 | last post by:
I know how to build forms with ASP and process user input. Now i want to take credit card payments via a form. i will then download the details and process them via our credit card machine. do...
1
by: Srinivasa Reddy K Ganji | last post by:
I have created a customer registration functionality which stores details of customers like name, address, country in a database. Now I am on to implementing the customer registration details...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
0
by: hui | last post by:
I am trying to use an SQL Server 2000 to log the events, and have found somehow the contents in the details column get truncated. Details as following: The query I am using to retrieve details:...
1
by: SwatSoftwareDev | last post by:
Hi all, I have Master-Details-Details type of data i. e. every row of details table is attached with multiple rows of third table. What is the best approach (performance wise) to show this kind...
1
by: brian.newman | last post by:
I'm trying to link a gridview to another gridview in a Master-Details architecture. But the Details list isn't filtering like it is suppossed to. It will show all items on page load and it won't...
2
by: chutney | last post by:
Dear all, please excuse the fact that this is not an explicit problem I have, but more of a general query. I have an Access database (2003) with a load of contact details in it. Including various...
4
by: randy.buchholz | last post by:
Been fighting this one for a while, looking for help. I have a simple page with a grid view and details view (just managing a single table). The details view is primarily used for creating new...
0
by: peter.c.bradley | last post by:
Hi folks, I have an Access report that has an unbound text box in the details section. The report also includes the standard headers and footers. The details section is populated by a query...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.