JAVA_NOT-YET-DONE.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

AimeeJoyLHermosora 5 views 25 slides Aug 05, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

a discussion about the java


Slide Content

GOOD AFTERNOON GRADE 10 HI! MY NAME IS TEACHER JEN

CLASS RULES Treat others with respect at all time. Listen to the teacher when she/he speaks. Be prepared everyday with required items. Listen and follow directions . Raised your hand before speaking or leaving your set.

MECHANICS The class will be divided into two groups. Each member must be able to answer the prepared word hunt game. The teacher will dictate the word that needs to be found in the given word game. The first to find and make a circle or line, gets a point. The one with the most points is the winner.

JAVA STATEMENTS AND BLOCKS

Statement is a one or more lines of code terminated by a semicolon. System.out.println (“Hello world”);

Block is one or more statements bounded by an opening and closing curly braces that groups the statements as one unit. Block statements can be nested indefinitely. Any amount of white space is allowed.

In creating blocks, you can place the opening curly brace in line with the statement, like for example,   public static void main( String[] args ){   or you can place the curly brace on the next line, like, public static void main( String[] args ) {   You should indent the next statements after the start of a block,for example,   public static void main( String[] args ){ System.out.println ("Hello"); System.out.println ("world"); }

Java Comments are notes written to a code for documentation purposes. C++-style single line comments C-style multiline comments Special Javadoc comments. 3 types;

C++-Style Comments C++ Style comments starts with //. All the text after // are treated as comments. For example,   // This is a C++ style or single line comments.

2. C-Style Comments C-style comments or also called multiline comments starts with a /* and ends with a */. All text in between the two delimeters are treated as comments. Unlike C++ style comments, it can span multiple lines. For example,   /* this is an exmaple of a C style or multiline comments */

3. Special Javadoc Comments Special Javadoc comments are used for generating an HTML documentation for your Java programs. You can create javadoc comments by starting the line with /** and ending it with */. Like C-style comments, it can also span lines. It can also contain certain tags to add more information to your comments. For example,   /** This is an example of special java doc comments used for \n generating an html documentation. It uses tags like: @author Florence Balagtas @version 1.2 */

Java Identifiers are tokens that represent names of variables, methods, classes. Java identifiers means that the identifier: Hello is not the same as hello . Identifiers must begin with either a letter, an underscore “_”, or a dollar sign “$”. Letters may be lower or upper case. Subsequent characters may use numbers 0 to 9. myName1, myName2, my$ hello, i , _ myName , $1, $ myAge

  Java Keywords are predefined identifiers reserved by Java for a specific purpose. You cannot use keywords as names for your variables, classes, methods etc.

Data Type boolen byte short int long char Float double Looping or Iterative 9. For 10. Do 11. While Conditional 12. if 13. Else 14. Switch 15. Case 16. Default 17. Continue 18. Break 19. goto ** 50 Keywords

Function 20. Void 21. return Object 22. New 23. This 24. Super 25. Instance of Access Specifier 26. Public 27. Private 28. protected Modifiers 29. Static 30. Synchronized 31. Native 32. Transient 33. Final 34. Variable 35. Abstract 36. Strictfp

Declarative 37. Pacakage 38. import 39. Class 40. Interface 41. Enum 42. const** Inheretance 43. Implements 44. extends Exception 45. Throw 46. Throws 47. Try 48. Catch 49. Finally 50. assert***

“GROUP ACTIVITY”

The class will be divided into three groups. And each group has a set emoji. g1😢g2😘 g😡. The teacher will put down papers that contain words and they will serve as answers. Each paper has an emoji on it. *The teacher will ask a question and the representatives of each group must find the correct answer and correct emoji. If the answer is correct and the wrong emoji is picked, it will be considered wrong. And the one with the most points is the winner. MECHANICS

Let’s Have a ACTIVITY

Identification: Directions : Identity what is being asked on the following question. Write your answer on the space provided. __________1. This is a one or more lines of code terminated by a semicolon. __________2. This is composed of one more statement bounded by an opening ({) and closing (}) curly braces. __________3. This are notes written to a code for documentation purposes. __________4. This are case- sensitive This means that the identifier: Hello is not the same as hello __________5. Used for generating an HTML documentation for your Java programs.  

__________6. This are predefined identifiers reserved by Java for a specific purpose. ____________7. C-style comments or also called____. ____________8. C++ Style comments starts with //. All the text after // are treated as comments. ____________9. What is the complete title of our topic today? ____________10. This is starting the line with /** and ending it with */. called_____.

THANK YOU FOR LISTENING GRADE 10 ! !
Tags