2. INTRODUCTION
• Java is a high-level ,class -based,object oriented
programming ,simple programming language
• Java was originally developed by james gosling at
sun microsystems It released in may 1995 as a
core component of sun microsystems’java
platform
• The original and reference implemention java
compilers,virtual machines,and class libraries
were originally released by sun under proprietary
licenses
3. INTRODUCTION
• The syntax of java similar to C and C++
• Java makes writing,compiling and debugging
programming easy
• Java applications are compiled to byte code
that can run on any virtual machine.
4. JAVA TERMINOLOGY
• Before learning java,one must be be familiar
with these common terms of java
• Java Virtual Machine(JVM):This is generally
referred to as JVM. There are three execution
phases of a program . They are
written,compile,and run the program
• Java Development kit(JDK): It is completed
java development kit that includes everthing
including compiler
5. JAVA TERMINOLOGY
• Java Runtime Environment(JRE): JDK includes
JRE .JRE installation on our computers allows
the java however ,we cannot compile it. JRE
includes a browser,JVM.
6. VARIABLES AND DATATYPES
variables
• String: Stores text, such as “hello”
• Int:Stores integers(whole numbers), without
decimals,such 123 or-123.
• Float :Stores floating points with decimal,such
as 19.99 or-19.99.
• char:Stores single characters,such as ‘a’ or’B’..
• Boolean:Stores values with two states:true
and false.
7. Datatypes
• Data types are different sizes and values that can be
stored in the variable that is made as per convenience
and circumstances to cover
• There are two types:
• Primitive Data Type: such as boolean, char, int, short,
byte, long, float, and double
• Non-Primitive Data Type or Object Data type: such as
String, Array, etc.
•
•
8. OPERATORS
• Operators are used to perform operations on varaibles and values
• Operator in Java is a symbol that is used to perform operations. For
example: +, -, *, / etc.
• There are many types of operators in Java which are given below:
• Arithmetic Operator:*, /, %,+, -
• Relational Operator:<, >, <=, >=, ==, !=
• Bitwise Operator: &,bitwise exclusive OR^,bitwise inclusive OR
• Logical Operator: logical AND&&,logical ORII
• Assignment Operator:=‘ +=, -=, *= ,/= ,%=, &=, ^= ,|=, <<=, >>=,
>>>=
9. STRINGS
• Strings, which are widely used in Java
programming, are a sequence of characters. In
the Java programming language, strings are
objects.
• String length:The string length method returns
the number of characters written in the String.
This method returns the length of any string
which is equal to the number of 16-bit Unicode
characters in the string
•
10. Advantages
• store multiple data of similar types with the
same name. It allows random access to
elements
• In an array, accessing an element is very easy
by using the index number.
11. comments
• Comments in Java are the statements are not
executed by the compiler and interpreter
• Two types of comments:
• Single-line comments:// single-line comment
• Multi-line comments:
• /*multi -line comment*/
12. ARRAYS
• What is an array in Java?
• An array is a container object that holds a
fixed number of values of a single type.
• An array is a collection of similar types of
data
• There are two types of array:
• Two-dimensional array.
• Multi-dimensional array.
13. Class and Object
• Class:A class is a blueprint for declaring and
creating objects.
• Ex:If animal is the class then dog is the
object, if human is the class then man is the
object.
• Objects:An object is a class instances that
allows programmers to use variables and
methods from inside the class
• Ex: mountain cycles, touring cycles
14. constructions
• Java allows the object to initialize itself when it is
created. This automatic initialization is known as
Constructors.
• The constructor is a block of code that initializes
the newly created object.
constructor initializes an object immediately
upon creation. Once defined, the constructor is
called automatically Constructors have no return
type, not even void.
15. polymorphism
• Polymorphism is a Greek word where poly means many or several
and morph means faces/ behaviors or functionalities. So, in simple
words, we can say that polymorphism is the ability of an entity to
take several forms.
• Advantages of Polymorphism in Java:
• More flexible and reusable code.
• The single variable name can be used to store variables of multiple
data types.
• Faster and efficient code at Runtime.
• Code that is protected from extension by other classes.
• More dynamic code at runtime.
•
16. KEY WORDS
• A keyword is a term used in digital marketing to
describe a word or a group of words an Internet user
uses to perform a search in a search engine or search
bar
• Keywords:
• Super Keyword in Java.
• final Keyword in Java.
• abstract keyword in java.
• static Keyword in Java.
• 'this' reference in Java.
• enum in Java.
17. STATIC KEYWORD
• The static keyword is a non-access modifier used for
methods and attributes. Static methods/attributes can
be accessed without creating an object of a class
• Uses:
• The static keyword in Java is mainly used for memory
management. The static keyword in Java is used to
share the same variable or method of a given class. The
users can apply static keywords with variables,
methods, blocks, and nested classes. The static
keyword belongs to the class than an instance of the
class.02-Dec-2021
18. THIS KEYWORDS
this keyword refers to the current object in a
method or constructor. The most common
use of the this keyword is to eliminate the
confusion between class attributes and
parameters with the same name
•
19. ABSTRACT KEYWORD
The abstract keyword is a non-access modifier,
used for classes and methods. Class: An
abstract class is a restricted class that cannot
be used to create objects (to access it, it must
be inherited from another class).
20. SUPER KEYWORD
• The super keyword refers to superclass
(parent) objects. It is used to call superclass
methods, and to access the superclass
constructor. The most common use of the
super keyword is to eliminate the confusion
between superclasses and subclasses that
have methods with the same name.
21. FINAL KEYWORD
• The final keyword is a non-access modifier
used for classes, attributes and methods,
which makes them non-changeable
(impossible to inherit or override). The final
keyword is useful when you want a variable to
always store the same value, like PI
(3.14159...).
22. FEATURES
• Some of the important Java 8 features are;
• forEach() method in Iterable interface.
• default and static methods in Interfaces.
• Functional Interfaces and Lambda Expressions.
• Java Stream API for Bulk Data Operations on Collections.
• Java Time API.
• Collection API improvements.
• Concurrency API improvements.
• Java IO improvements.
•
•
23. APPLICATIONS
• Spotify (Music Streaming App) ...
• Twitter (Social Media App) ...
• Opera Mini (Web Browser) ...
• CashApp (Mobile Payment Service) ...
• ThinkFree Office (Desktop-based App) ...
• Signal ( Messaging Services) ...
24. CONCLUSION
• In a intershala, This intership Has been an excellent and
rewarding Experience I Can Conclude That There Have
Been A Lot I’ve Learnt From My work . At intershala
Needless To say
• The Techincal aspects of The Work I’ve done are not
flawless and could be improved provided enough time.
Whatever believe my time spent in research and
discovering it was well worth it and contributed to
finding an acceptance solution to bulid a fully
functional web Two main things are importance I
learnted in java core are self motivation and
mangement skills etc…….