Plzzzzzzzzzzz help me

i am new to java . & i have to make a project on access specifiers. i have to give a detail info on this topic.with the help of a program.plz help me. i will be very thankful to u.
u can also post this info on my mail i.d.my i.d is
->[email protected]
thanks

Hi Priyanka,
Accessibility of the members can be any one of the following.
public
protected
default
private
public:
From where they can be accessed:
1) From a subclass in the same package.
2) From a nonsubclass in the same package.
3) From a subclass in another package.
4) From a nonsubclass in another package.
protected:
1) From its own package
2) From its subclass of its own package.
default:
1) Only accessible in its own package.
private:
1) only accessible in its own class.
I hope this will help you.
Thanks
Bakrudeen

Similar Messages

  • Insertion problem .... plzzzzzzzzzzz help

    I have a jsp page code below mentioned...
    This jsp page retrieved values from a html files, which is shown as bold.
    my problem is that i cannot insert the values in database.plzz help me...
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <%@ page import =" java.sql.Date.*" %>
    <%@ page import =" java.text.SimpleDateFormat.*" %>
    <%@ page import =" java.util.Date.*" %>
    <%@ page import =" java.text.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page language="java" import="java.sql.*" %>
    <%
         String     Security_No, Category_code,Face_Value, Purchase_Value,Interest_Paid,Interest_Received,Brokrage,Total_Value,Voucher_No,Voucher_Date,Voucher_Amt,D_Date1,D_Date2,Ledger_No,Maturity_Date,sql1 ;
         java.util.Date voudate_temp=null;
         java.util.Date duedate1_temp=null;
         java.util.Date duedate2_temp=null;
         java.util.Date matdate_temp=null;
         ResultSet results;
         PreparedStatement sql;
    try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
         System.out.println("got connection");
              try
                   SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
                   format.setLenient(false);
                   int     sec_no, catg_code,face_val,pur_val,int_paid,int_recd,brkr,tot_val,vou_amt;
                   String vou_no, lf_no;
                   java.sql.Date vou_date, due_date1, due_date2,mat_date;
                   boolean     doneheading = false;
                   Statement s=con.createStatement();
              Security_No = request.getParameter("secno");
              Category_code = request.getParameter("catcode");
              Face_Value = request.getParameter("facevalue");
              Purchase_Value = request.getParameter("purvalue");
              Interest_Paid = request.getParameter("intpaid");
              Interest_Received = request.getParameter("intrecvd");
              Brokrage = request.getParameter("brokrage");
              Total_Value = request.getParameter("tvalue");
              Voucher_No = request.getParameter("vouno");
              Voucher_Date = request.getParameter("voudate");
              Voucher_Amt = request.getParameter("vouamt");
              D_Date1 = request.getParameter("due1");
              D_Date2 = request.getParameter("due2");
              Ledger_No = request.getParameter("lfno");
              Maturity_Date = request.getParameter("maturity");          
              sql1 = "insert into sec_mast values (" + "'" + Security_No + "', '" Category_code "' , '" + Face_Value + "', '" + Purchase_Value + "', '" + Interest_Paid + "', '" + Interest_Received + "', '" + Brokrage + "', '" + Total_Value + "', '" + Voucher_No + "', #"+ Voucher_Date+ "# , '" + Voucher_Amt + "', #" + D_Date1 + "#, #" + D_Date2 + "#, '" + Ledger_No + "', #" + Maturity_Date + "#)" ;
              s.executeUpdate(sql1);               
                   sql = con.prepareStatement("SELECT * FROM sec_mast WHERE sec_no = '" + Security_No + "' ");
                   results = sql.executeQuery();
                   while(results.next())
                        if(! doneheading)
                             doneheading = true;
    sec_no = results.getInt("sec_no");
    catg_code= results.getInt("catg_code");
    face_val = results.getInt("face_val");
    pur_val = results.getInt("pur_val");
    int_paid= results.getInt("int_paid");
    int_recd = results.getInt("int_recd");
                        brkr = results.getInt("brkr");
    tot_val= results.getInt("tot_val");
                        vou_no = results.getString("vou_no");
                        voudate_temp = results.getDate("vou_date");
    vou_amt = results.getInt("vou_amt");
                        duedate1_temp = results.getDate("due_date1");
    duedate2_temp= results.getDate("due_date2");
    lf_no= results.getString("lf_no");
         matdate_temp = results.getDate("mat_date");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   vou_date = sdf.format(voudate_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date1 = sdf.format(duedate1_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date2 = sdf.format(duedate2_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   mat_date = sdf.format(matdate_temp);
    out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>");
    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia > <BIG>SECURITY INFORMATION</BIG></FONT></P>");
    out.println("<P align=center>");
    out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">");
    out.println("<TR>");
                        out.println("<TD>Secuirty No.</TD>");
    out.println("<TD>Category Code</TD>");
    out.println("<TD>Face Value</TD>");
    out.println("<TD>Purchase Value</TD>");
                        out.println("<TD>Interest Paid</TD>");
                        out.println("<TD>Interest Recieved</TD>");
    out.println("<TD>Brokrage Value</TD>");
    out.println("<TD>Total Value</TD>");
    out.println("<TD>Voucher No.</TD>");
    out.println("<TD>VOucher Date</TD>");
                        out.println("<TD>VOucher Amount</TD>");
    out.println("<TD>Due Date 1</TD>");
                        out.println("<TD>Due Date 2</TD>");
    out.println("<TD>L F No.</TD>");
                        out.println("<TD>Maturity Date</TD>");
                        out.println("<tr><td>" + sec_no);
                        out.println("<td>" + catg_code);
                        out.println("<td>" + face_val);
                        out.println("<tr><td>" + pur_val);
                        out.println("<td>" + int_paid);
                        out.println("<td>" + int_recd);
                        out.println("<tr><td>" + brkr);
                        out.println("<td>" + tot_val);
                        out.println("<td>" + vou_no);
                        out.println("<tr><td>" + vou_date);
                        out.println("<td>" + vou_amt);
                        out.println("<td>" + due_date1);
                        out.println("<tr><td>" + due_date2);
                        out.println("<td>" + lf_no);
                        out.println("<td>" + mat_date);
                   if(doneheading)
                        out.println("</table>");
                   else
                        out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=0>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                        out.println("No matches for " + Security_No);
                   }catch(ParseException e) {
    out.println("do date format error action.<br>");
              catch (SQLException s)
                   out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=50>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                   out.println("Duplicate Entry.Try another Security Code No.<br>");
              catch(ParseException e) {
              out.println("do date format error action.<br>");
         catch (ClassNotFoundException err)
              out.println("Class loading error");
    %>
    </body>
    </html>

    you should try posting it in the jsp forum.what error/exceptions are you getting if any?

  • Regarding final year project plzzzzzzzzzzz help!!!!

    hey guys i am final year M Sc IT student. i m starting a project called JMessenger.i had only decided the name of the software.what i need to know is that is there any classes which gived hardware control. I mean is there any way where i can connect webcam to my program.I m planning to include Audio & Video conferencing and chatting but i do not know how to do it and go for it.So i request you java programmers to help me and suggest me any links or any other book so that i an complete my proect. You can mail me at [email protected]
    Thanking you in advance

    i wanna know where i can place the class files which is mentioned on that JUsbforgenet site. Where will i get those class files mentioned in those packages ...and also is it possible to make this possible. I mean making an audio/video conferencing ? Is it possible ? and what is double buffering concept ? I also want to know how to compress the captured video and send it across a different machine. HELP Thank YOU

  • Regarding conversion of String to Date

    Hi
    Ravi here and I am getting the following exception when i am working with String to date conversion.As i am working in LAN this code is working for all others .This problem is with my system only.This is not supporting with yyyy-MM-dd format.One more thing in my system only we installed VisualStudio.Is that a problem for this exception.I am using Myeclipse
    Plzzzzzzzzzzz help me I got strucked .
    Thanks in advance
    Code:
    public void testSaveDates() throws HibernateException, ParseException{
    try{
    Date date=new Date();
    String str1 ="2006-05-06";
    Date dateFormatter = new SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;
    System.out.println(dateFormatter);
    catch(Exception e){
    e.printStackTrace();
    Exception:
    java.text.ParseException: Unparseable date: "2006-05-06"
         at java.text.DateFormat.parse(DateFormat.java:335)
         at chaitanya.MyTest.testSaveDates(MyTest.java:282)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

    Date date=new Date();You don't need this line.
    Date dateFormatter = new
    er = new
    SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;As already told, you don't need the single quotes. And you don't need two semi-colons - that's unnecessary.
    I just wrote a sample code to test that out. Check it and see for yourself.
    import java.text.SimpleDateFormat;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse("2005-04-18"));
              System.out.println(new SimpleDateFormat("'yyyy'-'MM'-'dd'").parse("2005-04-18"));
    }Output:
    Mon Apr 18 00:00:00 EDT 2005
    Exception in thread "main" java.text.ParseException: Unparseable date: "2005-04-18"
            at java.text.DateFormat.parse(DateFormat.java:335)
            at Test.main(Test.java:6)I wonder why it is not feasible to write a quick sample code.

  • Item txt using include text smartform

    Hello Friends ,
    How can we print Item text from purchase order in smartform using include text . I know click on the include text mode and then write the following details .
    text id = f01
    lanuage = en
    object = ekpo
    what should i write in text name . Any other details i need to mention
    Do i need to create one using SO10 . Plzzzzzzzzzzz help
    Joseph

    Hi,
    Right click on node(on which you need the text)
    Create-Flow logic-Program lines.
    system gives %CODE1
    there are two tabs General attributes and Conditions
    click on General Attributes
    Provide the Input parameters - which contains po no and item no
    Provide the output parameters- globally defined Variable  ex NAME type C
    write the code:
    CONCATENATE ekpo-ebeln ekpo-ebelp into name
    Now again right click on program line create Text.
    Give text type as Include text.
    provide the details
    Text Name      &NAME&
    Language        EN
    Text ID         F01
    Text Object     EKPO   
    Check the box : no error
    Rgd
    Narsim
    Edited by: Aeda N on Nov 17, 2009 11:59 AM

  • Project template-List boxes(Public sector,Work in Process,Template)

    Project template-List boxes(Public sector,Work in Process,Template)
    What is the functionality of these 3 list boxes???plzzzzzzzzzzz help?? if at all i enable where i can get find it in the reporting??which reports??
    Once the project is created can v define that project as template???Y template list box enabled even at that stage???
    Plz help me to know the functionality....thanks a lot n advance...

    Hi
    You may enable an existing project as a template. Doing so will allow you to create new projects from that template.
    Public Sector is an attribute of a project you may use when you set the Auto Accounting rules. This is useful if you need to account differently for projects executed for the public sector versus projects executed for commercial companies or individuals.
    Workflow in process checkbox is flagged if you enable the workflow for project status changes. In such case, when you want to change the status the workflow will be fired and until the new project status is approved you will bee that the project is waiting for the workflow processing to complete.

  • IDOC_JDBCStoredProcedure

    hi all......
           Am doing an idoc to jdbc scenario. Is is as follows
    I ll send idoc to xi from which i need to generate an xml file in a specified format and this xml should be given as input to the stored procedure. what can be done. ny idea how to do it. i ve generated the idoc and sent to xi from here.
    what all things should be done in IR. Is bpm can be used to resolve this.... pLzzzzzzzzzzz help me

    hi,
    no need for a BPM
    check this blog:
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    or this one:
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Flash Media Encoder forum moved

    Please go to the new location of the Flash Media Encoder
    forum:
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=15&catid=628&entercat= y

    Sir i have a query
    i install TV card in my system and flash media live encoder get encoding feed from the TV card and in video device selection i select 713xBDA analog capture which is shown in device selection drop down it is all ok but
    i want to show this live feed on by flash palyer or my browser.
    for camera we use get camera function and others but for TV card i dont know please tell me the any tutorials or any code script etc.
    plzzzzzzzzzzz help me.
    My FMLE get the input from tv card and tv card device is show in device drop down list which is "713xBDA analog capture" it is all ok
    but problem is that i don't how to flash script get the "input" and "record" from this device directly. or through FMLE.
    which is possible
    Get Input and record:
    TV card --> FMLE -->flash player      (flash scprit required)
    TV card-->flash player                      (flash scprit required)

  • Check Maintain compatibility Checkbox in 64 bit word 2013

    Hello,
    I am creating a plugin for Word in VB.net and i need to Check the checkbox of "maintain compatibility with previous version" when my plugin set up installs.
    So Is there any registry or any code to check that checkbox permanently.
    Plzzzzzzzzzzz help me.....i need to give a release soon.....
    Thanks in advance
    Regards
    Honey26

    Hi Honey26,
    I don’t find a way to check it permanently, you may change compatibility mode when start your plugin. If you want it affect all documents, that plugin should be the application-level add-in.
    To set compatibility mode:
    # Document.SetCompatibilityMode Method (Word)
    http://msdn.microsoft.com/en-us/library/office/ff840359(v=office.15).aspx
    # Document.CompatibilityMode Property (Word)
    http://msdn.microsoft.com/en-us/library/office/ff196837(v=office.15).aspx
    If you want to save the file with specify compatibility mode, please refer to:
    # Document.SaveAs2 Method (Word)
    http://msdn.microsoft.com/en-us/library/office/ff836084(v=office.15).aspx
    Best Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Not installing intel hd graphics hp oficcial site driver and brightness problem

    after downgrading to window 8.1 to window 7 (64 bit ) issue of  intel hd 4400 in hp 15 r0-14tx does not install the intel graphics (SHOWING ERROR : SYSTEM DOES NOT MEET MINIMUM REQUIREMENTS) PLZZZZZZZZZZZ help how to fix itzzzzzz.......
    AND I also dont have recovery drive it is deleted by meeeee....

    You have tried any other unsupported version of graphics driver???
    If yes then uninstall it and reinstall your computer then try to reinstall driver which you have just downloaded.
    If you dont have installed any unsupported driver then try the following
    1) Right click on computer
    2) Click on manage 
    3) In left panel select device manager.
    4) Find your graphics controller (Mostly found in display adapter)and right click on it and choose option update driver software.(You need to find your graphics controller yourself because it was diferrent for diferrent models i.e. I have Intel(R)HD Graphics in display adaptars)
    5)If this was doesnt fix your problem then try Intel driver updater  or Driver navigator tool

  • Welcome to the Flash Media Encoder Forum

    Welcome to the Adobe Flash Media Encoder forum! Ask
    questions, discuss, and share feedback with other Flash Media
    Encoder users.r

    Sir i have a query
    i install TV card in my system and flash media live encoder get encoding feed from the TV card and in video device selection i select 713xBDA analog capture which is shown in device selection drop down it is all ok but
    i want to show this live feed on by flash palyer or my browser.
    for camera we use get camera function and others but for TV card i dont know please tell me the any tutorials or any code script etc.
    plzzzzzzzzzzz help me.
    My FMLE get the input from tv card and tv card device is show in device drop down list which is "713xBDA analog capture" it is all ok
    but problem is that i don't how to flash script get the "input" and "record" from this device directly. or through FMLE.
    which is possible
    Get Input and record:
    TV card --> FMLE -->flash player      (flash scprit required)
    TV card-->flash player                      (flash scprit required)

  • HT201210 Recover Lost Data...Iphone 4s

    i have iphone 4s and i have restore from 6.1.1 to 6.1.3 without dng any backup i did restore. Sooo i lost all data..! i need my data , images , videos back plzzzzzzzzzzz help me plzzzzz...

    iOS: Resolving update and restore alert messages

  • HELP ME TO SOLVE THIS PROBLEM PLZZZZZZZZZZZ

    i forgot my nokia e7 lock code and i don't know what to do if any one can help me plz they will kill me in my home coz i bought it Only two days ago ?!!! 

    If you've set a lock code yourself, you need to remember it ! Default is 12345, as a last resort the three finger salute will reset the phone and you can start from scratch, but phone will be wiped and you will lose all data !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Problem while connecting to DB2 through JDBC...Help PLZZZZZZZZZZZ

    Hi Everyone, I am facing this exception when I try to connect to DB2 to which installed on Z/OS. Please help me
    for your ref I am pasting my code below exception
    com.ibm.db2.jcc.b.SqlException: IO Exception opening socket to server 10.108.45.151 on port 446. The DB2 Server may be down.
         at com.ibm.db2.jcc.a.a.<init>(a.java:137)
         at com.ibm.db2.jcc.a.b.a(b.java:1542)
         at com.ibm.db2.jcc.b.o.<init>(o.java:795)
         at com.ibm.db2.jcc.a.b.<init>(b.java:298)
         at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:162)
    my code is:--
              try {
                   Class.forName("com.ibm.db2.jcc.DB2Driver");
              } catch (ClassNotFoundException se) {
                   se.printStackTrace();
                   System.out.println(se);
              try {
                        cn =DriverManager.getConnection("jdbc:db2://11.112.41.12:446/dbname","uname","pwd");
              } catch (Exception e) {
                   e.printStackTrace();
              }

    You will need to check this error message on metalink and likely on an SR.
    But with RAC you should not be connecting to the database, or in most cases, to a specific instance: You should be connecting to a TAF (or FCF) service.

  • JPanel help Plzzzzzzzzzzz URGENT!

    Hey,
    I have JPanel filled with images........how to identify the images with mouse clicks...????????????????????

    Geez- the guy's a little desperate... be nice, people. It's not that hard.
    Well, to answer the question, you simply need to gather the x/y coordinates of your images, determine the x/y coordinates of your mouseclick: add a Mouse Listener to your JComponent, with a Mouse Input Adapter as its argument. In the MouseInputAdapter, you create the mousePressed() method, like:
    private MouseInputAdapter mia() {
       MouseInputAdapter mia = new MouseInputAdapter() {
          public void mousePressed(MouseEvent evt) {
             int x = evt.getX();
             int y = evt.getY();
    }Somewhere inside your mousePressed code you can have other code that looks to see if it's inside an image, etc. (substitute mouseClicked for mousePressed if you'd rather it be a complete click).
    It's true, though, that the question is vague so a more structured and focussed query would probably gather a more focussed response.
    -Mike Schwager

Maybe you are looking for