Page 28 of 34 FirstFirst ... 1825262728293031 ... LastLast
Results 271 to 280 of 335
  1. #271

    Default Re: Java Programming


    oh ok.. thanks. nag-libog lang ko gud.

  2. #272

    Default Re: Java Programming

    Quote Originally Posted by ares623
    oh ok.. thanks. nag-libog lang ko gud.
    Happy Java Programming... BTW essential raba na nga part sa OOP. Master it!.

  3. #273

    Default Re: Java Programming

    ^^^ OMG it's my bro's account! Gamit ko sa iyang PC yesterday. Wala ko'y idea nga iyang account akong nagamit.

    Anyway that is me replying to ares623.

  4. #274

    Default Re: Java Programming

    hehe. lagi, practice jud ko maayo ani. maka-lingaw pud bya..
    post2x lang nya ko diri kung naa ko questions. thanks cen.

  5. #275

    Default Re: Java Programming

    Quote Originally Posted by ares623
    hehe. lagi, practice jud ko maayo ani. maka-lingaw pud bya..
    post2x lang nya ko diri kung naa ko questions. thanks cen.
    Ur welcome bai. Lipay ko daghan2x nako mga kaila nga java programmers diri cebu.
    Mostly mga kaila og batch nako nga mga java programmers wala na diri sa cebu.


    Anyway arrays in java are also a reference.

    Ex.

    Code:
    int a[] = new int[10];
    a is a reference to an array of 10 integer.

  6. #276

    Default Re: Java Programming

    ^so mao ra gihapon na? if i pass a to a method, it'll change it's value?
    maayo bah mag-sige og gamit og pass-by-reference sa java?

    dili pa man ko Java programmer jud bai. hehe. IT student ko nya Java man mi ron, na-ganahan man ko mao ako ni tun-an jud. hehe.

  7. #277

    Default Re: Java Programming

    Quote Originally Posted by ares623
    ^so mao ra gihapon na? if i pass a to a method, it'll change it's value?
    maayo bah mag-sige og gamit og pass-by-reference sa java?

    dili pa man ko Java programmer jud bai. hehe. IT student ko nya Java man mi ron, na-ganahan man ko mao ako ni tun-an jud. hehe.
    Yup. Same ra. It will change the the values of a. As long as dili ka mag-instantiate (meaning mag-allocate og new array).

    Ang title nga "Java Programmer" applied na sa ni-program og java.


  8. #278

    Default Re: Java Programming

    Walay pass by reference sa java.....its always pass by value.....

    To elaborate....during runtime, passing a primitive data type to a method such as char, int, long, float, double, etc the virtual machine will allocate a new memory location for that data type and will place the value being passed on that memory location. That goes the same with object data types like String, Integer, Double, Float. But you should take note, that in the case of the object types, the value that is actually pass to the method is the memory location of the object on the memory space called the heap and not the object itself.

    Quote Originally Posted by ares623
    ^so mao ra gihapon na? if i pass a to a method, it'll change it's value?
    maayo bah mag-sige og gamit og pass-by-reference sa java?

    dili pa man ko Java programmer jud bai. hehe. IT student ko nya Java man mi ron, na-ganahan man ko mao ako ni tun-an jud. hehe.

  9. #279

    Default Re: Java Programming

    as far as i remember, only objects are passed as reference. primitive ones are not. primitives are loaded in the stack and not in the heap memory.


  10. #280

    Default Re: Java Programming

    sakto si bcasabee about sa parameter passing sa java..

  11.    Advertisement

Page 28 of 34 FirstFirst ... 1825262728293031 ... LastLast

Similar Threads

 
  1. JAVA PROGRAMMING *****
    By bardnekom in forum Programming
    Replies: 20
    Last Post: 04-18-2013, 12:51 PM
  2. MOVED: JAVA PROGRAMMING *****
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 03-23-2008, 02:43 AM
  3. Java programming help pls...
    By mr_gwen in forum Programming
    Replies: 6
    Last Post: 11-03-2006, 12:30 AM
  4. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM
  5. MOVED: Java Programming
    By BadDudes in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-28-2006, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top