Basic Java Tutorial for Beginners in Java
By coded32 (or) Encrypted32
Here are some Keypoints you should already know about java before Beginning to program any Java program.
Well Before that Remember some Basic things :-----
Well Before that Remember some Basic things :-----
What Is Java?
Java is a programming language developed by Sun Microsystems in 1995. It was originally designed for programming small computing devices, but was later adapted by the computer industry as a platform-independent programming language. The JAVA "compiler" produces bytecode that can be interpreted on any platform, and is free to download from Sun and is supported on many platforms including Windows, UNIX/Linux, and Solaris.
Java is a programming language developed by Sun Microsystems in 1995. It was originally designed for programming small computing devices, but was later adapted by the computer industry as a platform-independent programming language. The JAVA "compiler" produces bytecode that can be interpreted on any platform, and is free to download from Sun and is supported on many platforms including Windows, UNIX/Linux, and Solaris.
An Example Java Program
This is an example of a Java source file. The code should be saved in a text file with a .java extension.
This is an example of a Java source file. The code should be saved in a text file with a .java extension.
Code
// Classname must be same as filename.
public class test
{
// Variables
private static String myText = "Hello, World";
private static String msg;
private static int myInt = 10;
// Main - Where the Action Starts
public static void main(String args[])
{
// Print "Hello, World" to the screen.
System.out.println("Hello, World\n");
// Multiplication for each value
for (int i = 0; i <10; i++)
{
// Print Calculations to Screen
System.out.println(calc(i));
}
}
// Handle the calculations
public static String calc(int timesBy)
{
// Put calculation into string
msg = myInt + " x " + timesBy + "= " + (myInt * timesBy) + "\n";
// Return Calculation
return msg;
}
}1.) Java is a OOP language. OOP means Object Oriented Programming.
2.) Java is Widely used to Deploy many Applications Now-a-days and is also very popular.
3.) Java is a HLL. HLL stands for High Level Language.
2.) Java is Widely used to Deploy many Applications Now-a-days and is also very popular.
3.) Java is a HLL. HLL stands for High Level Language.
So Now Let's Discuss the Basic Things in Java.
1.) Keywords are Reserved words in java which cannot be used by the User.
2.) Here are some of the Keywords which are Reserved only for the Java Development Kit or the JRE package.
2.) Here are some of the Keywords which are Reserved only for the Java Development Kit or the JRE package.
-void
-volatile
-class
-main
-static
-throws
-volatile
-class
-main
-static
-throws
Here is a Beginner's program with with many of the New Programmers code.
Code
import java.io.*;
import java.lang.*;
class My_first_Program
{
public static void main()throws IOException
{
System.out.println("this is my First Program in Java. I love Hackforums.net. Encrypted32 Speaking.");
System.out.println("I have used a prinln lol.")
}
}There are Many E-Books available for Java Beginners, you should also Read Them out :--
Here are some :: Google it and start Reading them.
Core Java 2, Volume I: Fundamentals (6th Edition)
Effective Java Programming Language Guide
Java 2 for Dummies
The Java Programming Language
If you're a looking for a few excellent e-books on java that are free, you can try these websites out:
http://www.roxie.org/books/bleeding/
The Java Tutorial
Introduction to Programming Using Java Technology
Intro to Prgamming in Java
Thinking in Java
A gentle introduction to programming
Essentials of Java programming
There are so many free E-books out there that are Java Based that it isn't funny. But, Many times these books are a little outdated. For instance, Java is now in version 1.4, and some of these books are still talking about previous versions. So, it would be a good to also purchase a more uptodate book as well as having the knowledge that you can read more on the internet.
There are also quite a few tutorials available on the internet. Here are a few of them:
Java Official Website
WebMonkey Java Tutorials
Java API Reference Manual
Effective Java Programming Language Guide
Java 2 for Dummies
The Java Programming Language
If you're a looking for a few excellent e-books on java that are free, you can try these websites out:
http://www.roxie.org/books/bleeding/
The Java Tutorial
Introduction to Programming Using Java Technology
Intro to Prgamming in Java
Thinking in Java
A gentle introduction to programming
Essentials of Java programming
There are so many free E-books out there that are Java Based that it isn't funny. But, Many times these books are a little outdated. For instance, Java is now in version 1.4, and some of these books are still talking about previous versions. So, it would be a good to also purchase a more uptodate book as well as having the knowledge that you can read more on the internet.
There are also quite a few tutorials available on the internet. Here are a few of them:
Java Official Website
WebMonkey Java Tutorials
Java API Reference Manual
Thanks this was Encrypted32 from HF.net. will Bring you more......
Blog at: http://pwntoken.github.io/

