I want to know how java creators write code for java | Sololearn: Learn to code for FREE!


I want to know how java creators write code for java

what is inside the method like toUpperCase(); where can i find it

2/2/2020 5:50:32 PM

Sheraz Tariq

8 Answers

New Answer


to uppercase() is one of many methods in string class, between the parentheses it takes in a string and then converts it to uppercase and returns the result back to were you called it.




Sheraz Tariq If you have a PC you can use an IDE to see the source code. src.zip is part of the JDK. Normally it is attached to the IDE. For openJDK you can see it online: hg.openjdk.java.net Choose a jdk for example jdk8. (If I am correct sololearn uses openjdk14) jdk8 (you can also choose another jdk) -> jdk -> browse (left side) -> src/ -> share/ -> classes/ -> java/ -> lang/ -> String.java hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/lang/String.java Now you see the whole source code of the String class. Until java/ the steps should be for all classes the same. lang/ is the package. For example ArrayList is part of util, so you have to click util to find this class.


They do it similiar u would do it.


can i see it


I did not jump into all methods ;) https://code.sololearn.com/ca7gcuctmIh0/?ref=app Btw: Things getting complicated if you really want to know how a method works :D


Thanks is there any specific place where can i find everything i want