Search:

Type: Posts; User: ha.minh.nam

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    Thanks Kevin for the links.
  2. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    Thanks Kevin for reminding me about this fundamental stuff.
    Actually everything is passed by value. The value here is memory address of the variable right?

    Please correct me if I am wrong.
    ...
  3. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    Yes, that's fine.

    immutable objects
  4. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    Yes, primitive variables are passed as copies, unlike object references. It is not about wrong or right, it is a bad practice and should be avoided.


    SURE.


    No one prevents you from passing...
  5. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    It does not matter either constructor or normal method. Doing so means you pass an object but not use it (you assign the passing object reference to another object).



    Your class extends Frame...
  6. [SOLVED] Re: Do we need AWT to learn Swing? + One more question

    Don't you believe the author?


    Your code snippet:



    import java.awt.*;
    public class myWindow extends Frame{
    Frame pencere = new Frame();
Results 1 to 6 of 6