0% found this document useful (0 votes)
5 views

Unit - 004 - JAVA Principles of Programming

Uploaded by

Gulab Vats
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Unit - 004 - JAVA Principles of Programming

Uploaded by

Gulab Vats
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Unlimited Powerful Learning

PRESENTED BY :
Mallikarjuna G D
Founder & Director
CONTENTS Unlimited Powerful Learning

 SAMPLE PROGRAM
 TOKENS
 CONDITIONAL STATEMENTS
 LOOPING CONSTRUCTS
Sample program Unlimited Powerful Learning

• Sample Java Program: class Snipe{


public static void main(string[] args)
{
System.out.println("SNIPE Tech Pvt. Ltd.");
} } // O/P - SNIPE Tech Pvt. Ltd.
• class keyword is used to declare a class ‘SNIPE’ in java.
• public keyword is an access modifier which makes visible to all.
• static keyword is used to declare method is known as static method.
• The core advantage is that there is no need to create object to invoke
• the static method. So it saves memory.
• void is the return type of the method, it doesn't return any value.
• main represents startup of the program.
• String[] args is used for command line argument.
• System.out.println() is used print statement ‘SNIPE Tech Pvt. Ltd.’.
Operations in Stacks Unlimited Powerful Learning

Derived From Projectum

Proicere

You might also like