Full Stack Java Developer Course | Session - 2 | Programming Concepts | rajonlinetrainings

rajonlinetrainings
18 Nov 202224:15

Summary

TLDRIn this full stack Java course, the instructor outlines the curriculum covering Java SE for desktop apps, web technologies like HTML, CSS, JavaScript, and frameworks such as Hibernate and Spring. The course also includes advanced topics like microservices and real-time tools like Maven, GitHub, and Postman. The session emphasizes the importance of understanding programming concepts like variables, data types, and methods before diving into Java. The instructor introduces the class structure, timing, and the recording process, setting the stage for a comprehensive learning experience.

Takeaways

  • 😀 The course covers full stack Java development, including Java SE for standalone applications, web technologies like HTML, CSS, JavaScript, and advanced topics like Java EE with servlets and JSP.
  • 👨‍💻 The course introduces two significant frameworks: Hibernate for database interaction and Spring for comprehensive web application development, including Spring Core, Spring Data, Spring MVC, and Spring Boot.
  • 🌐 The curriculum also includes learning about web services and microservices using Spring Boot, which are crucial for building scalable and maintainable applications.
  • 🛠️ Real-time tools such as Maven for dependency management, GitHub for version control, and Postman for API testing are part of the course to equip students with industry-standard tools.
  • ⏰ The course is structured with a duration of approximately 55 hours, conducted from Monday to Friday at 7 PM IST, with each class lasting up to one hour.
  • 🔗 Students are provided with a consistent meeting link to join the classes throughout the week, and recordings are shared for future reference.
  • 💡 The importance of understanding programming concepts before delving into specific languages like Java is emphasized to ensure a smooth learning curve.
  • 📝 Comments are introduced as a way to document code, making it understandable and maintainable for other programmers or for future reference.
  • 🔑 Keywords in programming languages are highlighted as reserved words that have special meanings to the compiler or interpreter.
  • 📚 Variables are explained as named memory spaces used to store data, with data types defining the kind of data a variable can hold, such as integers, floats, or strings.
  • 📋 The process of declaring variables is outlined, which involves specifying the data type and variable name, essential for allocating memory and defining how data is stored and manipulated.
  • 📚 Methods or functions are introduced as sub-programs designed to perform specific tasks, with a focus on how to define, call, and return values from methods, including the concept of return types.

Q & A

  • What is the main purpose of the course 'Full Stack Java'?

    -The main purpose of the 'Full Stack Java' course is to cover various aspects of Java programming, including Java SE for standalone applications, web technologies for UI design, Java EE for web applications, and learning important frameworks like Hibernate and Spring.

  • What does Java SE stand for and what type of applications is it used for?

    -Java SE stands for Java Standard Edition. It is used for developing standalone or desktop applications such as a calculator, notepad, or paint programs.

  • Can you list some of the web technologies covered in the 'Full Stack Java' course?

    -Some of the web technologies covered in the course include HTML, CSS, JavaScript, XML, JSON, TypeScript, and Angular.

  • What is Java EE and how does it differ from Java SE?

    -Java EE stands for Java Enterprise Edition. It is used for developing web applications, unlike Java SE which is for standalone or desktop applications. The course discusses servlets and JSP as part of Java EE.

  • What are the two important frameworks that will be learned in the 'Full Stack Java' course?

    -The two important frameworks that will be learned are Hibernate and Spring.

  • What is the significance of the Spring framework in the course?

    -The Spring framework is significant as it is used for developing web applications and understanding web services concepts. It includes modules like Spring Core, Spring Data, Spring MVC, and Spring Boot.

  • What real-time tools will be covered in the course to aid in development?

    -The course will cover real-time tools such as Maven, GitHub, and Postman to aid in the development process.

  • What is the duration of the 'Full Stack Java' course?

    -The duration of the course is approximately 55 sessions.

  • What is the schedule for the 'Full Stack Java' classes?

    -The classes are held from Monday to Friday at 7 pm IST.

  • What is the importance of understanding programming concepts before diving into a programming language like Java?

    -Understanding programming concepts is crucial as it provides a foundational knowledge that makes it easier to learn any programming language, including Java.

  • What is a program in the context of programming?

    -A program is a collection of statements used to perform a specific task, such as calculating the area of a rectangle or finding the net salary of an employee.

  • Why are comments important in programming?

    -Comments are important in programming because they help document the code, making it understandable to other programmers or even to oneself in the future.

Outlines

00:00

📚 Course Overview and Java Full Stack

The script introduces a full stack Java course, emphasizing the curriculum's comprehensive nature. It begins with Java SE for standalone applications like calculators and notepads, then moves into web technologies including HTML, CSS, JavaScript, XML, JSON, TypeScript, and Angular. Advanced Java EE is covered for web applications, with a focus on servlets and JSP. Frameworks like Hibernate and Spring are also discussed, with Spring's sub-modules such as Core, Data, MVC, and Boot being highlighted. The course also touches on real-time tools like Maven, GitHub, and Postman. The class schedule is detailed, with sessions from Monday to Friday at 7 pm IST, and recordings are promised to be shared post-class.

05:02

💡 Understanding Programming Concepts

This section aims to lay a foundation in programming concepts before delving into specific languages like Java. The importance of understanding programming fundamentals is stressed, as it eases the learning process of any new language. The script defines a program as a collection of statements designed to perform specific tasks, such as calculating areas or handling data operations. It introduces the concept of comments in code, which are essential for documentation and clarity, and differentiates between single-line and multi-line comments. Keywords, which are reserved words understood by the programming language, are also explained, with examples provided.

10:05

🔑 Key Programming Constructs: Variables and Data Types

The paragraph delves into the concept of variables as memory space identifiers used to store data. It explains how variables are named and their role in holding data like employee numbers or names. Data types are introduced as classifications for the kind of data a variable can store, such as integers, strings, or floats. The importance of declaring variables with their data types before use is emphasized, ensuring the correct allocation of memory space. The paragraph also touches on the syntax for declaring variables in programming languages, illustrating with examples and reinforcing the need for a semicolon at the end of each statement.

15:07

🛠 Methods and Functions in Programming

This section explains methods and functions as sub-programs designed to perform specific tasks. It uses the example of calculating the area of a rectangle to illustrate how methods are defined and called. The paragraph clarifies the role of arguments and parameters in methods, and how they are used to pass data required for the task. The concept of the return type is introduced, explaining how it dictates the data type of the result that a method returns. The difference between a method that returns a value and one that does not (void) is also discussed, highlighting the importance of understanding method return types before beginning Java programming.

20:07

🔍 Deep Dive into Methodology and Function Types

The final paragraph focuses on the intricacies of methods, emphasizing the return type and how it defines what a method outputs. It uses the area calculation method as an example to explain the process of defining, calling, and returning values from methods. The paragraph also clarifies the use of the 'void' keyword when a method does not return any value. The instructor reassures that these concepts will be revisited with examples and assignments, encouraging students to grasp the basics before moving on to Java. The session ends with an invitation for questions and a预告 of the next class, which will begin with an introduction to Java.

Mindmap

Keywords

💡Java SE

Java SE, or Standard Edition, is the core Java platform that provides the foundation for developing and deploying Java applications. In the video, Java SE is mentioned as the starting point for learning Java, emphasizing its role in developing standalone or desktop applications. Examples given include a calculator, notepad, and paint programs, which are typical uses of Java SE in creating desktop software.

💡Web Technologies

Web Technologies refer to the various tools and languages used to create websites and web applications. The script discusses HTML, CSS, JavaScript, XML, JSON, TypeScript, and Angular as part of web technologies. These technologies are crucial for front-end development, which is the visual and interactive aspect of web applications, and they form the basis for the UI design portion of the course.

💡Java EE

Java EE, or Enterprise Edition, is an extension of the Java SE platform that provides a comprehensive set of services for developing large-scale, multi-tiered, scalable, reliable, and secure server-side applications. In the context of the video, Java EE is mentioned as being used for developing web applications, with servlets and JSP (JavaServer Pages) being key components discussed.

💡Frameworks

Frameworks in the video refer to pre-written code libraries that provide a structure for developing applications. Two important frameworks mentioned are Hibernate and Spring. These frameworks are used to simplify and standardize the development process, making it easier to build robust and maintainable applications. The Spring framework, in particular, is highlighted for its use in web services and its various modules like Spring Core, Spring Data, and Spring MVC.

💡Real-Time Tools

Real-Time Tools are software utilities that aid in the development process by providing real-time feedback or automation. The video mentions Maven, GitHub, and Postman as examples. These tools are used for dependency management (Maven), version control and collaboration (GitHub), and API testing (Postman), respectively, and are integral to modern software development practices.

💡Programming Concepts

Programming Concepts are the fundamental ideas and principles that underlie all programming languages. The video emphasizes the importance of understanding these concepts before delving into specific languages like Java. Basic concepts such as comments, variables, data types, and methods are discussed as essential building blocks for any programmer, regardless of the language they choose to work with.

💡Comments

Comments in programming are annotations or notes that are included in the source code but are ignored by the compiler or interpreter. They are used to explain the code, making it easier to understand for other programmers or for future reference. The video explains two types of comments: single-line comments (denoted by //) and multi-line comments (enclosed within /* and */), which are used to document the program and aid in readability.

💡Keywords

Keywords in programming are reserved words that have special meanings to the programming language and cannot be used as identifiers. The video provides examples of keywords such as 'int', 'float', 'if', 'else', 'while', and 'class'. These words are essential as they define the syntax and structure of the language, and understanding them is crucial for writing valid and syntactically correct code.

💡Variables

Variables in programming are used to store data values. The video explains that variables are named memory spaces where data can be held for later use. Variables are crucial for manipulating data within a program, and they are defined with a specific data type. Examples given in the script include 'employee number', 'student name', and 'salary', illustrating how variables are used to hold different types of data.

💡Data Types

Data Types define the kind of data a variable can hold. The video distinguishes between several data types, such as 'int' for integer values, 'float' for decimal numbers, and 'string' for text. Understanding data types is important because it dictates what operations can be performed on the data stored in a variable and how much memory will be allocated for it.

💡Methods

Methods, also known as functions, are blocks of code designed to perform a specific task. The video explains how to define a method with a name, a pair of parentheses for parameters, and a body enclosed in curly braces. Methods can take input, process it, and optionally return a value, which is demonstrated with the example of a method to calculate the area of a rectangle. Methods are fundamental to modular programming, allowing for code reuse and organization.

Highlights

Introduction to Full Stack Java course content, including Java SE for standalone applications, web technologies like HTML, CSS, JavaScript, and enterprise Java with servlets and JSP.

Emphasis on learning important frameworks like Hibernate and Spring, which are crucial for web application development.

Explanation of the Spring framework's modules, including Spring Core, Data, MVC, and Boot, which are essential for understanding web services and microservices.

Introduction to real-time tools like Maven, GitHub, and Postman, which are vital for modern software development.

Course duration and schedule details, with classes from Monday to Friday at 7 PM IST, lasting up to one hour.

The importance of understanding programming concepts before delving into specific languages like Java.

Definition of a program as a collection of statements designed to perform specific tasks.

Explanation of comments in programming, their types, and their role in documenting code for better understanding and maintenance.

Introduction to keywords in programming languages, which are reserved words understood by the language.

Discussion on variables as memory spaces with names to store data, and their importance in programming.

Explanation of data types, which determine the type of data a variable can hold, such as integer, float, and string.

How to declare variables in programming, including the syntax and rules involved.

The concept of methods or functions in programming, which are sub-programs used to perform specific tasks.

Detailed walkthrough of defining a method, including its name, parameters, and the process of calling the method.

Understanding the return type of a method, which dictates the data type of the value returned by the method.

The difference between a method with a return type and a method with a void type, indicating whether a method returns a value or not.

Reiteration of the importance of grasping basic programming concepts before proceeding to Java technology.

Transcripts

play00:00

this conference will now be recorded

play00:05

so in the last class we have just seen

play00:07

the demo part of our course

play00:09

full stack Java

play00:12

so just have given the contents what we

play00:15

are going to discuss let me recap those

play00:17

contents here like initially we go with

play00:20

code Java even we call it as Java SC

play00:24

stands for standard edition

play00:30

the mean use of going with code Java is

play00:32

used to develop

play00:36

and alone

play00:39

or desktop applications

play00:43

to developer Standalone or a descriptive

play00:46

applications

play00:49

some of the examples of a discrete of

play00:51

applications are like a calculator

play00:53

notepad paint Microsoft but all this

play00:56

comes under desktop applications

play00:59

okay the next one is we go with the web

play01:02

Technologies

play01:05

even we call it as UI design or front

play01:08

end design

play01:09

here we go with the contents like HTML

play01:13

PSS

play01:15

JavaScript

play01:18

XML

play01:20

Json

play01:22

typescript

play01:25

and angular

play01:29

the next one Advanced Java

play01:33

even we call it as Java e stands for

play01:36

Enterprise Edition

play01:42

where it is used to develop

play01:47

web applications it's for web

play01:49

applications and the contents what we

play01:51

discuss over here is servlets and JSP

play01:55

ASP stands for Java server pages

play02:01

and extend very very important category

play02:03

that is Frameworks

play02:05

and here we are going to learn two

play02:07

important Frameworks one is hibernate

play02:09

framework

play02:11

and one more spring framework

play02:16

in framework

play02:17

if

play02:18

before we go to Spring framework when we

play02:21

discuss web services as we use this web

play02:24

services Concept in Spring framework and

play02:27

in this spring framework we'll be making

play02:29

use of the we'll be learning the models

play02:31

like spring core or bin module

play02:38

bring davo module

play02:41

where we discuss three sub models like

play02:44

spring jdbc

play02:52

okay

play02:53

in data module

play02:58

next one we go with the spring MVC

play03:01

module

play03:02

which is mainly used to develop web

play03:04

applications

play03:06

to develop web applications then even we

play03:10

discuss one more very very important one

play03:12

spring board module

play03:15

it will be going finally

play03:17

with

play03:20

rest module

play03:25

using springboard

play03:31

next one will be even going with micro

play03:33

services

play03:35

using springboard

play03:39

the next category is Real Time tools

play03:43

so where we will be learning some of the

play03:44

real-time tools like

play03:47

maven

play03:49

GitHub

play03:55

Postman like this

play03:58

okay the duration of our codes the

play04:01

duration of our course goes with God

play04:04

approximately 55 x maximum 55 x and the

play04:08

time of our class is Monday to Friday

play04:12

at 7 pm ist

play04:15

I Friday at 7 pm I stay in the class

play04:17

will go for maximum one hour

play04:20

okay and what are the go to meeting link

play04:23

you are having you can use the same link

play04:24

to join for this complete week

play04:27

right

play04:30

now

play04:32

the class is getting recorded that

play04:34

recordings will be shared to you after

play04:35

the class it's a regular process

play04:39

yeah any questions anyone up to your

play04:52

right

play04:56

so today let us move to the today's

play04:58

topic

play05:00

before we enter into any programming

play05:02

languages like C or C plus plus or

play05:04

java.net or python whatever it may be

play05:07

every programmer should have a basic

play05:10

idea on programming Concepts

play05:12

so if you are having some basic idea and

play05:14

programming Concepts entering into any

play05:16

programming language will be easy for us

play05:18

so the objective today is will be

play05:21

understanding the programming Concepts

play05:23

so that from the next class we can enter

play05:25

into Java technology very easily

play05:28

so today it is understand the

play05:31

programming Concepts

play05:37

uh

play05:40

before we enter into this what we are

play05:43

going to write is program so let us

play05:45

understand what we say program

play05:48

how to define a program is like a

play05:51

program

play05:52

is a collection of statements

play05:56

collection of statements used to do

play06:00

a specific task

play06:03

is it to do what a specific task we

play06:06

write some statements mainly use it to

play06:08

perform some tasks

play06:10

the examples of task like

play06:12

finding area of a rectangle

play06:16

finding total marks of his student

play06:18

finding net salary of an employee adding

play06:21

a book to the library

play06:23

depositing amount in the bank

play06:27

adding an item into the cart

play06:30

booking a movie ticket like this this

play06:32

all things are called as task to do that

play06:35

we have to write some statements that

play06:37

set of statements only with Yes program

play06:41

so when you are writing the program we

play06:43

make use of some of the concepts like

play06:45

the first one let us understand about

play06:47

comments

play06:50

let us understand about comments

play06:57

so

play06:58

what is this comment is like whenever we

play07:01

are writing a program

play07:03

your program should be understood by

play07:05

other people also other programmers are

play07:08

also will check our program and they

play07:10

will be elaborating our programmer they

play07:12

may add some more code to our program

play07:15

right

play07:18

now so what are the programs we write in

play07:21

order to make our program to be

play07:23

understoodable understandable by other

play07:25

programmers or even our self in feature

play07:27

we have to document that that

play07:29

documentation we do by using comments so

play07:33

you can say comment or use it

play07:36

comments are used to document a program

play07:41

to document a program and ignored by

play07:46

kept programming language

play07:50

by the programming language okay wearing

play07:54

two types of comments

play07:57

telling two types of comments

play07:59

they are

play08:01

single line comment

play08:04

and multi-line comment

play08:08

multiply comment so when we go for

play08:10

single line we use the symbol slash

play08:13

slash or multi-lane we use the symbol

play08:15

slash tuck and end with again star slash

play08:20

Tech example

play08:21

you can say slash slash to find area of

play08:25

a rectangle

play08:29

one more example for multi-line class

play08:32

star to find

play08:34

cross salary

play08:37

and net salary

play08:41

of an employee

play08:45

this is what multi-line comment for

play08:47

single end value slash slash slash star

play08:50

and end with second star slashes

play08:51

multiplayer this is mainly for what to

play08:54

document your program you are

play08:55

elaborating more what you are doing

play08:57

inside the program and this is ignored

play08:59

by the language

play09:03

the next one is keyword

play09:08

when you take any programming language

play09:10

like C C plus plus java.net python there

play09:13

will be some words which are understood

play09:15

by the language automatically

play09:17

those words only we call it as keywords

play09:20

those words only we say keywords so you

play09:23

can see a keyword

play09:25

is a result word

play09:29

or predefined but

play09:33

whose meaning

play09:35

is known to the

play09:37

language directly

play09:41

language will understand these words

play09:43

automatically

play09:44

some of the examples of keywords are

play09:46

like in

play09:49

float

play09:50

if

play09:51

else

play09:53

care

play09:55

while

play09:56

to

play09:57

per

play09:59

class

play10:00

public

play10:02

await like this these are some more some

play10:05

of the examples of events where many

play10:07

programming language supports

play10:10

that the next one is a variable

play10:15

the next one is what variables

play10:21

the meaning of variable is like

play10:25

the meaning of variable is

play10:32

whenever you want to store some data

play10:34

like example if I want to store

play10:42

I want to store like employee number we

play10:45

required some memory space if I want to

play10:48

store some employee number may require

play10:50

some memory space if you want to store

play10:53

something like salary we require some

play10:56

memory space if you want to store

play10:58

something like name may require some

play11:00

memory space to store the data the names

play11:03

what you are giving to the memory spaces

play11:05

to store the data these names only we

play11:08

call them as what variables

play11:11

these names only be called variable

play11:14

so how to define a variable is like a

play11:17

variable is an

play11:20

identifier

play11:23

which allocates

play11:25

which allocates some memory space

play11:30

allocation memory space

play11:33

so like examples you can say employee

play11:36

number

play11:38

student name

play11:42

a salary

play11:46

item price like this these are some of

play11:49

the examples of variable names

play11:53

the next 10 one more very very important

play11:56

one here is data type

play12:01

so the meaning of data type is like once

play12:04

we allocate memory space for variable

play12:06

like example h

play12:09

so when we say h what type of data we

play12:12

store in h like example 20 so a numeric

play12:15

value without a decimal point we call it

play12:18

as integer

play12:21

equal integer if we take like name

play12:24

so in name we generally store a value of

play12:27

some collection of characters collection

play12:29

of alphabets

play12:31

then we call it as what string we call

play12:34

string

play12:37

next one for example if you want to

play12:39

store something like height

play12:42

if you want to store something like

play12:44

height so in height we generally store

play12:46

something like 5.9 so a numeric value

play12:49

with a decimal point and we call it test

play12:51

float

play12:52

we call it as what float type so the

play12:55

meaning of data type is like once we

play12:57

allocate memory space for variable what

play13:00

type of dot you want to store in the

play13:02

allocated variable that only we call

play13:05

data type

play13:08

so you can define a data type like

play13:12

type of data

play13:15

a variable holds

play13:19

variable holes is called as

play13:22

data type

play13:25

the profit and available holes is called

play13:27

a spot data type

play13:32

some of the examples of data type like

play13:34

in

play13:36

there

play13:38

float string like this string means

play13:42

collection of characters

play13:46

collection of characters only makes a

play13:48

string

play13:51

so whatever I am discussing everything

play13:52

will be redised once again once we enter

play13:55

into the Java Basics so we'll be

play13:58

learning the Java syntaxes there

play14:02

the next important one is

play14:05

Declaration of variable

play14:10

Declaration of variable

play14:13

so whenever we want to store some data

play14:15

into the variable

play14:17

we need to allocate memory for it

play14:19

so in order to allocate memory space for

play14:22

variable we need to declare it so what

play14:25

is the meaning of Declaration is in

play14:27

order to

play14:29

allocate

play14:31

memory space

play14:33

path variable

play14:35

we need to

play14:37

declare the variable

play14:40

you need to declare the variables the

play14:42

syntax of declaring variable is the

play14:45

meaning of syntax is like rules of the

play14:49

language

play14:51

on the top here programming language

play14:53

like grammaticals so that syntax of

play14:56

declaring variable is we have to provide

play14:58

the data type then variables like

play15:01

variable one comma available to comma

play15:03

like that variable n

play15:06

most of the programming languages like C

play15:09

C plus plus java.net every statement we

play15:12

end with semicolon

play15:15

like example

play15:16

in say int a comma B so A and B are

play15:21

variables of type integer means in A and

play15:23

B we can store only integer values

play15:27

character C

play15:29

float f

play15:32

string name like this

play15:35

in order to allocate memory space for

play15:37

variables we have to declare the

play15:39

variable without declaring the variable

play15:41

we cannot use that variables in our

play15:43

program

play15:45

right

play15:46

clear everyone any questions obtained

play15:53

clear

play15:55

right

play16:02

no

play16:06

let us move to the next one this is the

play16:08

next and very very important event that

play16:10

is Method or function

play16:14

for the meanings method or function in

play16:17

Java we call it test method in CC plus

play16:20

plus we call it as function that's only

play16:21

the difference

play16:23

so how to define is a method is a sub

play16:27

program

play16:29

a Methodist but it is a sub program

play16:31

which is used

play16:33

to do a specific task

play16:36

a part of program is only amended

play16:40

like example

play16:43

like example

play16:45

we want to find area of a rectangle so

play16:48

in order to find area of a rectangle we

play16:50

are going to define a method like area

play16:53

rate

play16:55

we are going to define a method like

play16:57

area Vector so if you are having some

play16:59

basic idea on Excel also you might have

play17:01

used some functions in Excel like some

play17:03

average count those functions those only

play17:06

we call methods are function okay

play17:09

that now the task is what year we want

play17:13

to find what area of a rectangle then

play17:15

I'm going to define a method area right

play17:17

and here we have to end with parenthesis

play17:20

so when we see some word after that when

play17:23

we see parenthesis that means it is a

play17:27

then we go with open and close curly

play17:30

braces

play17:32

this is the way how method looks name of

play17:35

the method then parenthesis then open

play17:38

and close curly press

play17:40

that in order to find area of a

play17:43

rectangle what data do we require

play17:53

in order to find the area of a rectangle

play17:56

what data do we require what's the

play17:58

formula for area of rectangle

play18:01

length

play18:04

yeah lengthen bits and what's the

play18:06

formula length interpret will give area

play18:08

so what is the data required to perform

play18:10

area rate task length and breadth so

play18:13

that input what we require to perform

play18:15

this task that we have to pass in

play18:17

between this parenthesis like this

play18:20

intellin comma int directly

play18:24

right

play18:25

so this length and breadth are variables

play18:28

even we call them as arguments and we

play18:30

have to provide the data type before the

play18:31

variable

play18:33

okay then only it is going to allocate

play18:34

memory space for your variable so this

play18:37

length and breadth

play18:40

and convert are arguments

play18:44

or even be called parameters

play18:48

now now in order to find area of a

play18:51

rectangle I am taking a variable area

play18:53

and the formula is part length into

play18:55

breadth

play18:57

since we are using the variable area so

play19:00

to allocate memory for area we have to

play19:03

declare it so declare before using the

play19:05

variable

play19:07

now so what is the value of area it's

play19:10

going to multiply length and breadth now

play19:12

so this code whatever you are rating we

play19:15

call it as defining the method

play19:18

defining the method means we are writing

play19:21

the code inside the method now let us

play19:23

call the method

play19:25

calling the method

play19:28

whenever you want to call method we have

play19:30

to do like this area right and we have

play19:33

to pass the values 10 comma 5.

play19:35

now what is going to happen this 10 will

play19:37

come and store into length variable if I

play19:40

will commence store into relative

play19:42

variable

play19:43

then what will be the value of area now

play19:47

what's the value of area now

play19:49

t

play19:51

50 right the value of 80 is 50. this

play19:53

result whatever we got this result

play19:56

whatever we want we got this result we

play19:59

want to give it back to this method you

play20:01

want to give it back here how to give it

play20:03

back is

play20:04

by using the keyword written and we have

play20:07

to pass the name of the variable written

play20:09

area so this 50 the result will come and

play20:12

store into this method now and you can

play20:14

even store it into some other variable

play20:17

and print here

play20:20

if you print a what value it's going to

play20:22

print 50 for us so this is called as

play20:25

defining the method means writing the

play20:27

code inside the method this you are

play20:29

calling the method when you call the

play20:31

method we pass the values then what are

play20:34

the result we get that result if I want

play20:36

to give it back to the method we are to

play20:38

use what keyword written and give that

play20:40

value back that I am storing into a and

play20:43

when I print it we get 50.

play20:45

no

play20:47

this area whatever you are returning

play20:50

what is the data type of this area

play20:53

what is the data type of area variable

play20:59

and

play21:01

integer right what is the data type of

play21:03

area variable integer so before the

play21:05

method name we have to mention the data

play21:07

type what you are returning

play21:09

this whatever you are mentioning the

play21:12

data type before method name this we

play21:15

call it as a written type this word is

play21:17

important for me

play21:19

this is the main reason why I'm

play21:21

discussing this concept here the meaning

play21:23

of method written type

play21:28

so what are the value are going to

play21:29

written the value whatever you are

play21:31

giving outside of your method

play21:33

so what are the value or returning we

play21:35

have to mention the data type of that

play21:36

variable before the method name this

play21:39

only be called written type

play21:42

so what is the written type

play21:44

the written type of

play21:47

area estimated

play21:51

area direct method is integer

play21:58

if we take the same method

play22:01

if you take the same method

play22:03

but you are not I don't want to return

play22:06

the value of area outside I want to

play22:07

print over here only I want to print

play22:09

area here only so you are not using

play22:12

written keyword

play22:13

you are not using written keyword to

play22:15

written the value of your result I want

play22:18

to print over there only you want print

play22:20

here only then since you are not

play22:22

returning any value outside of your

play22:24

method then here we are taking as a

play22:26

keyword void

play22:28

that is a given what void void means no

play22:32

written type

play22:35

no written type so this wide body is

play22:38

important for us before we enter into

play22:40

Java

play22:42

so mainly to discuss about wide keyword

play22:45

only I have taken this concept called as

play22:47

method or function

play22:49

so don't worry on this too much now just

play22:52

a basic idea just remember the terms

play22:54

just remember the terms

play22:57

what we use in the programming languages

play22:59

like the meaning of

play23:02

comments

play23:03

the meaning of comments then the meaning

play23:06

of keywords

play23:08

the meaning of variables

play23:11

the meaning of data type

play23:13

how to declare the variable what is

play23:15

Method or function and how to define and

play23:17

the concept of written type

play23:19

so if you are not giving any value

play23:21

outside of your method then we have to

play23:23

provide the written type as what void

play23:25

World means no written type so this are

play23:29

the basic concepts required

play23:32

before we enter into Java

play23:36

however I am going to discuss all these

play23:39

Concepts once again so many times lot of

play23:41

example programs we are going to do by

play23:43

using all these Concepts so many

play23:45

examples

play23:46

so where I will be even giving

play23:48

assignments triggered to you to do the

play23:50

task everything I'll be taking care once

play23:52

we start with the basics part

play23:55

right

play23:57

any questions anymore

play24:02

no

play24:04

all right

play24:05

so in the next class I'll be entering

play24:07

into Java where I'm going to start off

play24:09

with Java introduction

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
JavaWeb DevelopmentEnterprise EditionFrameworksHibernateSpringWeb ServicesReal-Time ToolsProgramming ConceptsMethodology
Benötigen Sie eine Zusammenfassung auf Englisch?