information updations

information updations

I have created the following interface that allows updations to customer information:

public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code to update information of customer } public static void main(String a1[]) { updateInfo o= new updateInfo(); p.update(); System.out.println("Information updated"); } }

1.Will this code compile successfully.If not,identify and document the reasons.

2.I also want to check whether the user has entered the value for empcode and password variables.How can i check this out

View Answers

February 11, 2011 at 2:23 PM

Java Update Information

 interface validateInfo {
    public void validate(String empcode, String password);
    }
    class updateInfo implements validateInfo {
        String empcode;
        String password;
        public void validate(String code,String pass) {
            this.empcode=code;
            this.password=pass;

 } 
 public static void main(String a1[]) {
     updateInfo o= new updateInfo();
     o.validate("1111","roseindia"); 
     System.out.println("Information updated");
     } 
     }

Ads









Related Tutorials/Questions & Answers:
information updations
information updations  I have created the following interface that allows updations to customer information: public interface validateInfo { public... validateInfo { public void update() { //code to update information of customer
updations on data in mysql
updations on data in mysql  sir ,i want to retreive data from mysql as a table format and after retreiving the data i want to edit the data and update the data into mysql using jsp   hi friend, Try the following sample
Advertisements
to update the information
to update the information   sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar
to update the information
update the information   sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar.   Please visit
html code for student information?
html code for student information?  html code for student information
VoIP Information
VoIP Information VOIP Information When you are looking for the most comprehensive VOIP Information available, you will quickly find that you have... the vast amount of information on your own could be imposing. Your other option
showing the information of database in textbox
showing the information of database in textbox  how to make a information of a database make appear to the user in the textbox
ModuleNotFoundError: No module named 'information'
ModuleNotFoundError: No module named 'information'  Hi, My Python... 'information' How to remove the ModuleNotFoundError: No module named 'information' error? Thanks   Hi, In your python environment
student information system
student information system  can you show me example of "student information system" pseudo code and flow chart with "student name, student id, student residential hall, student course, student phone numbers
Printing server information
trying to fetch the server Information Print. How could i will printing the server information in PHP? Please provide me any example related this topic. Thanks,   hi, Are you looking for the print server information on the screen
Information Technology Courses
Information Technology Courses  Hi, Which all good Information..., There are many technologies available in Java. these Information Technology Courses... are planning to make career in Information Technology then you should learn
Information Save Alert
Information Save Alert  Hi, Sir I am creating a web page there user can edit their information. I want a javascript that can show an alert message when user edit the information and trying to close or go to another page without
get information from database
get information from database  get information from database   Please visit the following links: http://www.roseindia.net/sql/mysql-table/mysql-php-select.shtml http://www.roseindia.net/sql/mysql-example/select
Hostel management information system
Hostel management information system  Can u send me mvc based project of hostel management systenm source code
introduction to information systems development
introduction to information systems development  can someone sent plz codes for college management system developed using IDE eclipse
Courses in Information Technology
Courses in Information Technology  What are the Courses in Information Technology for beginner? How to learn programming and become a good programmer... information. Thanks
information about scjp
information about scjp  fees details abou scjp? what are the best books for preparing to scjp. how many time scjp exam's are conducted for one year
master of information and data science
master of information and data science  Hi, I am beginner in Data...: master of information and data science Try to provide me good examples or tutorials links so that I can learn the topic "master of information and data
information and data science
information and data science  Hi, I am beginner in Data Science...: information and data science Try to provide me good examples or tutorials links so that I can learn the topic "information and data science". Also tell me
give information or website address
give information or website address  hi i want u r help .... i m finding code for constructing graph in java but during execting them i have problem bec of packages... has i proceed i came to know
ModuleNotFoundError: No module named 'directed_information'
ModuleNotFoundError: No module named 'directed_information'  Hi...: No module named 'directed_information' How to remove the ModuleNotFoundError: No module named 'directed_information' error? Thanks   Hi
ModuleNotFoundError: No module named 'directed_information'
ModuleNotFoundError: No module named 'directed_information'  Hi...: No module named 'directed_information' How to remove the ModuleNotFoundError: No module named 'directed_information' error? Thanks   Hi
ModuleNotFoundError: No module named 'directed_information'
ModuleNotFoundError: No module named 'directed_information'  Hi...: No module named 'directed_information' How to remove the ModuleNotFoundError: No module named 'directed_information' error? Thanks   Hi
ModuleNotFoundError: No module named 'version_information'
ModuleNotFoundError: No module named 'version_information'  Hi, My... named 'version_information' How to remove the ModuleNotFoundError: No module named 'version_information' error? Thanks   Hi
General information on different topics
General information on different topics In this section we will provide.... These information will definitely help you in your day to day activities. We are giving these information in the form of many easily to learn articles
Agra Travel Information
Agra Travel Guide - Agra Travel Information Agra, the city of three World Heritage Sites - The Taj Mahal, the Red Fort and the Fatehpur Sikri ? is a must visit site of India. No tourism journey can be completed without visiting Agra
Uploaded File Information in the Receiving Script?
Uploaded File Information in the Receiving Script?  How To Get the Uploaded File Information in the Receiving Script?   Hi friends, Once... the uploaded file information through the predefined array called $FILES
Information Website Template
Information Websites We provide high quality Information site development... in developing websites for information industry. We are designing, developing, testing, uploading and maintaining websites for information industry
masters of information and data science berkeley
masters of information and data science berkeley  Hi, I am beginner... to learn: masters of information and data science berkeley Try to provide me... of information and data science berkeley". Also tell me which is the good
online master of information and data science
online master of information and data science  Hi, I am beginner... to learn: online master of information and data science Try to provide me good... of information and data science". Also tell me which is the good training
ModuleNotFoundError: No module named 'colcon-package-information'
ModuleNotFoundError: No module named 'colcon-package-information'  Hi...: No module named 'colcon-package-information' How to remove the ModuleNotFoundError: No module named 'colcon-package-information' error? Thanks

Ads