What is Static and Non-Static in Java - CoreJava Part - 10

  Рет қаралды 126,848

Naveen AutomationLabs

Naveen AutomationLabs

7 жыл бұрын

Java Basics - Part 10 - Concept of Static Method and Variable In Java
Learn:
when to use static methods in java
static vs non static methods in Java
static and nonstatic class in java
difference between static and nonstatic class in java
difference between static and nonstatic member function in java
non static definition
static vs non static methods java performance
=======================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
~-~~-~~~-~~-~
Follow my Site/Blog: www.naveenautomationlabs.com
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
• Selenium & Automation ...
~-~~-~~~-~~-~ Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzfaq.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 36
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Static v/s Non-Static in Java! The most important topic for interview point of view. Subscribe and press the bell icon for more useful videos!
@121crys
@121crys 3 жыл бұрын
Thank you, Naveen, very easy to understand.
@roshnarashaik3368
@roshnarashaik3368 2 жыл бұрын
Really helpful and wonderful explanation..TYSM:)
@Sharmams4
@Sharmams4 8 ай бұрын
Subscribed and pressed the bell icon long back to never miss any of your videos. 🔔
@RahulJha-bu7cv
@RahulJha-bu7cv 5 жыл бұрын
Summary: To access static and non static inside each other, /* Static method inside static method: * 1. Directly * 2. Using class name. * 3. Using object but throw warning. * * Static Global Variable inside static method: * 1. Directly * 2. Using class name. * 3. Using object but throw warning. * * Static method inside non static method: * 1. Directly * 2. Using class name. * 3. Using object but throw warning. * * Static Global Variable inside non static method: * 1. Directly * 2. Using class name. * 3. Using object but throw warning. * * Non static method inside static method: * 1. Only using object * * Non Static global variable inside static method: * 1. Only using object * * Non static method inside non static method: * 1. Directly * 2. Using object * * Non Static global variable inside non static method: * 1. Directly * 2. Using object */
@mohdshafeeq7563
@mohdshafeeq7563 5 жыл бұрын
Superb .. very helpful.. All confusion cleared..Thanks!!
@ssk5433
@ssk5433 3 жыл бұрын
Are last 2 concepts correct ?
@snehakejriwal7340
@snehakejriwal7340 3 жыл бұрын
@@ssk5433 same . Last 2 concepts are wrong. non static method inside non static method 1. directly Non static global variable inside non static method 1. directly.
@ramakrishnants7826
@ramakrishnants7826 4 жыл бұрын
Hi Naveen, i am a functional manual tester with 12 years experience. I am studying Java for the first time to lean selenium. Your videos are very easy to understand. Thanks a lot for your time.
@SourabhPrajapatTheVlogger
@SourabhPrajapatTheVlogger 3 жыл бұрын
i have one query ramakrishna
@BhardwajFamily1
@BhardwajFamily1 5 жыл бұрын
Hi Naveen,Can you please explain how we are deciding we need to create static or non static, like what is the advantage for creating static, in this video I just came to know that how we have to access the variable and how we can call methods, on which parameter are deciding for static and non static.
5 жыл бұрын
Super helpful, Naveen!!
@NISHITRANJANSAHOO
@NISHITRANJANSAHOO 3 жыл бұрын
Static methods can be accessed in main by using object reference variable . So this is there in java for allowing backward compatibility but is not recommended as best practice hence intelligent IDEs like Eclipse will show warning sign when this is done.@Naveen Sir
@shababe2243
@shababe2243 4 жыл бұрын
Such an amazing explanation, Thank you thank you
@ankitachipkar4130
@ankitachipkar4130 2 жыл бұрын
Hi Naveen thank you for making this so easy
@Ajit-kd9oi
@Ajit-kd9oi 6 жыл бұрын
Awesome video Naveen. Well explained as always. Here's a question, I got.. Static method surely helps save memory as no object needed to call, isn't it ?? If this is so, can't we use the static method all over the java program?
@cloudskills333
@cloudskills333 4 жыл бұрын
very very helpful sir , Thank you very much
@rathanluke1683
@rathanluke1683 3 жыл бұрын
perfect man thank you
@shwetaadhikari7403
@shwetaadhikari7403 6 жыл бұрын
Plz explain all access modifiers
@urzaelectronics4185
@urzaelectronics4185 5 жыл бұрын
Hi naveen, i have a question. Can we use the values of static variables in objects of that class.suppose i make 3 oblects and wants to have the value of x which is static and y which is non static...can we call these by 2 by obj.x and simply obj.y.and i value of y would be equally shared in all objects or what?
@Monica-cq2hr
@Monica-cq2hr 2 жыл бұрын
amazing...tqsm
@nagarjuna4234
@nagarjuna4234 2 жыл бұрын
Good one
@karthikbabu8342
@karthikbabu8342 4 жыл бұрын
Helpful thala
@victorvaldez6019
@victorvaldez6019 5 жыл бұрын
can static methods from other methods also be called directly in the main?
@thirupathireddyanthannagar7403
@thirupathireddyanthannagar7403 2 жыл бұрын
Expecting videos on access modifiers
@amitpuranik2435
@amitpuranik2435 3 жыл бұрын
Quick question. What is difference between global variable and instance variable? Are both same? Also what is class variable ?
@MaknunKhan
@MaknunKhan 2 жыл бұрын
Thanks a lot
@devjewel8345
@devjewel8345 5 жыл бұрын
All clear! step by step going ahead...
@bhaskarvardhamana836
@bhaskarvardhamana836 Жыл бұрын
nice
@harishchaudhari9681
@harishchaudhari9681 3 жыл бұрын
but sir google said "non-static methods can access any static method and static variable also, without using the object of the class". how???
@DiyaSanviAtrocities
@DiyaSanviAtrocities 4 жыл бұрын
letters (program what you write) are not visible as in the previous sessions. all previous 8 sessions were clear. Could you please see, if that can be changed.
@basbakaiti6405
@basbakaiti6405 3 жыл бұрын
can class be static in JAVA. Can we create object of static class. if yes then how?
@rajeshrijadhav1446
@rajeshrijadhav1446 2 жыл бұрын
We can access static methods with obj reference
@satyamsingh-mh8fp
@satyamsingh-mh8fp 2 жыл бұрын
Hi Naveen, I have one question? public static void m1() { s.o.pln("ram") int i=10; } p.s.v.m(String[] arg) { //my question is->kissi bhi static method ke value ko main method me call kaise kru. Apne bola static method ko do tarike se call kr skkte hai 1.directly 2.using class name. but jab maine dono tarika use kiya to usme bs "ram" print hua. Int ki value print hi nai ho rhi. usko kaise print kre. Hope you understand my question. Please help me ASAP. thanks in advance. }
@deepikaragunathan
@deepikaragunathan 5 жыл бұрын
Hey Naveen. Could you please extend this video n say if we can make a class static ? will that be instantiated ?
@stranger2k
@stranger2k 4 жыл бұрын
Java will always take argument from string class.
Stack vs Heap Memory - Java Memory Management (Pointers and dynamic memory)
30:55
Wrapper Classes In Java - Core Java - Part -11
12:15
Naveen AutomationLabs
Рет қаралды 100 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 56 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 27 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,8 МЛН
Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial
11:29
#4.6 Java Tutorial | Static Keyword
12:20
Telusko
Рет қаралды 449 М.
Exception Handling in Java
59:14
Naveen AutomationLabs
Рет қаралды 65 М.
Static Methods in Java (Hindi) || Static Keyword in Java
16:40
Smart Programming
Рет қаралды 234 М.
Set and HashSet in Java - Full Tutorial
20:43
Coding with John
Рет қаралды 203 М.
What is Method and Method Overloading in Java
43:18
Naveen AutomationLabs
Рет қаралды 23 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,8 МЛН
Сколько реально стоит ПК Величайшего?
0:37
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 12 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 32 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 6 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 584 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 8 МЛН