Why do Java teachers set problems requiring an Applet solution?

Applets are very hard to debug, they have a slow development cycle, Web caches cause problems and the security restrictions limit what can be achieved.

My guess is because there's a fear of the command
line. I'll bet those same teachers tend to make
their students use IDEs as well.Part of the problem is that most courses are too short to get into some of these things. There is such a spectrim of things to try and teach to people in such a short amount of time. Personally I would actually prefer to see the first course be a logic course complete with flow charts. The language is much easier to pick up than the algorithms, and I also suspect it would be easier to pick up a language when they realize how linear computers really are.
>
Or maybe they think an applet will feel more "real"
to the students because it's contained in a browser,
which is an application they recognize.

Similar Messages

  • Java.util.set: problem with duplicate keys

    Hello, everybody,
    i have implemented a custom class C with its own equals()-method. I have two instances I1 and I2 of C with
    I1.equals(I2) = true
    if I add I1 and I2 to a set
    Set S = new HashSet();
    S.add(I1);
    S.add(I2);
    there are two elements I1 and I2 in the set. How is this possible?

    You must override the method hashCode() of your class C to be consistent with the comparison by equals() method.
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()

  • Why that database Character set is required

    character set is optional keyword while we create database
    manually.
    even If I didn't give character set it has taken itself automatically. why this is used for?
    if we change the character using commands what will be the response.
    let me.. know pls..
    thank u

    Hi,
    From Oracle documentation :
    Oracle's National Language Support (NLS) architecture allows you to store, process, and retrieve data in native languages. It ensures that database utilities and error messages, sort order, date, time, monetary, numeric, and calendar conventions automatically adapt to the native language and locale.
    In some cases, you may wish to change the existing database character set. For instance, you may find that the number of languages that need to be supported in your database have increased. In most cases, you will need to do a full export/import to properly convert all data to the new character set. However, if, and only if, the new character set is a strict superset of the current character set, it is possible to use the ALTER DATABASE CHARACTER SET statement to expedite the change in the database character set.
    The target character set is a strict superset if and only if each and every codepoint in the source character set is available in the target character set, with the same corresponding codepoint value.
    Paolo

  • Why is java.util.TreeSet not seen in applet under IE5.5?

    Hi,
    I developed an applet to read a serialized file and tested on JBuilder; it worked fine. However, when I tested on IE5.5, an error message displayed: "ClassNotFoundException: class java.util.TreeSet is not found".
    I used TreeSet to store data.
    Anyone has any ideas of how to fix this?
    Thanks,
    Tom

    This is what I did:
    import java.awt.*;
    import java.applet.*;
    public class BookmarkApplet extends Applet {
       public void init() {
              //String fileName = this.getParameter("gx26187") + ".ser";
              String fileName = "gx26187" + ".ser";
              Bookmark bookmark = new Bookmark(fileName);
              LinkHolder linkHolder = new LinkHolder();
              for(int i = 0; i < 10; i++) {
                   linkHolder.add(new Link("url"+i, "link"+i));
              if(bookmark.save(linkHolder)) {
                   linkHolder = bookmark.retrieve();
                   Link[] retreivedLinks = linkHolder.getLinks();
                   if(retreivedLinks != null && retreivedLinks.length > 0) {
                        Link [] trimmedLinks = new Link[linkHolder.getSize()];
                        System.arraycopy(retreivedLinks, 0, trimmedLinks, 0, trimmedLinks.length);
                        for(int i = 0; i < trimmedLinks.length; i++) {
                             add(new Button(trimmedLinks.getDescription()));
    LinkHolder is a wrapper class in which I used Link[] to store objects.
    Link is a class that stores 2 strings: links and description.
    I tested this on JBuilder ==> worked fine.
    I tested on IE ==> applet is running but nothing shown up.
    Thanks if any ideas.
    Tom
    Yeah I do.
    If its anything like my problems you will find Treeset
    is from JDK 1.2+
    IE's virtual machine runs using the == of jdk 1.1
    This means with out using plugins you HAVE to use
    features of 1.1 Im sure you could use another
    datastructure instead.
    Hope this helps.
    U can extract the Treeset files from rt.jar but im
    still unable to determine if thats legal

  • Suddenly my 4 hour setting for requiring password is being ignored. Why?

    My display on my MacBook Pro sleeps after 10 minutes. But I have had it set do I don't have keep re-entering the password each time. And I also have it set to never sleep when the lid is open.
    My Security & Privacy settings are set to require a password 4 hours after sleep or screen saver begins.
    But over the past week every time the display sleeps I have to enter my password again to log back in. Why?
    Thanks,
    Doug

    That's something I never would have figured out on my own, that parent paths are a web server setting. The issue does only apply to the ASP includes, not any of the CSS files. I will have to call the web host to see how the server is actually configured. I will also do some testing just out of curiosity if these automatically inserted includes - even the one to the Connections folder are goverened by the site setting where you choose to use root or document relative links.
    I've always set my sites to document relative - but is one way better than the other or is it just a preference?
    The CC Desktop app is a weird duck. It took some doing to even get the Filters and Versions menu to display - but I'm now downloading DW CS6. I wasn't sure if this list was dependent on what I had had previously installed or not. The menu also didn't seem to display until after I checked Keep CC Manager up to date in preferences - but this could be just that I didn't see the menu before - it showed up to the left of the button area, and my eyesight is very narrow so I could have just not seen it.
    Thank you much - very much.
    Sorry, I wanted to mark both posts and correct answers but I guess the forum doesn't allow that or I can't find where to do it.

  • Oracle 8i us7ascii character set problem - help required urgent.

    Hi frnds,
    I have a oracle 8i database server installed on sun solaris os. The database character set is us7ascii. In one of the tables TIFF images are stored in a long column. I m trying to fetch these images using oracle 9i client and visual basic(oracle ODBC drivers). But i m unable to do so. I can not fetch special characters.
    Is it because of the character set problem? but when i run my code on the server itself, i m able to fetch the images. I tried to fetch the images using oracle 8 i client on windows XP machine but could not do so. Are there any special settings that i have to do on the client side?

    Indeed, it's an ODBC issue. Read this statement from Oracle:
    From ODBC 8.1.7.2.0 drivers onwards it's NOT possible any more to
    "disable" Characterset conversion by specifying for the NLS_LANG
    the same characterset as the database characterset. There is now
    ALWAYS a check to see if a codepoint is valid for that characterset.
    Typically you will encounter problems if you upgrade an environment
    that has NO NLS_LANG set on the client (or US7ASCII) and the database
    was also US7ASCII. This incorrect setup allowed you to store characters
    like èçàé in an US7ASCII database, with the new 8i drivers this is not possible
    any more.
    Basic problem is the 'wrong' characterset US7ASCII in the database. As long as no characterset conversion happens (that's the case on the unix server), special characters are no problem.
    Werner

  • ADF Faces af:table support java.util.Set

    I was using a java.util.Set in my model classes, as implementation of the Collection interface. And wanted to show the Set using a <af:table> after a while I discoverded that the documentation did not mention support of java.util.Set, only List.
    Now I have to convert my collection to List in the backing beans of my view.
    Is there a better approch than converting every Set in the view using
    new Arraylist(set)?
    And what is the reason of the missing Set support (or General Colelction support)?
    Thank you

    Deepak, I don't think you know what you're writing about.
    No, we do not support java.util.Set in <af:table>. For that matter, neither does <h:dataTable>.
    The "why" of it is that we require indexed access into the table for operations like "Display rows 526-550". java.util.Set does not offer indexed access.
    By the way, one corollary - do not use java.util.LinkedList with tables (ADF Faces or the JSF data table). If the list is small, then it won't be a problem, but with a large list, you'll get brutal performance.

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Although I turned off WiFi, set as 'require admin password to turn on and off wifi, when I turn on my MacBook Pro, retina latest model, just got for a month, it turns on wifi automatically, is this a back door or virus or security hole? Thank you

    I have my all networks at 'Off' status in the system panel, never use Bluetooth either, also in the top status bar, and set as 'require admin password to turn on and off WiFi', but when I turn on my MacBookPro 15" retina newest model only one month old, it goes on to WiFi automatically by itself.
    Is this a back door? Security hole?
    The other day, I was taking a break for five minutes, when I came back, the Microsoft outlook is open for setting up an account, I never use outlook, it is there only because it comes with the office package. Also, iTunes was playing music, I don't use iTunes when I'm working. Both were not on before I left for the break.
    What is the problem?

    I have my all networks at 'Off' status in the system panel, never use Bluetooth either, also in the top status bar, and set as 'require admin password to turn on and off WiFi', but when I turn on my MacBookPro 15" retina newest model only one month old, it goes on to WiFi automatically by itself.
    Is this a back door? Security hole?
    The other day, I was taking a break for five minutes, when I came back, the Microsoft outlook is open for setting up an account, I never use outlook, it is there only because it comes with the office package. Also, iTunes was playing music, I don't use iTunes when I'm working. Both were not on before I left for the break.
    What is the problem?

  • JDeveloper IDE simple setting problem

    Hi,
    Recently we switched to JDeveloper from Visual Cafe .I have a simple setting problem.How can I set the options so that IDE gives, the core java classes and packages,and our application classes and packeges, prompts in imports as well as in code.Where to set the options.
    eg: when I write
    import java. it should prompt all the pakages.
    Thanks in advance.
    -Gopal
    null

    I am not sure I understand what you are requesting, but ...
    You can configure JDeveloper projects to include various libraries by default.
    This is done by selecting menu Tools | Default Project Properties.../ Libraries tab.
    You should define a library for your classes.
    You can import any of the packages / classes from all the libraries which your project includes.
    It would be incorrect for a tool to automatically add a bunch of import lines at the top of every file because each file should import what it needs and just as importantly, not import what it does not need depending on the component type (e.g. a servlet should not include javax.swing.* ).
    An easy way to import elements into JDeveloper is to type in something like:
    import java.
    // and then type in Ctrl Space
    and this launches the package browser, you can select packages or classes to import.
    You can also do this at the variable declaratiton point such as typing in:
    foo() {
    Frame x
    // Press Control Alt Space
    and this will correctly change the type (Frame) to the type you select in the package browser and add the import statement.
    -John
    null

  • Unicode String in JFrame's Title Bar / why is java a non-Unicode pgm in XP?

    My big question:
    Why is Java detected as a non-Unicode program by Windows XP?
    I need to do the following before I can write Japanese characters on the JFrame's title bar on Window XP:
    From the Control Panel -> Regional Settings and Languages -> Set the Language for non-Unicode Program to Japanese
    Thanks in advance,
    Noel

    Hi Noel,
    I'm only guessing here, but I suspect this is still the case...
    Under JDK1.3, the title bar produced by a JFrame is provided by the Windows OS, rather than Java itself. You'll find that trying to display foreign characters in a JFrame's title bar on an English Windows system nigh on impossible (you're left with everyone's favourite little rectangles instead). AFAIK, Sun were looking to change this in the future, but I've no idea if they've got there yet.
    Windows XP likely refers to Java as a non-Unicode program because it's looking at the main frame. Because the frame is produced by Windows itself (which last I checked was about as Unicode-compliant as my car is), it holds a different encoding to anything else within Java.
    At least that's my stab in the dark. ;-)
    Ta,
    Martin Hughes

  • Why are Java files listed as needing repair in Disk Utility?

    Why are Java files always listed as needing repair in Disk Utility?

    FrenchToast wrote:
    Baltwo, bull's eye, as always!
    X423424X's question is pertinent too: you usually need to repair permissions after some major upgrade or update, not on a regular basis. Is there a particular reason why you'd often try to repair permissions? Here's more on the subject.
    Repairing permissions after an update or upgrade is harmless, but I would question the need to do it even there. The Apple update itself should set the correct Permissions. I still do this, really as a hangover from Tiger days -- not certain it was really ever needed there either -- and because it's a habit that's hard to kick, but it's never found anything to repair...but for one buggy exception, which was the 10.5.8 Combo update. Running it once and then repairing Permissions created a real error. It was discovered the Combo needed to be run twice back to back and then Permissions repair. In fact, one would have been better off not running Permissions for that update to begin with. There it wasn't harnless.
    https://discussions.apple.com/message/9968141#9968141
    BTW, even Flash updates, which always used to set incorrect Permissions, are coming in clean these days.
    Exercises in Futility: Permissions Repair

  • Java screen refresh problems

    I've recently noticed problems running Java applications under 10.4.8, with the latest Java DST updates - Java version is reported as:
    java version "1.5.0_07"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
    Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
    I've seen problems running CLC Free Workbench (http://www.clcbio.com/free/) and Cytoscape (http://www.cytoscape.org/). When I launch the applications, the application window is not drawn correctly. Buttons and tabs are not drawn properly (edges misaligned or missing); some window elements fail entirely to display; menu labels may not be drawn, although clicking where the menu should be will drop down the menu. When I resize the window, redraw will typically fail entirely, although I can in some cases get elements to redraw by mousing over them. Basically, the applications are unusable.
    When I launch Java Preferences or Java cache viewer, those windows also fail to draw, and I'm left looking at a blank rectangle.
    A colleague running the same OS an Java versions has no problems on his Macbook - the applications display correctly. I'm running on a dual 1GHz PowerMac G4 (MDD).
    Any suggestions as to how I can get my Java to draw to the screen?
    Thanks,
    Chris
    Powermac G4 MDD, Dual 1GHz   Mac OS X (10.4.8)  

    Following up on my own question - I took some advice I read in another thread, and created a new test account to see if the problem is specific to my account. Apparently it is as both problem applications display just fine when logged into the new account.
    So, the question becomes why is my account having problems displaying Java apps? What can I flush/reset/delete to make things display properly again?
    Powermac G4 MDD, Dual 1GHz Mac OS X (10.4.8)

  • Puzzled by the redefinition of the methods in java.util.Set

    Hi all,
    I don't understand why those methods in java.util.Set redefined since their counterparts have alrealdy been defined in java.util.Collection and java.util.Set extends java.util.Collection. I agree to redefine boolean add(Object o) because its contract has been modified, but what about the rest like
    size() and iterator() ?
    Thanks.

    Hi all,
    I don't understand why those methods in
    in java.util.Set redefined since their counterparts
    have alrealdy been defined in java.util.Collection
    and java.util.Set extends java.util.Collection. I
    agree to redefine boolean add(Object o) because its
    contract has been modified, but what about the rest
    like
    size() and iterator() ?Completeness's sake?
    ~Cheers

  • Why learn Java now?

    I'm new to Java programming and have developed some small demo classes.
    I have exp with other Visual languages and I feel like I'm taking a step back in time writing code in Notepad and compiling and running from dos etc.
    I have several classes and lots of code lines to do a simple thing in swing like create a frame and a simple menu panel.
    I thought Java required less code but so far it requires 3 times an much as other languages!
    What visual tools or IDE�s exist for Java development other than Sun ONE Studio?
    Why learn java now? The number of jobs posted online seams to be higher for Java that any other language out there like vb.net, C++ etc.
    Any Comments of the Future of Java Jobs?
    Running Java:
    My apps run slow on XP, 384M ram.
    Do production Java applications suffer from slow execution of the JVM layer?

    Java code is easier to understand and more stable than "faster" languages. There is more flexibility and extensibility than in other languages, and the error-processing system is quite advanced. There are also very powerful tools you can use out-of-the-box, like JOptionPane:
    import javax.swing.*;
    public class Foo
        public static void main(String[] args)
            String pass = JOptionPane.showInputDialog(null, "Please enter your password");
            System.out.println("Password="+pass);
    Also see javax.swing.JColorChooser.
    -Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for