Lecture 12 Access Modifiers in Java Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Like, Comments, Share and SUBSCRIBE

ความคิดเห็น • 224

  • @AbhishekSingh-tp5pv
    @AbhishekSingh-tp5pv 4 ปีที่แล้ว +20

    Sir, will you please make another video on the access modifier where you explain this graphically bcs i am not able to imagine a practical use of this.

  • @SmartProgramming
    @SmartProgramming 6 ปีที่แล้ว +7

    clearly explained, nice one sir, thanks

  • @anilkushwahaji5788
    @anilkushwahaji5788 8 ปีที่แล้ว +27

    sir sach mai aap nai jo concept clear kiya hai wo koi nahi kar sakha,sir aap to concept clear kar wathe ho, very nice sir

    • @bhagwanti9649
      @bhagwanti9649 6 ปีที่แล้ว +1

      anil kushwahaji acha

    • @ykgaming2166
      @ykgaming2166 4 ปีที่แล้ว

      Hm concept is very clear..

  • @prakashjhad1044
    @prakashjhad1044 4 ปีที่แล้ว +7

    Tq sir I have one doubt can we watch this tutorial in 2020 for learning purpose ?

    • @ronaknavadia527
      @ronaknavadia527 4 ปีที่แล้ว +4

      yes you can , it will be very much useful if you are beginner in java or an object oriented programming language

  • @karanjotsingh8523
    @karanjotsingh8523 ปีที่แล้ว +2

    Sir kl ppr hai phone to utha lo doubt hai bohot important hai nhi to mai drop le lunga chat se

  • @ManishSharma-mb3ct
    @ManishSharma-mb3ct 8 ปีที่แล้ว +8

    sir,if we do not declare any class PUBLIC in a program,then what should be name of that java file...i mean java file name will be based on which class or is it necessary to declare a class Public in any program

    • @javabysaurabhshuklasir3459
      @javabysaurabhshuklasir3459  8 ปีที่แล้ว +2

      +Manish Sharma Name the file same as the name of the class containing main function

    • @rahuljaiswal9379
      @rahuljaiswal9379 8 ปีที่แล้ว +2

      dat wont b executed

    • @lxkakkarot3689
      @lxkakkarot3689 7 ปีที่แล้ว

      no it is nt neccessary if it is nt public it is default nd den u can save it with any name it wil complie too nd it eil run too normally but in future wen u want to access dat file in further program u can face error .. but if it is nt public dont write anythng save it with anyname ... but it is believed to be cnventional to save the file name as of class name

    • @anujsinghsomvanshi3385
      @anujsinghsomvanshi3385 7 ปีที่แล้ว

      it will execute,but not run

    • @bhagwanti9649
      @bhagwanti9649 6 ปีที่แล้ว

      kumar vishwesh main function is imp. In every program.

  • @technicalvishu568
    @technicalvishu568 4 ปีที่แล้ว +1

    Sir package ko bin folder me create nhi kr skte kya because maine path change nhi kiya h and mera package create nhi ho rha nd ~d bhi work nhi kr rha help me sir please

  • @afaquejaya2524
    @afaquejaya2524 4 ปีที่แล้ว +5

    Sound quality is low

  • @Playlist-cj9ct
    @Playlist-cj9ct 3 ปีที่แล้ว +4

    The protected specifier allows access by all subclasses of the class in question, whatever package they reside in, as well as to other code in the same package. The default specifier allows access by other code in the same package, but not by code that is in subclasses residing in different packages.

    • @UmairAli
      @UmairAli 2 ปีที่แล้ว

      wohi cheez muskill words me sumjha di ? :v so sir ne asan sumjai ha

  • @abhinay651
    @abhinay651 5 ปีที่แล้ว +4

    sir in protected access modifier what is mean by child class from other package ? :)

    • @trailerworld3686
      @trailerworld3686 4 ปีที่แล้ว

      if protected member class is inherited in other class them it accessible there also

  • @anujkesarwani2075
    @anujkesarwani2075 4 ปีที่แล้ว +1

    Plzzz Share your PPT sir.....

  • @zamazaidi5166
    @zamazaidi5166 4 ปีที่แล้ว +3

    7:38
    very useful sir
    thanks sir

  • @ajaygurjar1325
    @ajaygurjar1325 4 ปีที่แล้ว +1

    kasa ma java ki ek ek chez sa parfact ho jauga aur kitna time lag jayga muja isma perfact hona ma,ma roj bhut hours isko stydy kar ta hu lekin samj nahi aa rahi hai/plese help

  • @arpitasarkar2721
    @arpitasarkar2721 5 ปีที่แล้ว +1

    what is child class of another package?

  • @samijain3475
    @samijain3475 5 ปีที่แล้ว +2

    Sir it is humble request we need some programming example on protected member please upload the video because it shows error in case of protected

  • @premrauth8416
    @premrauth8416 4 ปีที่แล้ว +1

    Thankyou sir

  • @40_kamlesh_kumar_agarwal39
    @40_kamlesh_kumar_agarwal39 2 ปีที่แล้ว +1

    6:50 important

  • @arjunsuri2899
    @arjunsuri2899 8 ปีที่แล้ว +2

    sir,could you please refer me a book on java which contains lots of programming questions and not theory?Sir you are an excellent teacher and keep up the good work .

  • @03_abhishekchoubey42
    @03_abhishekchoubey42 3 ปีที่แล้ว +1

    Sir can you plz tell me what is java.exc 🥺

  • @adarshverma3372
    @adarshverma3372 5 ปีที่แล้ว +1

    sir why we have only one public class in our java program?

  • @Vhagar__
    @Vhagar__ 7 ปีที่แล้ว +1

    what is friend access modifier?

  • @anupamr437
    @anupamr437 หลายเดือนก่อน

    1. Outer class can be either public or default
    2. Inner class can be all 4 types
    3. Each .java file can have only 1 public outer class, name of the file shud be the class name

  • @ajaygurjar1325
    @ajaygurjar1325 4 ปีที่แล้ว +1

    Hello sir I am Ajaykumar ,sir ma java and android dono ko he samjna chata hu aur muja ek acha devloper bna chata hu,kirpya kar muja margdarsak da ki ma java coding samj saku aur ek acha devloper ban saku/

  • @Advocate_Parikh
    @Advocate_Parikh 7 ปีที่แล้ว

    aap ne to kaha tha ki ek hi class me 2 public nahi ho sakate............?????????????

  • @satyambhardwaj5778
    @satyambhardwaj5778 8 ปีที่แล้ว +3

    i am able to create and work on all specifiers except Protected. Whenever I try to make a class protected in a package It raises an error saying "Modifier protected Not allowed here". Look into it sir.

    • @hamdanali631
      @hamdanali631 7 ปีที่แล้ว +2

      May i know bro which class you used to make protected?
      Main class? inner class? or a child class?
      (Main class can only eighter public or default..)

  • @preetimishra784
    @preetimishra784 5 ปีที่แล้ว +1

    Sir what is a use of void show ,void main,void displays

    • @firstsecond2079
      @firstsecond2079 5 ปีที่แล้ว

      Main show and display all are the names of the methods/functions which are random
      You can use any name instead of these names while making methods
      And void is the data type for which there is no return value means the program will not return any value after executing the program
      For example if we put int instead of void then the program will return some integer value
      In the same way if we put string or other data type then it will return some value according to the given data type but if you put void then there will be no return value

  • @codelearner419
    @codelearner419 3 ปีที่แล้ว +1

    thank u sir . it is really very interesting topic...

  • @sukeshgupta764
    @sukeshgupta764 6 ปีที่แล้ว +1

    Thank u very much sir, your video is very helpfull to all of us

  • @vipinsharmauk
    @vipinsharmauk 6 ปีที่แล้ว +1

    sir required some more elaboration with some good example for these access modifiers

  • @Mukendra_Kumar
    @Mukendra_Kumar 4 หลายเดือนก่อน

    Sir you said : at 7:30 2nd point "Name of the java file must be same as the name of the public class" . ye to sahi hai
    Lekin ek hi pakage me to name same nhi rakh sakte hai n ?

  • @AbhishekRana-pd5xm
    @AbhishekRana-pd5xm 7 ปีที่แล้ว +1

    Do you have tutorials for java with eclipse or netbeans?

  • @mohammedqhuram6901
    @mohammedqhuram6901 5 ปีที่แล้ว +1

    WOW just like it.suggest u to teach new technologies

  • @alkagupta7120
    @alkagupta7120 8 ปีที่แล้ว +2

    sir scanner class ka lecture video ni h?

  • @mukeshkumar-zy9si
    @mukeshkumar-zy9si 7 ปีที่แล้ว +2

    Why can we not have more than one PUBLIC class in one java file?

    • @moin-katariya
      @moin-katariya 5 ปีที่แล้ว

      This is because later we can't confuse the JVM as to which class is to be its initial class, because only one public class with the public static void main(String args[]) is the initial class for JVM.

  • @snehabaser3155
    @snehabaser3155 4 ปีที่แล้ว +1

    Why in 1 file only 1 public class is allowed?

    • @nitinhirve7854
      @nitinhirve7854 3 ปีที่แล้ว

      Java compiler search main() function in public class, if there are 2 public classes it will be conflicting for compiler and hence compiler will through error message "main() file can't found."

  • @sauravkanojia8317
    @sauravkanojia8317 3 ปีที่แล้ว

    Hi Sir can u explain me please all the members private public and protected and default

  • @Dilkhushkumar-if2yk
    @Dilkhushkumar-if2yk 8 หลายเดือนก่อน

    Night 1:52am complete this video

  • @vinaypratap620
    @vinaypratap620 4 ปีที่แล้ว +1

    Anyone here from NIT

  • @NitinKumar-bw5hn
    @NitinKumar-bw5hn 2 ปีที่แล้ว

    Im watching this video's in 2022..

  • @WrestlingBattle
    @WrestlingBattle 6 ปีที่แล้ว

    What is child class?

    • @akashdeep3439
      @akashdeep3439 6 ปีที่แล้ว +1

      IT MEANS THE CLASS WHICH INHERIT THE OTHER CLASS IS CHILD CLASS

  • @ShubhamKumar-rt8nb
    @ShubhamKumar-rt8nb 5 ปีที่แล้ว +1

    sir your lectures are the best to learn any programming language

  • @Satyamsingh-fw4mh
    @Satyamsingh-fw4mh 6 ปีที่แล้ว +1

    difference between protected and default class?????

    • @lavishgarg8616
      @lavishgarg8616 5 ปีที่แล้ว

      only difference is that for protected one the members could be accessed by child class of other package also

  • @ankitaverma2271
    @ankitaverma2271 4 ปีที่แล้ว +1

    It helps alot to us!!!

  • @dakshsaxena4298
    @dakshsaxena4298 3 ปีที่แล้ว +1

    sir apki mehnat aur lagan apne students ko pdhane vali srhaniye h . And you are doing a very good work and helping student to learn coding at free. Wow

  • @WrestlingBattle
    @WrestlingBattle 6 ปีที่แล้ว

    This is really a nice video

  • @RitikMaheshwari
    @RitikMaheshwari 7 ปีที่แล้ว +1

    thank you sir for your helpfull tutorial, but i have few doubts regarding this tutorial-
    1) What is CHILD packages?
    2) Can we access the public variable directly from other classes?

    • @akashdeep3439
      @akashdeep3439 6 ปีที่แล้ว

      THERE IS NO ANY CONCEPT OF CHILD PACKAGE. IT IS CHILD CLASS.
      IT MEANS THE CLASS WHICH INHERIT THE OTHER CLASS IS CHILD CLASS

  • @knowledgeforyoustudent
    @knowledgeforyoustudent 6 ปีที่แล้ว

    sir please that which access modifier can written with child class,,,,,,,,,?

  • @mohammadarsh9342
    @mohammadarsh9342 2 ปีที่แล้ว

    sir i think inhertiance is missing in that

  • @sahilsaibaodiavlogs
    @sahilsaibaodiavlogs 4 ปีที่แล้ว

    Sir hum ek hi program main ek se jyada package use kar sakte hai ya nhi ??

  • @Amitverma-gn4zm
    @Amitverma-gn4zm 4 ปีที่แล้ว

    Sir happy number kya hota hai java me iska program bta dijiye jaldi reply kr dena sir thank you sir

  • @PakistaniMaterial
    @PakistaniMaterial 6 ปีที่แล้ว

    Sir Can We Make Child Classes of Default classes ?

  • @hostingvosting8162
    @hostingvosting8162 2 ปีที่แล้ว

    Awesome Video sir

  • @mr.unknown0815
    @mr.unknown0815 3 ปีที่แล้ว

    Thanks a lot ☺️

  • @rowland138
    @rowland138 3 ปีที่แล้ว

    Falguni Pathak man big fan❤️

  • @purnimadwivedi1645
    @purnimadwivedi1645 3 ปีที่แล้ว

    Plz reply sir

  • @bareetsingh
    @bareetsingh 4 ปีที่แล้ว

    Thanx Sir

  • @sofiamyfirstbook3988
    @sofiamyfirstbook3988 2 ปีที่แล้ว

    Very good

  • @PrinceAgrawal1
    @PrinceAgrawal1 5 ปีที่แล้ว

    Sir ye child class Kya hoti hai

  • @meenarawaani3669
    @meenarawaani3669 6 ปีที่แล้ว

    I want to need jvm architecture .....this topic is very confusion

  • @RajKumar-sq2cj
    @RajKumar-sq2cj 3 ปีที่แล้ว

    Sir mera to java program hi ni chlra

  • @shubhambaheti9556
    @shubhambaheti9556 6 ปีที่แล้ว

    I'm not able to understand what is the difference between private and default??

  • @Anonymous-cb6by
    @Anonymous-cb6by 3 ปีที่แล้ว

    noob : use vs code
    pro: use intelliJ
    legend : notepad is enough 😎

  • @sanamirzapatel7080
    @sanamirzapatel7080 5 ปีที่แล้ว

    Sir I have download the jdk kit but when I run the program cmd prompt does not recognise the Java compiler what should I do please give me reply

  • @kanhaiyaprajapati7814
    @kanhaiyaprajapati7814 6 ปีที่แล้ว

    Sir i m using Linux ...and there are terminal instead of CMD...So how to run in Linux...

  • @riyamandal2166
    @riyamandal2166 7 ปีที่แล้ว

    what is meant by "child class from other package"??

  • @allankumar7552
    @allankumar7552 6 ปีที่แล้ว

    sir we cannot be included public of both classes i mean if i make class after making main class we have to include one public class.

  • @hiteshjindal7917
    @hiteshjindal7917 7 ปีที่แล้ว +1

    child class kaise acces kregi parent class ke protected ko?

    • @akashdeep3439
      @akashdeep3439 6 ปีที่แล้ว

      CHILD CLASS OF OTHER PACKAGE CAN ACCESS THE PROTECTED CLASS.

  • @biplabghosh4219
    @biplabghosh4219 7 ปีที่แล้ว

    Sir we have to write main function in both package or in one package only for import ??

  • @prathameshchavhan6892
    @prathameshchavhan6892 6 ปีที่แล้ว

    What is difference between public and default ??

  • @imranansari3178
    @imranansari3178 4 ปีที่แล้ว

    Sir aapki website pe jo courses ki videos h wo accessable ni h
    How I can access those videos?

  • @suhailchouhan6467
    @suhailchouhan6467 6 ปีที่แล้ว

    Sir if We make any Class Default then What is the use of the Default Class can you please explain it..

  • @harshitvarshney512
    @harshitvarshney512 5 ปีที่แล้ว

    Default or protected mei difference kya hai?

  • @beloved.937
    @beloved.937 7 ปีที่แล้ว

    plz update example of public, private n protected

  • @aman___004
    @aman___004 7 ปีที่แล้ว

    sir what is meant by "child class from other package "?

  • @akashrathor9863
    @akashrathor9863 6 ปีที่แล้ว

    sir, suppose we have 2 packages . pack1 and pack2 .
    pack1 have a public class which have some inner classes ..
    then can we access those inner classes of from the pack2 classes????

  • @21arora
    @21arora 2 ปีที่แล้ว

    C++ ना पड़ा हो तो ?

  • @luckyentertainment186
    @luckyentertainment186 6 ปีที่แล้ว

    Nice explanation but Sir explain with an example that vl be more helpful fr us

  • @rituparnamodak7677
    @rituparnamodak7677 5 ปีที่แล้ว

    very nice explanation sir,you are pro sir

  • @darshitvachhani9790
    @darshitvachhani9790 5 ปีที่แล้ว

    Is this lecture series ohk if I am using JDK 11??

  • @nikhilkashyap702
    @nikhilkashyap702 3 ปีที่แล้ว

    What about using final abstract in outer class

  • @KANGLEIACTION
    @KANGLEIACTION 5 ปีที่แล้ว

    Thank you. Sir. All videos are nice..
    I regain my hope to become a profesional java.. through online course...

  • @krunalkp1032
    @krunalkp1032 7 ปีที่แล้ว

    Wow sir ur method is better then any sir

  • @amitmishra-ik9ox
    @amitmishra-ik9ox 7 ปีที่แล้ว

    sir please upload 1 video with example

  • @ankitaverma2271
    @ankitaverma2271 4 ปีที่แล้ว

    Sir your videos are too amazing ...

  • @mayursarode3512
    @mayursarode3512 4 ปีที่แล้ว

    Sir apne kha ki public class ek hi bar bna skte h dusre or apne btaya ki inner side me public ,private,protector,default sbhi use kr skte h yh kese ho skta h

  • @RajatKumar-hk6ff
    @RajatKumar-hk6ff 7 ปีที่แล้ว

    as mentioned by you sir we can have just one public class in the java program................... can we make a inner class as public of public outer class???

  • @King-lr2md
    @King-lr2md 6 ปีที่แล้ว

    inner class main problem ho raha hain sir.... inner class main public,private,protected, likhne se kiya hoga ooh baat to aap ne explain hi nehi kiya....

  • @shankarshankar5298
    @shankarshankar5298 4 ปีที่แล้ว

    great sir i am fan of you sir thank u sir

  • @krunalkp1032
    @krunalkp1032 6 ปีที่แล้ว

    sir is video me aapne example nahi diya mene try kiya example banana ki par nahi ban .. plz is video se related example ka video upload kijie

  • @noormuhammad8569
    @noormuhammad8569 5 ปีที่แล้ว

    sir G lecture download nai hoty kio ap ne privacy lagi ha

  • @pujasharma1487
    @pujasharma1487 2 ปีที่แล้ว

    Sir you are best teacher

  • @farazahmad7928
    @farazahmad7928 7 ปีที่แล้ว

    sir plz mujha protected class accesss ki example da skta han???jaisa ka ap packege ki baat kar raha han

  • @ee_e_46rudranarayansubudhi93
    @ee_e_46rudranarayansubudhi93 4 ปีที่แล้ว

    Sir, What is child class?

  • @NeetuKumari-ro3wk
    @NeetuKumari-ro3wk 6 ปีที่แล้ว

    Sir what is child class??

    • @nitinhirve7854
      @nitinhirve7854 6 ปีที่แล้ว

      Neetu Kumari child class is nothng bt any class in ur program rather than public class.....where inner classe are the class inside the public class...

  • @nirmalyapratap9927
    @nirmalyapratap9927 8 ปีที่แล้ว

    sir is video or bhi thoda acha se explan karke upload kar dijiya plz bahat dout a raha hai thoda picture bana le represent karne se bahat acha rehe ta plz sir iske upar ak video upload ki jiye plzzz

  • @shashankmishra4079
    @shashankmishra4079 5 ปีที่แล้ว

    Sir. What is child class?

  • @swetamalhotra7036
    @swetamalhotra7036 3 ปีที่แล้ว

    Hello sir,
    Can you please elaborate more the concept of access modifier with example??

    • @arnabdeb1486
      @arnabdeb1486 3 ปีที่แล้ว

      www.geeksforgeeks.org/access-modifiers-java/

  • @upmabaranwal5672
    @upmabaranwal5672 7 ปีที่แล้ว

    very helpful video sir

  • @rishabhagarwal3285
    @rishabhagarwal3285 7 ปีที่แล้ว

    Sir What is child class??.. i don't understand (protected class can access child class of another package)

    • @javabysaurabhshuklasir3459
      @javabysaurabhshuklasir3459  7 ปีที่แล้ว +1

      I guess you never learnt C++, visit www.mysirg.com
      Watch lectures in a sequence, all are related

  • @purnimadwivedi1645
    @purnimadwivedi1645 3 ปีที่แล้ว

    How many modifiers in java?
    4
    Kay ye sahi hai