Chapter 1 Notes
Chapter 1 Notes
What is Fullstack
=================
-> Clients / Users will interact with s/w application using frontend
Backend : The hidden part of our application which contains business logic
-> When use perform some operation on frontend then backend logic will execute to
handle that operation
-> The programmer who can develop frontend and backend of application is called as
fullstack developer
=====================
Frontend Technologies
=====================
HTML & CSS
Java script
Bootstap
Angular
React
===================
Backend Technologies
====================
Java
Python
PHP
.Net
Node JS
===============
Servers
===============
Tomcat
JBoss
Glassfish
Oracle Weblogic
IBM WebSphere
IIS
===========
Databases
===========
Oracle
MySQL
SQL Server
Postgres
Mongo DB
Casandra
Hbase
Hive
========
Tools
=========
Git Hub : For Code Integration
==========
Cloud
===========
Amazon ---> AWS
Microsoft ---> Azure
Google -----> GCP
Oracle Cloud
IBM Cloud
VM Ware Cloud
Alibaba CLoud etc.....
=======================================
Roles & Responsibilities of Fullstack Developer
=======================================
===========
What is Java
===========
-> James Gosling is the lead for the team who developed Java Language
=======================
Java is divided into 3 parts
=======================
1) J2SE
2) J2EE
3) J2ME
=======================
What we can do using Java
=======================
1) Stand-alone applications
2) Web applications
3) Mobile Applications
==============
Java Features
==============
2) Platform Independent
3) Robust (Strong)
5) Secure
6) Distributed
7) Portable
8) Dynamic
==================
Environment Setup
==================
=========================
Java Programs Development
========================
- Note Pad
- Note Pad++
- Edit Plus
-> In companies we will use IDE to develop java programs/projects
- Eclipse
- MyEclipse
- Netbeans
- STS (Spring Tool Suite)
- IntelliJ
========================
Java Program Structure
=========================
package statements
import statements
class declaration
variables
methods
-----------hello.java---------
class hello {
System.out.println("Welcome to Java");
}
}
----------------------------
javac hello.java
java hello
---------------------------
class demo {
-----------------------------------
-> javac measns java compiler which is used to compile java programs
===============
Translators
===============
1) Interpreter
2) Compiler
3) Assembler
-> Interpreter will convert the program line by line ( performance is slow )
-> Compiler will convert all the lines of program at a time ( performance is fast )
========
JVM
========
-> JVM stands for Java Virtual Machine (We can't see with our eyes)
-> JVM will allocate memory required for program execution & de-allocate memory
when it is not used
-> JVM will convert byte code into machine understandable format
================
JVM Architecture
===============
=======
variables
========
name - ashok
age - 30
gender - m
isStudent - false
mysalary - 400.56
=========
data types
=========
1) Integral
- byte
- short
- int
- long
2) Decimal
- float
- double
3) Character
- char
4) Boolean
- boolean
- Arrays
- Strings
- Classes
================
Integral data types
=================
--> Integral data types are used to store numbers without decimal points
--> We can store both positive and negative numbers using integral data types
Ex:
age = 30
phno = 66868686868
studentscnt = 40
balance = - 3000
=================
Decimal data types
==================
-> Decimal data types are used to store numbers with decimal values
Ex:
================
character data type
=================
-> Any single character ( alphbet / digit / special character ) we can store using
'char' data type
-> When we are storing data into 'char' data type single quote is mandatory
gender = 'm'
rank = '1'
Note: In C language 'char' will take only 1 byte where as in java 'char' will take
2 bytes
==============
boolean data type
==============
Ex:
isPass;
isFail
isMarried
isOdd
isEven
===========
Variables
===========
-> Variables are used to store the data / value
-> To store the data into variable we need to specify data type
class var {
float a = 25.01f;
System.out.println(a);
}
}
1) Identifiers
2) Keywords
===========
Identifiers
==========
-> For variables, for classes and for methods we need a name
int age ;
class Hello {
// code
}
main ( ) {
//logic
}
-> The name which we are using for packages, variables, classes & methods is
called as identifier
-> We can use any name for identifiers but we need to follow below rules to work
with identifiers
1) a - z
2) A - Z
3) 0 to 9
4) $ (dollar)
5) _ (underscore)
Ex:
Rule-2 : Identifier should not start with digit (first character shouldn't be
digit)
Rule-3 : Java reserved words shouldn't be used as identifier (53 reserved words)
Rule-5 : Java is case sensitive language 'name' & 'NAME' both are not same
==============================================
Java Naming Conventions ( Java Coding Standards )
===============================================
-> Java language followed some standards/conventions for pre-defined packages,
classes and methods....
-> Java language suggested java programmers also to follow same standards /
conventions
===============================
Naming Convention For Class Name
===============================
-> A class name can contain any no.of words without spaces
-> Recommended to write every word first character as uppercase in class name
Examples:
class Hello {
}
class HelloWorld {
}
class UserManagementService{
}
class WelcomeRestController {
}
=========================
Variables Naming Convention
=========================
-> Variable name can have any no.of words without spaces
-> If variable name contains multiple words then recommended to write firstword all
characters in lowercase and from second word onwards every word first character in
Uppercase
Examples:
int age ;
int userAge;
long creditCardNumber ;
=========================
Method Naming Convention
=========================
> Method name can have any no.of words without spaces
main ( ) {
}
save ( ) {
saveUser( ) {
getWelcomeMsg ( ) {
Note: Variables & Methods naming conventions are same. But methods will have
parenthesis ( () ) variables will not have parenthesis.
==============================
Naming Conventions for Constants
=============================
-> Constant means fixed value (value will not change, it is fixed)
int PI = 3.14;
===============================
Naming Conventions for Packages
==============================
-> Package name can have any no.of characters & any of words
-> If package name conatins multiple words then we will use . (dot) to seperate
words
Eamples:
java.lang
java.io
java.util
in.ashokit
com.oracle
com.ibm
==========
Chaper-1
==========
1) What is Java
2) Java Features
3) Java Environment Setup
4) JDK vs JRE vs JVM
5) Java Programs Execution Flow
6) Java Programs Development (Compilation & Execution)
7) Variables
8) Data Types
9) Identifiers
10) Reserved Words (53)
11) Java Coding Standards (Naming Conventions)
12) Java Comments