Interview question
Download 83.98 Kb. Pdf ko'rish
|
Interview question
- Bu sahifa navigatsiya:
- What are the functions (responsible tasks) for Java compiler
- What is the function of Java Interpreter
- Why do we need a class in Java
- What is the meaning of creating an object in Java
- What is the difference between reference variable and variable
computer machines?
Chunki barcha operatsion sistemalar uchun turli JVM lar mavjud. 11.What is the role of Execution engine in JVM? uning vazifasi bytecode ni run qiladi va operatsion sistemaga belgilangan buyruqlarni berib turadi va bu buyruqlar to’g’ridan to’g’ri CPU orqali run qilinadi. 12. What are the functions (responsible tasks) for Java compiler? Uning asosiy 3 ta vazifasi bor. - U source code dagi sintaksis xatolarni tekshiradi. - U JVM yordamida kodni bytecode ga o’zgatiradi - U agar ta’lab qilingan bo’lsa kodaga qo’shimcha kodlarni qo’shadi 13. What is the function of Java Interpreter? Uning javadagi asosiy vazifasi bytecode instructionlarini mashina kodiga qatorma-qator o’zgarishsiz uzatib turish 14. What is the difference between JDK and JRE? JDKda dastur tuzish uchun kerak bo’ladigan kutubxonalar va tool lar mavjud hamda unda compilyatsiya uchun kerak bo’ladigan compilyator va debugger mavjud. JRE bu kodni execude qilish uchun zarur kutubxonalar va JVM dan tashkil topgan. 15. What is JIT compiler? JIT- Just in Time compiler, u JVM ning bir qismi bo’lib u codning execute bo’lish tezligini oshirib beradi Basic Interview Questions based on Class and Object in Java 1. What is Object? Obyekt bu haqiqiy hayotdagi xossalarga va xususiyatlarga larga ega har qanday narsa. Boshqacha qilib aytganda u state, behavior va identityga ega bo’lgan jismga obyekt deymiz. 2. Why do we need a class in Java? Class mantiqan o’zaro bog’langan data fieldlari va methodlar gruppalarini bir joyga jamlash va keyinchalik ular ustida ishashga ishlatiladi. 3. What is the difference between class and object in Java? - Class bu user-defined data-type, Object esa data type ning instancesi(namunasi) - Class obyektning type ni belgilab beradi, Obyekt esa narsalarning maxsus namuna(instance)sini bildiradi - Classlar xotiradan joy olmaydi, Obyektlar oladi - Classlar xotirada bo’lmagani uchun ularni boshqarib bo’lmaydi, obyektlar esa boshqariladi 4. What is the meaning of creating an object in Java? Object yaratish xotiradan o’zgaruvchilarning ma’lumotlarini vaqtinchalik joylab turish uchun joy ajratish degani. 6. What is new in Java? new Javada maxsus keyword bo’lib u runtime da obyekt xotiraga joylaydi va uning referencesini qaytaradi. 7. What is the difference between reference variable and variable? Reference variable o’zida address saqlaydi, variable esa ma’lumot yoki qiymat saqlaydi |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling