Modifier of class

I would like to know that how differ between the following:
public class a
private class a
class a
Is there the term "protected class a"?
I knew about modifier of method but I don't know that class similar to method.

Class declarations have the following format:
[public] abstract class identifier [extends [i]super] [implements [i]interface]
If a class is not defined as public then classes outside of its' package cannot access it. A class can be marked as either abstract or final but not both. If a class does not explicitly extend another class then it extends Object by default. A class can implement any number of interfaces each seperated by a comma.
classes cannot be marked as private or protected, it has no meaning at a class level.

Similar Messages

  • Modify Table Class in NW2004s ?

    Hi,
    Currently i use the modify table class in order to replace a column with the text within documents attached to the data. What would be the corressponding alternative to do this with NW2004s ?
    Thanks
    Shailesh

    I have done this in the past, but have not published anything on this, as I do not recommend using this approach. The reason being that within future releases, a java interface for web design for APIs will be available and this approach will not convert in the long term. Therefore, the recommendation at this point is for table interface, use the BW 3.x runtime. There are numerous examples of how to do tabs and the such in that runtime (see web template 0ADHOC) in BW 3.5 releases...

  • BW WAD Modify Table Classes

    Hi Gurus,
       I'm working on modify table classes for reporting purpose. We have a report where we have to find the trend analysis, need to check if its uptrend or downtrend..
    We have data like this:
    2002 | 2003 | 2004 | 2005
    0    |  8   |  9   | 10
    0    | 10   |  9   | 8
    based on this data I have to create a new row which will see how the trend is moving with an icon.
    for instant if you see the data, 8-9-10 this called uptrend.. and 10-9-8 is a downtrend.
    can anyone please help me with abap code. where i can check I_Display_value in all the rows and the create a new one based on the values.
    please gurus, its an urgent for me and really important for our user. Can anyone help me ..
    thanks in adavance
    deepak

    If my description is not clear enough I would be happy to give more information. But in summary what I am seeking is a way in HTML to format those numbers and dates in the BW WEB Templates.
    Thanks in advance.

  • How to modify java classes in tomcat

    Hi friends,
    I have jsp which calls some java classes,i want to modify code in one of the java class .Please tell me what are the steps required.
    Thanks
    Naresh

    Classes involved in web-apps are compiled from a source tree outside of Tomcat. The class files are then installed in either WEB-INF/classes or inside a jar in WEB-INF/lib.
    The source code is quite separate from the Tomcat server, and you're going to have to track it down. Normally the source for a web-app (including fixed pages and JSPs) is compiled and wrapped up in a "war" file (a kind of jar) and distributed to the web server like that.
    There may well be an ant script for the job.

  • How to modify a class in .jar and compile it back

    Hi,
    I have questions reg .jar, I need to test my application and I need to modify certain files in that .jar and compile it back. How do I do that? I have extract all the classes and decompile it to .java, and I just want to edit just 1 file, but I always have problems compiling it. Am i doing it the wrong way?Please help...
    Thanks.

    Did you make a jar and now need to make changes? Help me to understand why you decomplied the class files? Can you not just make a new jar?

  • How modify weblogic.class.path

    i have problem for install drivers oracle in the classpath
    how modify the properti of weblogic weblogic.class.path?
    i have to do it with the program wlconfig, but don´t run
    jorge

    If you run your WebLogic on Win2K, you have to modify the
    command file startWebLogic.cmd
    Regards,
    Jacob
    "jorge" bienpicao.com wrote:
    >
    i have problem for install drivers oracle in the classpath
    how modify the properti of weblogic weblogic.class.path?
    i have to do it with the program wlconfig, but don´t run
    jorge

  • Extending/Modifying VOImpl Class Methods

    Hi All
    In iExpense Module, there is one CreditCardsVO, which is already extended by a developer as BTCreditCardsVO
    The standard CreditCardsVOImpl class has its contructor method, executeQuery, encodeCardNumber, etc methods.
    My requirement is to modify the encodeCardNumber method ( This method masks the CreditCard Number with '****' , leaving just last 4 digits to display using substring function)
    I need to modify this 4 digits to 9 digits.
    This encodeCardNumber is called in executeQuery method. Also, this method is private type.
    Extending standard VO is possible and usually SQLs are modified to add new columns.
    Is it possible to modify/extend the methods of the standard VOImpl classes.
    Rgds
    Vaddi Rakesh

    Hi Kumar,
    Thanks for the reply.
    Correct me if I have got it wrong.
    To extend the private method EncodeCardNumber, I need to copy the standard ExecuteQuery method in the extended VOImpl class and also the EncodeCardNUmber method with modifications.
    I have Copy/Pasted whats in the standard VOImpl and Also what I intend to change in extended VOImpl.
    Standard VOImpl Class:
    public class CreditCardsVOImpl extends OAViewObjectImpl
    public CreditCardsVOImpl()
    public void executeQuery()
    super.executeQuery();
    while(hasNext())
    CreditCardsVORowImpl creditcardsvorowimpl = (CreditCardsVORowImpl)next();
    String s = creditcardsvorowimpl.getCardProgramName() + encodeCardNumber(creditcardsvorowimpl.getCardNumber());
    creditcardsvorowimpl.setDisplayedValue(s);
    if(Boolean.TRUE.equals(isMultPaymentsForCard(creditcardsvorowimpl)))
    creditcardsvorowimpl.setDisplayedValue(creditcardsvorowimpl.getDisplayedValue() + " - " + creditcardsvorowimpl.getPaymentDueFrom());
    private String encodeCardNumber(String s)
    if(s.length() > 4)
    return " ****" + s.substring(s.length() - 4);
    else
    return " ****";
    /// Other Public methods ...........
    Extended Code :
    public class BTCreditCardsVOImpl extends CreditCardsVOImpl
    * This is the default constructor (do not remove)
    public BTCreditCardsVOImpl()
    // COPIED FROM STANDARD VOImpl CLASS
    public void executeQuery()
    super.executeQuery();
    while(hasNext())
    CreditCardsVORowImpl creditcardsvorowimpl = (CreditCardsVORowImpl)next();
    String s = creditcardsvorowimpl.getCardProgramName() + encodeCardNumber(creditcardsvorowimpl.getCardNumber());
    creditcardsvorowimpl.setDisplayedValue(s);
    if(Boolean.TRUE.equals(isMultPaymentsForCard(creditcardsvorowimpl)))
    creditcardsvorowimpl.setDisplayedValue(creditcardsvorowimpl.getDisplayedValue() + " - " + creditcardsvorowimpl.getPaymentDueFrom());
    // MY VERSION OF ENCODE METHOD
    private String encodeCardNumber(String s)
    if(s.length() > 4)
    return " ****" + s.substring(s.length() - 9); // changed from 4 to 9
    else
    return " ****";
    My Query would be, the ExecuteQuery would be calling super.executeQuery.
    Does this refer back to Standard ExecuteQuery and then subsequent EncodeCardNumber.
    Or is it, my concepts are not clear. And extending the Standard methods, would simply replace any call to the methods of the Standard class, with the ones extended in the Extended VOImpl
    Please advise
    Rgds
    Vaddi Rakesh

  • Modifying a Class that implements Serializable

    I have a class LDAPUser
    import java.io.*;
    public class LDAPUser implements java.io.Serializable{
         private java.lang.String name;
         private java.lang.String userID;
         private java.lang.String associateNumber;
    public LDAPUser() {
         super();
    public boolean equals(Object o) {
         if (o == this)
         return true;
         if (!(o instanceof LDAPUser))
         return false;
         return (((LDAPUser)o).getAssociateNumber().equals(this.getAssociateNumber()));
    public java.lang.String getAssociateNumber() {
         if(associateNumber == null){
              return getUserID();
         return associateNumber;
    public java.lang.String getName() {
         return name;
    public java.lang.String getUserID() {
         return userID;
    public void setAssociateNumber(java.lang.String newAssociateNumber) {
         associateNumber = newAssociateNumber;
    public void setName(java.lang.String newName) {
         name = newName;
    public void setUserID(java.lang.String newUserID) {
         userID = newUserID;
    It works fine.
    I needed to add functionality to it. These were the modifications.
    private java.lang.String distinguishedName;
    private boolean validUser;
    public java.lang.String getDistinguishedName() {
         return distinguishedName;
    public boolean isValidUser() {
         return validUser;
    public void setDistinguishedName(java.lang.String newDistinguishedName) {
         distinguishedName = newDistinguishedName;
    public void setValidUser(boolean newValidUser) {
         validUser = newValidUser;
    I am using visual age for java and in the Test environment the changes work fine.
    When I promote the changes to our application server (websphere) the changes are not there. I get a method not found error and though trial and error have identified that the server is not actually using the class from the jar. I have removed any other occurences of the class from the server.
    My question is if I change a Serializable class how do I make those changes take affect (thorough better coding) and for right now, where is this "old instance" of my class coming from and how do I get rid of it.
    Thanks in Advance,
    Jason Grieve

    If the server is running than the class might be already loaded through the class loader, so it wont be load again.
    this unless you use hot deployment, which you have to figure how it is being handled in your srver.
    Doron

  • Modify default Class icon

    When you create a new Class in LabVIEW, you get a default Icon heading that takes up 3/8 of the icon.  I prefer a heading taking up less space (1/4).  Is the icon template available someplace so I can make this a little smaller, rather than having to edit the "base" icon for every class I create?

    No. I think the closest you can do is create a template and select it each time you edit the icon.
    You should go vote for this - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Create-smaller-banner-for-libraries/idi-p/959345
    Try to take over the world!

  • Why it's necessary to restart WLS 5.1 sp9, when I modify a class dependecies from a jsp

     

              Gerard -
              Je n'ai pas exactement compris ton question. Si tu as un JSP qui utilise une classes
              qui se trouve dans WEBLOGICCLASSPATH, puis, on modifie cette classe, il faut redemarrer
              WebLogic parce que - la classe et deja charger dans le JVM, et il n'y a pas de
              moyenne de remplacer une classe deja charger dans un classLoader (ce qui utilise
              WEBLOGICCLASSPATH). Les Servlets et JSPs sont traites differement - ils peuvent
              etre recharge (en faite, leur classLoader est jete, est un nouveau est cree)
              Mike
              

  • Comment modifier le classement d'un film (contrôle parental) ?

    Comment modifier la classification d'un film (-10 ans, -12 ans, etc) sous itunes ?
    J'ai accés aux infomations, mais impossible de les modifier. Existe t il un utilitaire pour cela ?
    Merci

    Adobe PDF Pack can convert PDF files to Word, Excel, etc. and vice versa.  It can also perform character recognition (OCR) during export from a scanned document.
    However, it cannot otherwise modify PDF files; you will need Acrobat for that.
    [topic moved to Acrobat.com Services forum]

  • Illegal modifier for class

    Given the following classes declaration in the same file MyClass1.java
    package mypackage;
    public class MyClass1{
         //Some Valid Code
    protected class MyClass2{
         //Some Valid Code
    Why am I getting a compile time error for MyClass2?

    Can you please elaborate more on what do you mean by top level class? In the above example, my understanding is that, since the source file name is MyClass1.java and the class MyClass1 is declared public, shouldn't that be my top level class?
    Thanks a lot for your quick response.

  • What happens as we use strictfp modifier with class and interface ?

    I just knew that strictfp can't be used with variables?
    I want to know that why we use strictfp with class and interface?

    makpandian wrote:
    i hope i can understand if you explain myself.Okay, let me go ahead and try to explain yourself.
    The concept of a makpandian can be summed up as the following: a simple-minded, java forum-goer who posts questions directly from his SCJP 6 study guide in hopes that forum members will give him a simple answer that he can correlate to a multiple-choice response. By doing this, the makpandian suspects that passing the SCJP 6 exam will become a tangible reality, thus enabling it to obtain a job in the public work sector (given the great significance of this type of certification in the makpandian's presumed country of origin (India, for those of you who aren't following along)).
    So how'd I do? Did I do a good job of explaining yourself?

  • Problem in modifying the class file in the jar file

    Hi,
    We created Support Desk link in the mast head with the help of
    com.sap.portal.epsolman.par
    it is working fine.but when we submit the error message it will a notification message saying that created Successfully.
    But we want to change that notification message to something else.But we found out that we need to change that in the java file .Basically the problem is  we dont know, after changing the java file, how do we compile it and put it back into jar file of that par file and deploy on to the portal
    java file is Solman.java
    points will be awarded for sure
    Bala Duvvuri

    hi,
    go thru this [link|How to deploy PAR File on portal??]
    hope this helps.
    Regards,
    Nikhil

  • Java class access modifiers

    Why java class cannot have private and protected access modifiers?

    class X {
      private class y {}
    }should compile just fine. A top-level private class makes no sense because you wouldn't be able to see it. As for protected, I don't know.

Maybe you are looking for