Profound
Uploaded by
9 SLIDES
90 VIEWS
90LIKES

Basics of Java

DESCRIPTION

what is Java

1 / 9

Download Presentation

Basics of Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript

Playing audio...

  1. Basics of Java

  2. Objective Variable & Keyword Variable & Keyword  Data Type Data Type  Operators Operators  Sequential Statement Sequential Statement  Control Statement Control Statement Array Array 2

  3. Data Types Data Types in Java Primitives Non-Primitive ( Derived) Numeric Non-Numeric Classes Arrays Interface Floating Point Integer Character Boolean 3

  4. Operators in Java • Arithmetic Operators • Relational Operators • Logical Operators • Unary operators • Boolean Logical Operators • Conditional Operator 4

  5. Comments in Java Comments in Java Start End Purpose /* */ The enclosed text is treated as a comment. // (none ) The rest of the line is treated as a comment. /** */ The enclosed text is treated as a comment by the compiler but is used by JavaDoc to automatically generate documentation. 5

  6. Java Statements • Sequential Statements If-else Nested if-else Switch case • Control Statement  do-while  while  for loop 6

  7. Array in Java • Array-collection of similar data type variable. • In Java, creating an Array is nothing but creating object. • Array is “First Class Object”. • Syntax int arr[]; //declaration arr=new int[5]; //Actual Memory allocation 7

  8. Array in Java • Way 1 int arr[]; arr=new int[5]; arr[0]=10;…… • Way 2 int arr[]={10,20,30,..}; 8

  9. Session Summary • Variable & Keyword • Data type • Operators in Java • Sequential Statement • Control Statement • Array in Java 9

More Related