Skip to content

Ajay3007/Learn-Java

Repository files navigation

Learn Java

Twitter Follow

Author: Ajay Gupt
© Ajay Kumar Gupt, 2021

Welcome!

Here, you will get to know basics of Java Programming.

Contents:

  1. Structure of a java program
  2. Classes
  3. Input ans Output Classes
  4. Operators
  5. conrol Statements
  6. Arrays
  7. Strings
  8. Packages and interfaces
  9. Inheritance
  10. Exceptions
  11. Threads

Run Java from Command Line

To run a Java file in windows cmd:

  1. Save the file with 'FileName.java'
  2. In cmd Navigate the prompt in the directory where the 'FileName.java' file exists.
  3. Type javac FileName.java A FileName.class file will be created in the same directory.
  4. Type java FileName

To print on screen use function:

printf()

To reads the keyboard entries in string form:

readLine()

To converts String to int:

Integer.parseInt()

About

Learn Basics of java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages