Core Java With OCJP/SCJP:JVM Architecture Part- 4|| nead of customized classloader

preview_player
Показать описание
java
Basic Java Tutorial for beginners
Basic Java Programming for beginners
Core Java By Durga Sir
Core Java
Core Java Video Tutorials
Core Java Tutorial for beginners with examples
Core Java Tutorial
Core Java DURGASOFT
Durgasoft Core Java
Durgasoft Java
durga software solutions core java videos
durga software solutions java
How to learn java
How to learn java programming language for beginners
learn java
learn java programming for beginners
programming in java
understanding java
java application development tutorial
java beginner tutorial
java basics for beginners
java for beginners
java lessons
java lectures
java language tutorial for beginners
java programming tutorial
java programming for beginners
java tutorial for beginners
java tutorial
java tutorial by durga sir
====================================
Java tutorial by durga sir

Java 9 by durga sir

Java 1.8 Version New Features by Durga sir

Adv Java JDBC Tutorial by Durga sir

OCJA 1.8 Java SE 8 Programmer - I (1Z0 - 808 ) By Durga sir

Core Java by NagoorBabu sir

Advenced Java by Nagoorbabu sir

CoreJava by Ratan

Advanced Java jdbc by Ratan

Advjava tutorials - JSP by Ratan

Adv java servlets tutorial by ratan

Servlet and JSP Tutorial by anji reddy

Advanced Java Jdbc by Anjireddy

Hibernate byAnjireddy

Struts by Anjireddy

Spring by Mr.AnjiReddy

ADV JAVA by Naveen

Spring by Mr.Naveen

Hibernate by Mr. Naveen

Struts by Mr.Naveen
Рекомендации по теме
Комментарии
Автор

There are only 2 GOD's Of Java In India & Maybe Whole World. One is Ramesh Sr From LARA Tech Banglore & Other Is DURGA Sr From DurgaSoftwareSolution Hydrabad. Thanks For The Multiverse GOD Sri Hari Vishnu - He Inspired One Of The GOD To Give Free Education On Blessesd.

shubhamagarwal
Автор

Completed watching on Oct 31, 2024 at 11.05 PM :)

ranveervaghela
Автор

Helpful! Thank you so much, Durga Sir :)

AadityaKavthekar
Автор

Very Very Helpful content.. thank you thank you thank you so much sir

rockbrand
Автор

Various Memory Areas inside JVM - 52:07

ankitchauhan
Автор

If JVM is delegating the class loading responsibility to the any of the three class loaders which will loading the .class files from some path, then there must be a way to tell the JVM that the classes are updated and load the new updated files. But how will the problem is solved by extending the ClassLoader which just loads the .class files in a different way?

madhusudhanreddy
Автор

Sir, in organization we generally download java (jre and jvm) and run java class with and without updating. We don't write any customized class loaders but still we are seeing updated class file. But acc to this session, default class loader will not load updated class file and from java 1.0 we are able to run updated class file without writing any customized class loader. Please let me know if I am going in wrong direction.

nagasateeshdommety
Автор

any impact on the performance by this approach?

shankark
Автор

Default class loader : load .class file only once even though we are using multiple times.
After loading .class file if it is modified outside default class loader won't load updated version of class file because .class file already available in method area. Resolve the problem by defining our own customised class loader .
Customized Class loader : Advantage : we can control class loading mechanism based on our requirement. eg: we can load .class file separately every time so that updated version available to our program. It is the child class of java.lang.classloader

Define customized class loader
java.lang.classloader

//override the customclassloader method
public class custclassloader extends classloader{
public class loadclass(String name) throws classNotFoundException
{
check for update and load updated class file and return corresponding class file.

{
}
}
public class Dog
public static void main(String args[])
{
Dog d=new Dog()// default class loader
//customized class loader
customclassloader cl=new customclassloader();
cl.loadclass("Dog");

}
Mainly while going for application server and web application server we cann go for customized class loader.

Memory is required to store information related to class, variable, constructor etc..
Various Memory Area present in JVM:
1) Method
2) Heap
3) stack
4)PC register
5) Native method stack

1)Method Area:
total .class file will be dumped in method area
static variable and constant pool of class will be stored.
Method area can be accessed by multiple thread simultaneously . Hence, it is not thread safe

thorunitha
join shbcf.ru