Click here to Skip to main content
15,885,651 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hello ,

I am new programming , I understand that JAVA is made of these codes

public class Main
public static void
operators : !, == , ?
int , float , double etc.

These which are just the basic ones I refer to them as built in codes or tools that
allow users to combine them and make programs , now I have searched alot on google

but where is source of all these codes ? I WANT a complete updated list that shows every built in tool/code in Java , but where is that source ! I have not been able to find it , common guides ( like courses or vids etc. ) only tell me some amount of all things that are in java and I can use them

Please tell me where is source of all codes that make java language ? all methods classes primitives operators etc .

where can I find such a list ? e.g in operators part it includes all operators

What I have tried:

lots of searching ... lots of asking around the internet especially stackoverflow

I only got java API but does it really include all I want ?
Posted
Updated 11-Mar-17 22:13pm
Comments
Patrice T 11-Mar-17 17:58pm    
Why do you need the complete source code of Java ?
[no name] 11-Mar-17 18:04pm    
Despite what you are telling us what you think you want, you do not need such a thing. What is your actual question here?

Right click the word in the IDE, and select Go to Declaration. Most IDEs will take you to the file, where that code is written. Such as, the following code,
Java
public class Program {
   public static void main(String[] args) {
      System.out.println("Google it, bro!");
   }
}

If you right click and select the declaration for String, it will work. But the same will not work for void word. The reason is that the keywords are predefined in the language library, and however the custom types (String is not built in type in Java), can be easily checked up against.

Warning just stop, because you don't need to read the source code Java to learn Java, But... if you really want to go ahead and read the code of Java JDK, go ahead and download the archives for the Java JDK, Java SE - Downloads | Oracle Technology Network | Oracle[^] (try luck here...), then navigate to the folder where the Java file would be. java.lang.String would be located under java/lang/String.java.

You should also look into OpenJDK to get the latest version of source code for Java, applied to open source standards and APIs. OpenJDK[^]
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900