Does java have strong names?

Hi,
I am a .net developer also interested in Java. I would like to know if Java provides something similar to Strong names in .net.
Thank you.

I have another question, pls guys dont mind about posting it in the same thread. I did not want to clutter the forum.
If I have two interfaces like this:
Interface A{
void getMethod();
Interface B{
void getMethod();
If I have a class implementing these two interfaces:
Class C implements A,B{
//I will not be able to give implementation for both the methods in java here
But I can do it in .net. I do not understand why java does not provide this or what is the advantage of having it in .net?
I can do it in .net like this:
the two interfaces would be like this:
Public Interface a
Sub getMethod()
End Interface
Public Interface b
Sub getMethod()
End Interface
the class can implements bot these interfaces with the same method signature:
Public Class c
Implements a, b
Public Sub agetMethod() Implements a.getMethod
End Sub
Public Sub bgetMethod() Implements b.getMethod
End Sub
End Class
I can write a class which can invoke the specific methods without ambiguity:
Public Class k
Public Sub New()
Dim atmp As a = New c()
Dim btmp As b = New c()
atmp.getMethod()
btmp.getMethod()
End Sub
End Class
If I want to do it in java, how do I do it? please educate me on this.
Thank you.

Similar Messages

  • Why does Java have such a large footprint?

    I've been curious about this topic for a while, but I haven't ever looked into this to any depth. I also posted this to stackoverflow but haven't gotten any solid responses so far:
    http://stackoverflow.com/questions/1107991/why-does-java-have-such-a-large-footprint
    Java - or at least Sun's Hotspot JVM - has long had a reputation for having a very large memory footprint. What exactly is it about the JVM that gives it this reputation? I'd be interested in a detailed breakdown: how much memory goes to the runtime? (The JIT? The GC/memory management? The classloader?) Anything related to "auxiliary" APIs like JNI/JVMTI? The standard libraries? (Which parts get how much?) Any other major components?
    I realize that this may not be straightforward to answer without a concrete application plus VM configuration, so just to narrow things down at least somewhat: I'm primarily interested in default/typical VM configurations, and in a baseline console "Hello world" app as well as any real-world desktop or server app. (I'm suspecting that a substantial part of the JVM's footprint is largely independent of the app itself, and it is in this part that I'd like to zoom in, ideally.)
    I have a couple of other closely related questions:
    Other similar technology, such as .NET/mono, don't exhibit nearly the same footprint. Why is this the case?
    I've read somewhere on the intarwebs that a large portion of the footprint is due simply to the size of the standard libraries. If this is the case, then why is so much of the standard libraries being loaded up front?
    Are there any efforts (JSRs, whatever) to tame the memory footprint? The closest thing I've come across is a project to reduce the on-disk footprint of the JVM [1] and to modularize the standard library [2].
    I'm sure that the footprint has varied over the past decade or so with every new version of Java. Are there any specific numbers/charts chronicling precisely how the JVM's footprint has changed?
    [1] http://blogs.sun.com/jtc/entry/reduced_footprint_java_se_bringing
    [2] http://blogs.sun.com/theplanetarium/entry/project_jigsaw_modularizing_jdk_7

    yangzhang wrote:
    I've been curious about this topic for a while, but I haven't ever looked into this to any depth. I also posted this to stackoverflow but haven't gotten any solid responses so far:
    http://stackoverflow.com/questions/1107991/why-does-java-have-such-a-large-footprint
    Java - or at least Sun's Hotspot JVM - has long had a reputation for having a very large memory footprint. What exactly is it about the JVM that gives it this reputation? I'd be interested in a detailed breakdown: how much memory goes to the runtime? (The JIT? The GC/memory management? The classloader?) Anything related to "auxiliary" APIs like JNI/JVMTI? The standard libraries? (Which parts get how much?) Any other major components?
    Presumably versus some other VM. I would suppose the fact that much of the VM is written in java has something to do with it.
    I realize that this may not be straightforward to answer without a concrete application plus VM configuration, so just to narrow things down at least somewhat: I'm primarily interested in default/typical VM configurations, and in a baseline console "Hello world" app as well as any real-world desktop or server app. (I'm suspecting that a substantial part of the JVM's footprint is largely independent of the app itself, and it is in this part that I'd like to zoom in, ideally.)
    I have a couple of other closely related questions:
    Other similar technology, such as .NET/mono, don't exhibit nearly the same footprint. Why is this the case?
    Not sure I agree with that. What size do you see with a .Net app that uses 3.0/3.5?
    I've read somewhere on the intarwebs that a large portion of the footprint is due simply to the size of the standard libraries. If this is the case, then why is so much of the standard libraries being loaded up front?
    Good question. There is a feature that allows multiple VMs to use the same memory footprint version of the loaded libraries. That is a new feature and it isn't clear to me if it covers the entire API. I do not know if that is dynamically built.

  • Does Java have APIs for statistical analysis?

    Hi Java Experts
    I want to develop a Java program which can help users to analyse their stock investment. Here I have two questions
    1) How can I wrap my finished Java program as a XXX.exe? So users can install my program by executing it
    2) Does Java have any APIs for statistical analysis?
    Thank you very much for your help!
    ViolaIT

    1) How can I wrap my finished Java program as a
    XXX.exe? So users can install my program by
    executing ithttp://onesearch.sun.com/search/onesearch/index.jsp?qt=java+exe&qp_name=null&subCat=siteforumid%3Ajava54&site=dev&dftab=siteforumid%3Ajava54&chooseCat=javaall&col=developer-forums

  • Does java have picture box?

    I am newbie in building gui with java. just migrate from using vsstudio.
    I see people use matisee to dragndrop things
    but what i want to know now. is
    does java have picturebox? and can i set location of each component like
    x.setLocatioN(x,y) on form?
    ummm, .. is it good to use matisee?
    thks

    Hi. What do your initials stand for, Tom Hanks Kevin Susan?
    You can use a JLabel to show a graphic in Java. Use its setIcon method.
    You can use setBounds to position components, but you must set the layout of the parent component to null using setLayout. However, it is recommended not to do this, as it isn't very flexible. Instead, learn about and use [url java.sun.com/docs/books/tutorial/uiswing/layout/using.html]layout managers.
    I've never used Matisse.

  • HT1379 I am trying to reset NV/RAM PRAM and am instructed to use the option key. I cant find an option key on my keyboard. Does it have another name?

    I am trying to reset NV/RAM PRAM on Apple website and I am instructed to use the options key. There is no options key on my 2008 keyboard. Does it now have another name?

    Step by Step to fix your Mac

  • Does java have any class that wrap byte[]

    my program would send byte[] to remote host;I know byte cant be serializabled;
    so I would a class wrap byte[],I cant write new class,because remote host maybe havent this class,
    I want to kown if java have a class that wrap byte[];

    The iPlanet Application Server 6.5 has a very nasty bug when you're using RMI/IIOP: if you want to reference an EJB in a stand-alone application. you can't use reliably methods that take parameters whose type is an array of primitives (like byte[]). The EJB can be called correctly in a Web application or by another EJB, but you can't use them in stand-alone apps.
    It is a product that is simultaneously a C++ application server and a Java application server, and has lots and lots of native code. It uses a specially modified JRE 1.3 for its own use.
    Sun dumped it (too buggy, too complex, too slow and very oddball) and used the J2EE SDK RI code instead to write the new versions of Sun ONE Application Server and Sun Java System Application Server.

  • Why does Java have so much trouble with deleting files

    So, I've been doing alot more code on the file-level and have been noticing that Java is really terrible at deleting files. This should be rather straightforward, but the delete method can fail in so many ways, it's unbelievable. Even with taking special care to close all streams, it will sometimes just not do it, or even return a "Yes I've deleted it" result and the file is still there! (deleteOnExit() suffers the same affliction)
    This problem is even scuttling the otherwise trusty Ant, which is really annoying. Ever seen this? "BUILD FAILED: Could not delete 'myproject.jar'" So any Ant-driven automated build-and-test process can fail because of this super-avoidable error. (We have to code a pre-build-jar-deletion shell script, which is annoying when jars are added/deleted/renamed for whatever reason.)
    Does anyone know the reason for this? I'm really curious.
    Maybe, in 1.5, they will come out with "File.crushAndDestroyWithMercilessPrejudice()". I'd use it all of the time! :)

    I had the same problem when I was working with JAI. I had about a half million images that I made a viewer for, which would allow our users to do away with microfiche. Project worked great, but the files wouldn't delete off the user box (Win2K). I checked everything and they just would not delete--windows would not acknowlege the resources had been released by Java.
    I finally took a lesson from MS developers and said: "It's not a bug, it's a feature!" I wrote it into the manual that it was a cache feature and would speed-up access to the images, yet delete the old ones (which it did, any images that were not accessed during the session would delete just fine, while any that were accessed would still be there next time for local access rather than hitting the network for them. The cache turned out to be one of the great features of the application.
    On the other hand, I've not had any problems deleting files from Linux.

  • What Net Capabilities Does Java Have?

    I have learned two other programming languages before learning Java and now I have learned a lot of the syntax of Java. I need to know if this is possible:
    Is there a way for me to get an HTML document from the internet from a specified URL on an HTTP server? If this is possible, can I search through it, possibly with FileReader? If Java does have a function that I could use to do this could someone please tell me what it is and what class it's from?
    thanks,
    lateralus

    The URL class will be helpful. It is described here:
    http://java.sun.com/javase/6/docs/api/java/net/URL.html
    URL's openStream() method might be a good place to start. There is an example of
    its use at "The Java Developers Almanac 1.4" here:
    http://www.exampledepot.com/egs/java.net/ReadFromURL.html?l=rel
    And there is lots on Networking in Sun's Tutorial:
    http://java.sun.com/docs/books/tutorial/networking/index.html
    These three locations could well serve as your first port of call with many "Is there a
    way..." type questions.

  • Does Java have a built in XML parser?

    Hi, does the JDK come with a built in XML parser? If so, from what version onwards is this available?
    I'm looking at this article here:
    http://www.devx.com/xml/Article/16921/0/page/3
    So, I presume the answer is yes, Java comes with JAXP. I'm using JDK 1.6, does that come packaged with JAXP?
    Thanks.
    Rupert

    rupertlssmith wrote:
    Hi, does the JDK come with a built in XML parser? If so, from what version onwards is this available?
    I'm looking at this article here:
    http://www.devx.com/xml/Article/16921/0/page/3
    You need to add three jar files--jaxp.jar, crimson.jar, and xalan.jar--to your CLASSPATH.xalan and jaxp have been in the Sun Java SDK since at least 1.4.
    crimson existed in the Sun Java 1.4 SDK apparently replaced by xerces from Sun Java 1.5 SDK.

  • Does Java have a control like CListCtrl in VC++

    I have seen an application developed in VC++ with items displayed in heirarchial manner or listed like tree in a CListCtrl control.
    Can a similar customization be done in Java.
    Regards,
    Arun
    [email protected]

    In Microsoft visual Studio, VC++ applications they
    have a user control
    List Ctrl.CListCtrl is a class specific to MFC not Visual Studio or VC++.
    Is there any simiilar controls in Java.JList.

  • Does Java have asynchronized I/O?

    Hello everyone,
    I am wondering whether Java has asynchronized I/O (whether built-in core Java SDK or 3rd party release), which is similar as select or poll in UNIX. Current read/write will be blocked when underlying stream is not ready. For example, when retrieving data from remote machine, we will be blocked if the remote machine will not response immediately.
    Thanks in advance,
    George

    Thanks kajbj,
    Your reply is very helpful. I have found most ofthem
    are dealing with NIO. IIRC, NIO is for JDK 1.4 or
    later version JDK, but I am using JDK 1.3. I am
    wondering what asynchronized I/O SDK could I use.There are third party libararies for asynch IO that
    works with JDK 1.3, but they all require native code
    so your application won't be platform independent. I
    would upgrade to JDK 1.4 instead of using such
    libraries.
    /KajYour reply is very helpful. I am considering upgrade my application to JDK 1.4. Meanwhile, could you recommend some third party libraries for asynchronized I/O that works with JDK 1.3? I want to compare this solution with JDK 1.4 solution.
    regards,
    George

  • Does java have default exception handler or something

    Hi,
    I am getting a lot of SQLExceptions in my project, and I am fed up with try/catches everywhere in my project. I am doing exactly the same in every catch.
    So I was wondering if there is any way of default error handling, so if noone catches this exception, this will catch it.
    I know it excists in VB.NET.
    thanx guys!
    Bart

    Look at Thread.UncaughtExceptionHandler

  • Does Java have a chart object?

    Hi:
    Thank you for read my message.
    Do you know if Java has an object to create chart or to plot information?
    If your answer is yes, where can I find it?
    Thank you, Regards
    JB

    http://jgraph.sourceforge.net/
    http://www.jfree.org/jfreechart/index.html
    Those are two that come to mind. There are probably lots of others.

  • Does Java have any class for linear algebra/matrix computation

    Hi!
    I am new to Java. Would like to ask whether Java provides any class or package for linear algebra/matrix computation, before I switch to MATLAB or write the code by myself.
    Thank you

    Maybe you can find something here,
    http://math.nist.gov/javanumerics/

  • Does Java have an object model for the actual .java files?

    OK, you know how you can use the Document Object Model (DOM) in JavaScript or PHP to access and modify specific parts of an HTML document? Is there anything similar for .java files? Can I load a .java file into some kind of Java Code Object Model (JCOM?) and then manipulate that code as if it were an object.
    Note: I am not asking how to instantiate and use a regular object as defined by the .java file. I am wondering about modifying the actual .java file itself as an object that represents the actual text of the code in the .java file.

    GrantSR wrote:
    Not the code, per se, but the classes they define... Yessum, most certainly: ASM, among others.
    Also Google [java parser|http://www.google.com.au/search?q=java+parser]... one of them might do what you're after.
    So, one would parse the Java code into XML using one of these many and
    varied parsers, then access that XML via the DOM? Well, I guess a two
    step process is good enough.
    Thanks for your help.
    No wuckers!
    But I don't know if I did much. If you do get something working please post back, and outline your approach.
    Cheers. Keith.

Maybe you are looking for

  • HT204053 I have an Apple ID set up for my daughters I POD / I just purchased an I pod fro myself can I use the same ID for both

    I hava an Apple ID which I set up for my daughter when she received her I Pod, I now have an I pod and want to set it up to purchase music, How do I add this to My Apple ID when I already have an I pod associated with my e-mail address?

  • USB MAC 10.9.1 serial console help

    i boaught a usb to serial cable installed driver got zterm com port USBSERIAL1 but all i get is grabage 9600 8 bit no parity 1 stop bit help. what m i doing wrong? UPDATE: using GoSerial with 115200 8 bit no parity 1 stop bit it worked

  • Oracle 8i Lite login question

    I have installed Oracle 8i Lite on my notebook computer running Windows 98. When I tried to login to a SQl*Plus session (using all of the combinations of default usernames/passwords, I get the error message: "ORA-12203: TNS: Unable to connect to dest

  • ExternalID of navigation model

    Hi, I have default navigation model with various nodes. I am able to navigate to a specific node i.e. node with externalId 'test' by using $wcUrl('test') in a html page using content presenter. I want to access the same node with externalId 'test' in

  • Reg: Posting Period

    Dear Guru's I cant able to close the period 09 2010 in MMPV   Its throws an msg  The specified year 2010 is not the current calendar year                                         Message no. M3489 i will give my details MMRV Current period