Java Tutorial For Beginners - Learn in 7 Days
Java Tutorial For Beginners - Learn in 7 Days
Java is the most popular programming language & is the language of choice for Android programm
course is taught in practical GOAL oriented way. It is recommended you practise the code assignme
after each tutorials.
What should i know?
Nothing. This tutorial is designed for beginners with little or no coding experience. No installation i
We provide an online Java Executor.
Syllabus
7 – What is Encapsulation ?
11 – Arrays
17 – “this” keyword
18 – Garbage Collection
19 – static
Inheritance Revisited
22 – abstract
23 – interface
24 – Constructors
25 – Packages
Exception Handling
27 – Exception Hierarchy
29 – Exception Propagation
http://www.guru99.com/javatutorial.html 2/6
4/10/2017 Java Tutorial for Beginners: Learn in 7 Days
Conditional Loops
30 – Interesting trick with For Loop – Using the Foreach loop in Java.
Advance Stuff!
35 – Multithreading in Java
Join our email learning
course
JAVA in 7 Days!!!
Name:
Email:
http://www.guru99.com/javatutorial.html 3/6
4/10/2017 Java Tutorial for Beginners: Learn in 7 Days
6 Comments Guru99
Join the discussion…
Issac • a month ago
Ok when you save as and say go to workplace my computer does not have a workplace folder. Second
my cmd prompt to specify C:/Workplace? Without knowing either of these steps I am unable to continue
△ ▽ • Reply • Share ›
rakesh kumar lenka • 2 years ago
hello any one there to please help me out dear
△ ▽ • Reply • Share ›
rakesh kumar lenka • 2 years ago
can any one help me out to fix this issue as Line 7: error: ';' expected
int Area()
^
1 error
class A{
int l;
int w;
A(int length,int width);{
l=length;
w=width;
int Area()
Area=l*w;
return Area;
}
public static void main(String args[]){
A.a1=new A();
a1.Area();
system.out.println("Area is");
}
}
△ ▽ • Reply • Share ›
Muhammad Mousa > rakesh kumar lenka • 6 months ago
you have to add the opening bracket after the method definition, and the closing one for the cons
variable (Area) inside the method which holds the value of multiplying the height by the width you
which type it is, such as int, double or whatever which is the proper way to declare a variable in
http://www.guru99.com/javatutorial.html 4/6
4/10/2017 Java Tutorial for Beginners: Learn in 7 Days
which type it is, such as int, double or whatever which is the proper way to declare a variable in
1 △ ▽ • Reply • Share ›
Muhammad Mousa > rakesh kumar lenka • 6 months ago
class A{
int l;
int w;
A(int length, int width)
{
this.l= length;
this.w= width
}
int Area()
{
int Area= this.l *this.w;
return Area;
}
public static void main(String args[]){
A a1 = new A(5,4);
int area = a1.Area();
system.out.println("Area is "+area);
}
}
△ ▽ • Reply • Share ›
Mayu > rakesh kumar lenka • 2 years ago
Remove semicolon from constructor A(int length, int width)
{
l=length;
w=width;
int Area()
Area=l*w;
return Area;
}
psvm()
{
A.a1=new A(1,2);
system.out.println("Area is");
Sure u vil get it ...
△ ▽ • Reply • Share ›
http://www.guru99.com/javatutorial.html 5/6
4/10/2017 Java Tutorial for Beginners: Learn in 7 Days
http://www.guru99.com/javatutorial.html 6/6