Generic question

Hi all

How are you all?

I have a quick question for generics

see these two examples

public static void printList(List<?> list){
     for(Object elem : list){
          System.out.println(elem);
     }
}


and

public static <T extends Object>void printList(List<T> list){
     for(T elem : list){
          System.out.println(elem);
     }
}


they do the same thing I tried them

I know that the first is the non-generic method and the second is the generic method (if I'm not mistaken)

but can someone tell me what is the difference between the two who is the best practice and why?

Thanks to you all

LaVloZ wrote:

Can U tell me which is more secure?

either that they are equivalent.

Tags: Java

Similar Questions

  • EliteOne 800: Generic Question to the restoration of the system

    There are several tools installed on a new PC when I get it out of the box. I.e. the Manager of recovery or other pre-installed tools.

    My understanding is as follows:

    If I have at any point in time, I replace the hard drive with the NEW disk hard empty (no partitions), I should be able to re - install all the software, including the pre-installed tools and special partitions with the supplied DVD supplied with the system.

    Is this correct?

    What I see, is that if I re - install a system in this way (AND Driver install OS installation DVD), it seems that in the end, some tools are missing. How comes?

    Additional question:

    I receive with every HP PC several DVD. In this case, I have a "Windows 8.1 Pro DVD operating system" and a "Driver Recovery DVD, Windows 8.1".»

    If I would create the recovery of the DVD of a system of HP running Windows 8.1, I'd get the exact content of the DVD even?

    I ask this question because so far I was not able to create the DVD of recovery since the two systems that I never started (blue screen and restarting loop). So I could never create the recovery DVD.

    DH

    I received 3 systems 800 EliteOne, oll of them with bluescreen and boot with button loop.

    I completely re-installed all systems with the DVD provided by HP.  Macrium does not help in this situation.

    Although the BIOS settings are absolutely identical, and all drives have been wiped and formatted before you reinstall, I'm done with a single system properly program facility and two systems with lack of recovery partitions. On a system, I was not able to activate the SSD as cache, installed all the latest drivers.

    In any case, let's close this thread. Thanks for your help.

    Dan

  • Toshiba TL968G + questions Skype Talk-7291

    Hello

    Recently, I bought the Talk-7291 to use functionality of Skype.

    The first time I plugged the camera, it seemed that everything worked very well, since I've decided to make my first call. Then the screen turned black and the camera has been disabled (led blue light was turned off).
    The TV does not answer, the only button I could use was the power button.

    Since then, whenever I started Skype app TV turned to black.
    I tried to reset the TV and the result is always the same.

    -J' found a way to use once, and had to set up Skype without the camera and Skype starts when the TV turns on.
    -Turn off the TV and plug in the camera.
    -Turn on the TV. After a minute or two the camera goes on (led lights) and the session is started.
    -I can receive calls but I can not send. I was able to answer one and talk. Now I can answer, but after 3 s the Skype TV breaks down.

    Has anyone else bought the Talk-7291 and tested how Skype works?

    Firmware: I have the latest firmware installed (7.0.28.16.1)

    See you soon,.

    Josep

    Hello

    I have the same problem with a RL938G with FW to. 7.0.28.16.1 and camera TALK-7291.
    Skype does not even TV set is blocked after the TV is black.

    It seems that it is a generic question. We will wait for the manufacturer to solve this problem with a FW update

    Concerning

  • change the driver existing (newbie question)?

    Hello

    We try to change an existing driver, but we are fairly new to Labview. We have a few generic questions, but I'll give you some specific info on what we are trying to do as well.

    We downloaded a driver (for NDI Polaris motion tracker) of the site NOR and want to change that a little bit.

    The zip file contains a subdirectory ndipolaris with 2 files .llb and some .mnu files.

    Our first problem is that if we just open the .llb files, there are a lot of vi in there (including examples of work), but there is no project files, or class definitions. What seems to prevent us from creating a new class that derives from a class that is apparently set in the driver (but which we don't seem to have the definition). Maybe a driver can be distributed without these definitions such as you can use it only, but not change?

    Our second problem is that if we use the method of 'create the new existing driver driver', the Polaris NDI does not appear in the list of existing drivers. (It has copied the directory ndipolaris to the labview/instr.lib directory and restarted labview). (This is probably not a major problem that we could change just the existing driver instead).

    Note that the existing driver works well. We just add a timestamp in the data. The existing driver apparently has a class (called "Info Tool", which is a cluster of a few different types of data) for all these info than the Polaris returns, so we thought to change this class or to derive a new class with added timestamp.

    Sorry if this is a trivial question. Thanks for the pointers.

    Kris

    Hi Dennis

    Thanks to your suggestions, we settled it. We were baffled by the fact that you cannot add controls for "schema". Here's what we did:

    The data group was built using the "bundle by name" function, which takes a bunch of 'model' as input. It is this model that we had to change. However, as the model was a 'constant', it does not appear on the front panel and so we could not add any controls to it. For example, when you view the block diagram, we right-click on the clustering model, converted to a control, and then passed to the façade, created a new control (string) on the front panel and place in the control corresponding to the cluster model. Then we moved to the block diagram and convert our cluster model to a 'constant '.

    Not simple I think, but once you know (get help from you and read a bit of the operating instructions...), it's ok.

    Thanks again

    Kris

  • Basic question about Flashback Database


    Hello

    I have a very generic question on the use of Flashback Database.

    On my systems tests, for use in testing and simulation performance, I want to create a guaranteed restore point so I can test impact on lot when releases of code changes are made before production deployment.  My confusion is in what regards newspapers of restoration, which are summarized in the following questions:

    1. is it possible to change the redo log files, when a guaranteed restore point has been configured?

    2. If so, is the Flashback to restore, point also change the size of the logs again?

    I found nothing in the documentation on this subject... Where my question...

    Appreciate your time taken to answer these questions...

    Kind regards.

    Hello

    donneskold wrote:

    Hello

    I have a very generic question on the use of Flashback Database.

    On my systems tests, for use in testing and simulation performance, I want to create a guaranteed restore point so I can test impact on lot when releases of code changes are made before production deployment.  My confusion is in what regards newspapers of restoration, which are summarized in the following questions:

    1. is it possible to change the redo log files, when a guaranteed restore point has been configured?

    (1) Yes it is possible.

    2. If so, is the Flashback to restore, point also change the size of the logs again?

    (2) it will not change the size of the redo log file.  Cannot resize a redo log file...

    I found nothing in the documentation on this subject... Where my question...

    Appreciate your time taken to answer these questions...

    Kind regards.

    Thank you

  • is there a way to export/use embedded Instant Live Photos?

    I captured Live Photos with iPhone6S and imported successfully into 1.2 on Mac OS X 11.11.1 Photos

    Generic question: How can I work on some shots on some Live photos?

    Specifications

    • How can I use 1.2 to select/rework Photos photos shipped?
    • What Mac OS X Apps can import these Live pictures and can work on some on-board snaps?
    • can I share some pictures Live (how to select them?) with people who work on Windows or Android? that either the app can use?

    Thank you!

    I suggest that you download and apply update of OS X El Capitan 10.11.2 Combo because it adds some new features to both the system and Photos (1.3), that is, it improves the iCloud, sharing photos of Live Photos and fixes some problems with both.

  • How to generate analog signals?

    Hi all

    I'm trying to generate analog signals to simulate the position of the valve. I also want to simulate the position of the valve 0 - 5V (analog signal).  I've implemented the numeric position of the valve by using the toggle switches, but I want to implement analog signals.

    You can help.

    Thank you

    You can just use a random number generator.

    Since you have no generator hardware signals of NOR, I'm not sure why you are posting to this Board. Generic questions of LabVIEW. Post to this Board.

  • USB-6525 NiDaqmx how to detect where the device interrupts the communication

    This could be considered a more generic question for NiDaqmx, but I write a custom control for internal use with the USB-6525 and possibly other devices of i/o using c#.  I use DigitalChangeDetectionEvent to warn me when an entry has changed and everything seems to work very well.  In an effort to be complete, I decided to unplug the USB cable and see the result and found that no error has been detected until I tried a writing output.  This is not acceptable because under normal conditions abstraction entry begins a process that will change output - given that admission never happens, the system is basically hung.

    I tried many things and have spent more time on what I want to admit so I would like to hear suggestions on how to address this problem.  Here are my attempts that I am not satisfied:

    (1) periodically switch (pulse) output that allows to detect the problem, but I may not be an available exit, so this isn't a good situation.

    (2) periodically trying to read the input byte with the same entry workflow, this does not work because I believe that the other player is still active with the DigitalChangeDetectionEvent.

    (3) attempted to take the message of Windows to change hardware, but seems too complex.

    (4) I read on the guard dog, but not sure that it is available on the box USB-6525.  So before I start with this I'd hear rather suggestions of others with more experience.

    Any suggestions please?

    THX, Ed

    Hi IntegroEd,

    Those are all very innovative way to potentially address the problem, and I'm sorry you haven't seen success with them.  Fortunately, the typical way to capture a break between a device of data acquisition and monitoring system is indeed a timer, and the 6525 has the innate ability to use the feature, as seen on page 5 of the user manual.  I suggest you go that route, if another user does not post a peripheral solution specific to your case.  This is a documentation on the implementation of the monitoring-

    http://www.NI.com/product-documentation/14616/en/

  • Call MATLAB MathScript SOAP

    Hello

    I have a generic question about whether it is possible to call functions that belong to non-standard MATLAB of MathScript box. In particular, I have the interface for communication with a web server using the Toolbox of Matlab WSDL and I have a pretty "as what", or with minimal changes, in a fellow engineer Labview module so that the instrument can send data to our centralized, system that uses SOAP as the interface.

    I prefer not to use if possible native SOAP of Labview modules.

    Thank you

    Fernando.

    You actually talk to the node in Matlab? MathScript is version or a language similar to Matlab. There is a MathScript node and a node of Matlab. The Matlab node called Matlab code using ActiveX server of Matlab. As such, it requires that you have Matlab installed on the computer. While MathScript is similar to Matlab, and Matlab code can be run "as-is" in the MathScript node, there are many differences (particularly with certain functions provided). The differences would be in the documentation.  The MathScript node does not call for Matlab code. However, you can call a shared library MathScript. You must compile your Matlab code in a shared library using the Matlab compiler. The target machine would need to have the execution of Matlab engine.

  • LabVIEW affects the system time?

    It is a generic question that our network administrator does not know. We have recently upgraded our network and included a network clock to synchronize the clocks. All the other computers are doing well with that but for some reason any 4 computers with Labview on it (and only these 4 computers) were not in sync with the time network. Is there a reason or medium that Labview could have an impact on the time computer system is on or it is probably a network problem?

    I can't think of a way that LabVIEW could have an impact on the time synchronization in a domain. I've never seen this issue at work here, and I have our domain server act as a time reference.

    LabVIEW installation installs a service "National Instrument time synchronization. It is possible that may be the cause of the problem, then you can try to disable it and see what happens. On my system, that the service is set to "Automatic", but it is not started.

  • Why MS never decided that the default folder options / "Hide extensions of known file types" should be active?

    original title: a Question about the names of file/folder options

    I have a generic question that apply for all recent versions of Windows.

    Why MS never decided that the default folder options / "hide known file extensions.

    types of files"should be active?

    If file extensions invisible brings no end of confusion to anyone trying to resolve anything.

    The first thing I advise in various forums troubleshooting

    must * allow * file extensions.  That is so my question - why MS never chosen

    Let them invisible by default?  It seems a strange decision - and cause no end of

    confusion.

    Because there are a few users who would be accidentally when trying to rename a file change or remove the extension and in doing so the file would not open.  If this post answers your question, click mark as answer .

  • If I do a factory restore is he inviting me to make recovery disks

    I recently asked a question here than in other comments, someone made me wonder why I didn't create recovery discs if case the HD did not. I do not remember that something done to make them and I thought that's what the D: / (recovery drive) was for. I do not, and now I understand, what good the recovery partition remiss of the HD. But a user of this forum says I should have done recovery disk, as I said, if the HD has failed. I don't know why if it is so important is not spatterred on the whole screen, MAKING YOUR RECOVERY DISCS NOW. It does not seem to make a big deal of it. She also had a pc once who did not invite you to make records, although most do as a normal procedure, said. However these discs are not available online. Here's my question, and I don't think you need to know the DNA of my particular computer. It's a pretty generic question of HP. But I will mention that I have a new Desktop 23 HP Pavilion running Win8. The recovery partition is on D: /.

    If I restored the full operating system with the recovery partition, would I invited once more to make the records? Then I would have them. I do so little with disks. I guess it should make records of data CD that can write and rewrite?

    But the new big question, if I do a restore using F11 it would invite, make me the discs?

    Thanks, I appreciate the time you spent reading this.  Jack ":-D.

    I ALWAYS KUDO AND MARKED RESOLVED. It is THE RIGHT THING to DO... doncha know. «  :-D
    Find thumbs upward, then click on to a KUDO
    Look to the right and see the OPTIONS to mark ACCEPT as a SOLUTION. Thank you!

    Hello

    Yes, if you use the f11 option to do a "Factory Reset", you will once more invited to create your recovery media - this can be created either several rewritable DVD (usually around 4 DVD + R discs) or on a USB Flash drive if you prefer not to use discs.

    More details about the two options of recovery media can be found in the HP document on the following link.

    Create recovery media - Windows 8.

    Kind regards

    DP - K

  • Applications SDK Jabber will work with the Business Edition 3000?

    I am aware of the Cisco Jabber SDK, and I do not know that Cisco Jabber SDK applications work with CallManager full product. Jabber SDK applications are compatible with the current version of BE3000? Are there plans to support Jabber SDK with the Business Edition 3000 applications?

    We have not validated SDK Jabber with Business Edition 3000.

    Just to be sure, is there a any particular application you are looking for, or was it a generic question?

    Thank you

  • "No video in" error when connecting two SX20! Help, please

    Hello everyone

    We have problems to connect our two SX20 telepresence equipment, which has a bridge. When you call one SX20 on the other, once the connection is established, the message "no video in" appears on the screen. How to solve this problem?

    Also, we want to call the SX20 of jabber accounts video from computers and vice versa. How can do us?

    Currently, we only connect the two SX20.

    This is the deployment, we want to have.

    Thanks in advance

    In most cases no video is caused by firewalls and other devices with a logic of layer-3.

    You also had a different thread open material a generic question of deployment.

    Maybe you have a cisco partner or an external consultant who can help you with that.

    As you also said mobile devices, if a 3rd party there is always a chance that

    devices do not understand well the other on road signs or the face of the media.

    But at least two sx20 should be able wiith all problems to send and receive video

    If deployed stand alone or with a call like vcs or cucm control.

    Which brings back once again, check the network ;-)

    Please remember useful frequency responses and identify useful or correct answers.

  • How to solve an error internal

    Apex 5.0.

    Page 301 is an interactive report based on a join of multiple tables stored as a point of view.

    The link attribute called Page 302, from 3 ID values for the elements of page P302.

    Page 302 is a form of single-row using one of the 3 ID values as a primary key in the source table.

    This is accomplished by a generated, pre-rendered, after the header, Line of SSN_LINKprocess.

    Display only the values of the form are obtained by a second process after the header of pre-rendering,.

    This is a SQL query made by hand using two other ID values as a key compound in a table

    another database using a database link. (The 2nd data base is local, but on another device of DB).

    The call to the Page 302 works gently until we begin to use the filter on the interactive report.

    After filtering the report to a more specific list of people, the first call to the Page 302 will fail with an internal error.

    Back in the browser (Chrome) and retry the link works perfectly.

    Other links in the filtered list even work perfectly.

    But when the filter is removed, the first attempt to make a link to the Page 302 fails with the same internal error.

    Then, back in the browser and retry the link works perfectly.

    What toggles interactive report filter?

    Here's the technical info internal error, which I do not know how to interpret it:

    Internal error

    Contact your administrator for the application.

    http://cobra1:8081/i/htmldb/builder/rollup_minus_dgray.gifTechnical information (only visible to developers)
    • is_internal_error: true
    • apex_error_code: APEX. ERROR. INTERNAL
    • Component.type: APEX_APPLICATION_PAGE_REGIONS
    • Component.ID: 2554504249580925
    • error_backtrace: - stack of PL/SQL calls.
    • the line object
    • serial number of handle
    • package body 641 0xd3b3b4e0 APEX_050000.WWV_FLOW_ERROR
    • package body 709 0xd3b3b4e0 APEX_050000.WWV_FLOW_ERROR
    • body of 0xd3b3b4e0 1013 package APEX_050000.WWV_FLOW_ERROR
    • body of 0xd3b3b4e0 1106 package APEX_050000.WWV_FLOW_ERROR
    • 0xc0488c18 body 1749 package APEX_050000.WWV_FLOW_PLUGIN
    • package body 2622 0xc0488c18 APEX_050000.WWV_FLOW_PLUGIN
    • 0xd3a800f0 body 4535 package APEX_050000.WWV_FLOW
    • 0xc093e170 173 APEX_050000.F procedure
    • 0xcc2b4fc0 30 anonymous block

    Continuing to probe without a lot of guidance, the culprit was discovered. To simplify the generic question how to go about debugging and maybe understand package WWV_FLOW obscured, calls I left a piece of the change in the URL. When the checksum (& cs) change, there is also a PLUGIN B2C8 =... argument (64 alphanumeric characters) in the f? parameter p! It is in the position that is delimited by colons for the value of the REQUEST in the call to the page. This is the interactive report acts differently and tries to provide a useless APPLICATION to me. So my pages may not rely on the default substitution parameter and I need to redevelop a method by which the sequence of page 301-302 knows where it comes from. (Sometimes the breadcrumb will be pages 1-301-302 and other times 501-301-302, and there are 2 components of bread crumbs different pages 301 and 302).

    So in this case, the internal error was not disclosed as a bad value of the APPLICATION, but the problem has been identified by searches on parameters and arguments to the/f? p URL. As Microsoft said, "an error occurred."

Maybe you are looking for