Java fundamental questions
1. What is JVM?
JVM(Interprepter) - Abstract mashina bo’lib, U ByteCode ni mashina
ishlab turgan platforma tiliga o’tkazib beradi.
2.
What are the main components of JRE?
JRE ning asosiy tarkibi quyidagicha :
1. Java API
2. Class
Loader
3. Bytecode verifier(tekshiruvchi)
4. JVM
3.
What are the main activities (tasks) that are performed by JVM?
Loads code
● Verifies code
● Executes code
● Provides
runtime environment
4.
What is Java API?
Java API bu oldindan tuzilib qo’yilgan
package va java tilining
funksionalliklarini beradigan dasturlar to’plami
5.
What is Class Loader in Java?
Class loader JVM da bo’lib u .class toifasidagi byte codni xotiraga yuklaydi.
U yuklanishidan oldin Bytecode verifier dan o’tadi.
6.
What is Bytecode verifier?
U bytecode ni valid(yaroqli) va Javaning xavfsizlik
qoidalariga tushish yoki
tushmasligini tekshiradi. U kodda xotiraga noqonuni murojatlar bo’lmasligini
ta’minlab beradi. U kodni tekshirib bo’lgandan
keyin kodni JVM dagi Class
loaderga berib yuboradi.
7. What is Java library?
U dasturda ko’p asosiy vazifalarni bajarib beradigan dasturlar to’plami.
8. What is Bytecode in Java ?
Java Bytecode i bu yuqori optimizatlashtirilgan
JVM uchun buyruqlar
to’plami. JVM(Interprepter) bu buyruqlar orqali
uni mashina codiga otkazib
uni run qiladi.
9. What are the characteristics of Java Bytecode?
Javada bytecode ning asosiy 2
ta xarakteristikasi bor
- U protsessor bo’yicha mustaqil ya’ni u jvm o’natilgan
ixtiyoriy
protsessorda run bo’la oladi
- U operatsion sistemalarga bog’liq emas.
10.
Why compiled java code can execute on different