+ 1

¿Que significa?//What does it mean?

¿Que significa la salida de este código java?//What does the output of this Java code mean? . https://code.sololearn.com/cyJKyEqGVO16/?ref=app . Y porque funciona la salida de este otro código en C.//And why does the output of this other code in C? . https://code.sololearn.com/c3C27Apy81ha/?ref=app

22nd Oct 2020, 12:45 AM
Daniel Briceño
Daniel Briceño - avatar
25 Réponses
+ 5
Whats significant in spanish.
23rd Oct 2020, 11:25 PM
Mark
+ 4
Just for fun.
26th Oct 2020, 12:14 PM
Mark
+ 1
Thank you and good evening I was also thinking of turning everything off
22nd Oct 2020, 4:43 AM
Daniel Briceño
Daniel Briceño - avatar
0
Did you know about Oriented Object? public class Person { String name; int age; Person(String na) //constructor { this.name = na; } } Person people = new Person("Daniel"); So, new Person() is a object and "people" is a reference, it is the address on memory. String is a object, and variable of String are reference (memory address). Var args is a list of parameter, before you start your program you can set a list... Like the constructor. When calling if to scren, have method called toString(); and it try change addres memory into info. (You can re-write toString(); so it would show something different).
22nd Oct 2020, 3:18 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
About C, I'm NOT SURE, but sometimes some address have resudie. Think variable are cup, so when you declare a variable are you taking a cup, and put value is like put tea, cofee, water... But if you not take care you can take a dirty cup, so it would have something on... Or it or default value, so it show "2", but I think is because some "dirty address", getting a address already on use.
22nd Oct 2020, 3:24 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
Java: thank you very much?. Is there a way to access the objects in the class without knowing their names?
22nd Oct 2020, 3:30 AM
Daniel Briceño
Daniel Briceño - avatar
0
Sorry, I didn't understand, can you give me a example?
22nd Oct 2020, 3:34 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
ok.
22nd Oct 2020, 3:35 AM
Daniel Briceño
Daniel Briceño - avatar
0
Thank you very much. I want to know how the function System.out.println (); Pull the text across the screen.
22nd Oct 2020, 3:41 AM
Daniel Briceño
Daniel Briceño - avatar
0
https://docs.oracle.com/javase/9/docs/api/java/lang/System.html "System" is class. Inside have "out" that is a reference. Calling "println()" method.
22nd Oct 2020, 3:44 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
This site https://docs.oracle.com/javase/9/docs/api/java/lang/System.html is experiencing technical difficulty. We are aware of the issue and are working as quick as possible to correct the issue. We apologize for any inconvenience this may have caused. To speak with an Oracle sales representative: 1.800.ORACLE1. To contact Oracle Corporate Headquarters from anywhere in the world: 1.650.506.7000. To get technical support in the United States: 1.800.633.0738. Incident Number: 18.77061cb8.1603338452.1f5baf23 I get this erro a long time ago.
22nd Oct 2020, 3:48 AM
Daniel Briceño
Daniel Briceño - avatar
0
For classes, it call toString(), it is a method from all Object. Class Person() { String name; int age; Person(String nam) { this.name = nam } } public Program { public static void main(String[]args) { Person people = new Person("Daniel"); System.out.println(people); //Will put some weird memory address, it is calling toString() System.out.println(people.toString()); // we dont need put toString() because println is calling it already. But we can, same thing. } } But if add public Person { @Override public toString() { Return "My person is " + this.name; } } When: System.out.println(person.toString()); Output: My person is Daniel And if: System.out.println(person); Output: My person is Daniel So, use or not, but the "code memory address" is a method that previous programming did.
22nd Oct 2020, 3:52 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
Thank you very much 😁. Now I'm going to see if I understand. Because in Java I am the basic level.
22nd Oct 2020, 3:56 AM
Daniel Briceño
Daniel Briceño - avatar
0
No worry, when you get Oriented Object you will understand better, just go on your rythym and lvl.
22nd Oct 2020, 4:01 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
Can I make another question different? But in C.
22nd Oct 2020, 4:01 AM
Daniel Briceño
Daniel Briceño - avatar
0
Ok can ask.
22nd Oct 2020, 4:08 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
I have put this post to ask: the new driver's license, but it does not come out because it works for me. . . question: https://www.sololearn.com/coach/18?ref=app . . Answer: https://code.sololearn.com/cP7FGJ3R4jC8/?ref=app
22nd Oct 2020, 4:09 AM
Daniel Briceño
Daniel Briceño - avatar
0
What is the ask? Obs: remember even if you're fisrt the question say how much till you go off. So you need wait your time while processing.
22nd Oct 2020, 4:12 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
I do not understand
22nd Oct 2020, 4:14 AM
Daniel Briceño
Daniel Briceño - avatar
0
Turning pc on, analysing...
22nd Oct 2020, 4:19 AM
Marcelo Anjos
Marcelo Anjos - avatar