Java for Beginners

Add to Favourites
Post to:

Description
Java is a very fashionable language which is used lately for various purposes such as developing apps for mobile phone, creating interactive parts in a website etc.
Many have a liking for this language and many just want to avoid it because its just another platform.
How does it feel to program in this language and is it fun?

Comments
Mohammad Shakeer Shafie
By: Mohammad Shakeer Shafie
658 days 6 hours 22 minutes ago

sir please attach this tutorial to my e-mail shakeer66@gmail.com and send it to me

Best Reguards

Mohammad Shakeer Shafie
By: Biswadip Goswami
579 days 18 hours 2 minutes ago

For any one who wants to download this tutorial...Please find it on slide share.net
http://www.slideshare.net/biswadip/java-for-the-beginners

vinoth
By: vinoth
579 days 23 hours 16 minutes ago

sir, please attach this tutorial to my e-mail vinoth1job@gmail.com and send it to me. thank u.

vinoth
By: vinoth
579 days 23 hours 5 minutes ago

hello sir ,how to i copy attach this page files?
plz help me..

vinoth
By: vinoth
579 days 23 hours 2 minutes ago

hello sir, i want how to take copy this files in page

vinoth
By: Biswadip Goswami
579 days 18 hours 3 minutes ago

For any one who wants to download this tutorial...Please find it on slide share.net
http://www.slideshare.net/biswadip/java-for-the-beginners

Biswadip Goswami
By: Biswadip Goswami
579 days 18 hours 3 minutes ago

For any one who wants to download this tutorial...Please find it on slide share.net
http://www.slideshare.net/biswadip/java-for-the-beginners

Thank you..

Presentation Transcript Presentation Transcript

“Java” – for a beginner : “Java” – for a beginner By: Biswadip Goswami (c) Biswadip Goswami, biswadip_g@hotmail.com

What are we going to venture ! : What are we going to venture ! The Platform. Java Virtual Machine. The Programming Environment. Some fundamentals (datatypes etc.). Structure of a Java Program. Mistakes we make while writing the code. (c) Biswadip Goswami, biswadip_g@hotmail.com

The platform : The platform Java is a whole platform ! Huge library Lots of reusable code Execution environment providing services as Security Portability Automatic garbage collection and more (c) Biswadip Goswami, biswadip_g@hotmail.com

The Virtual Machine : The Virtual Machine JVM or Java Virtual Machine. Platform independent execution environment Convert ByteCode to machine code Mimics a real Java processor The ByteCode is executed regardless of the Operating System A ByteCode stream: 03 3b The mnemonics iconst_0 // 03 istore_0 // 3b (c) Biswadip Goswami, biswadip_g@hotmail.com

Slide 5 : JVM and Garbage Collection: JVM stores all objects by the java applications and Garbage Collection is a process of automatically freeing those objects which are not referenced by the program any more. Garbage collector also stops heap fragmentation. (c) Biswadip Goswami, biswadip_g@hotmail.com

Some IDEs Available: : Some IDEs Available: NetBeans [http://www.netbeans.org] Eclipse [http://www.eclipse.org] JBuilder 7 [http://www.borland.com/jbuilder] Oracle9i JDeveloper [http://www.oracle.com/ip/develop/ids/] (c) Biswadip Goswami, biswadip_g@hotmail.com

JARGONS ! : JARGONS ! JDK – Java development kit JRE – Java runtime environment SE – Standard Edition EE – Enterprise edition ME – Micro edition J2 – Java 2 SDK – Software development kit Netbeans – there is no acronym sorry ! (c) Biswadip Goswami, biswadip_g@hotmail.com

The Programming Environment ! : The Programming Environment ! (c) Biswadip Goswami, biswadip_g@hotmail.com

First Program ! : First Program ! (c) Biswadip Goswami, biswadip_g@hotmail.com

Slide 10 : (c) Biswadip Goswami, biswadip_g@hotmail.com

Using Comments : Using Comments (c) Biswadip Goswami, biswadip_g@hotmail.com

Data Types : Data Types Java is a strongly typed language Eight primitive types in Java Integer types int (4bytes) Short (2bytes) Long (8bytes) Byte (1byte) Floating point type Float (4bytes) Double (8bytes) (c) Biswadip Goswami, biswadip_g@hotmail.com

Slide 13 : Char type – used to describe individual characters. E.g. - \b (backspace), \t (tab) Boolean type – it has two values ‘true’ and ‘false’. After declaring a variable, it must be explicitly initialized. E.g. int days=30; In java declaration can be done anywhere in the code. E.g. for(int x;x<=10;x++); (c) Biswadip Goswami, biswadip_g@hotmail.com

Example : Example (c) Biswadip Goswami, biswadip_g@hotmail.com

Input/Output : Input/Output Lets check out an example for output – (c) Biswadip Goswami, biswadip_g@hotmail.com

Slide 16 : Console input and output in Java. Standard output stream (System.out.println) Standard input stream (System.in) Methods of Scanner class reads inputs. Scanner(System.in) nextLine method – input with space next method – input single string (c) Biswadip Goswami, biswadip_g@hotmail.com

The Structure: : The Structure: Any simple java program looks like class { static void main(varargs) { variables; functions; } } (c) Biswadip Goswami, biswadip_g@hotmail.com

Troubleshooting: : Troubleshooting: Check for upper and lower case of class name and .java program name. Bad command or file name - check for installation Cannot read: xyz.java – check for the file in the current directory Error about new language construct – check for the latest version of JDK Cannot find the symbol – check for the name/keywork/identifier Using an IDE generally saves you from setting of the CLASSPath. (c) Biswadip Goswami, biswadip_g@hotmail.com

Thank you ! : Thank you ! For assistance with your ASP.Net or JAVA requirements contact: Biswadip Goswami Primary e-mail: biswadip_g@hotmail.com Alt e-mail: biswadip@cognobytes.com Webpage: http://people.cognobytes.com/biswadip Skype me at biswadip.g (c) Biswadip Goswami, biswadip_g@hotmail.com

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Biswadip Goswami
Knowledge is for ALL !
User
2 Members Recommend
50 Followers

Your Facebook Friends on WizIQ

Explore Similar Courses

Develop Android Apps with Java

Price:$300
$40

SAVE 86%

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect