🚂 RailGuruji
Programming languagesप्रोग्रामिंग भाषाएँ1 / 3

Javaजावा

Practise this page · 16 Qइस पेज का अभ्यास · 16 प्रश्न
Updated अद्यतन 07 Oct 2026
This pageयह पेज asked in 1 exam1 परीक्षा में पूछा गयाThis chapterयह अध्याय asked in 1 exam1 परीक्षा में पूछा गया
1
asked in 1 exam1 परीक्षा में पूछा गया
JAVA AND THE JVMजावा और जेवीएम
Java was developed at SUN MICROSYSTEMS and is now owned by Oracle. It is an OBJECT-ORIENTED programming language.
  • Your source code compiles to BYTECODE, which the JAVA VIRTUAL MACHINE, the JVM, executes
  • So the same program runs on any platform that has a JVM
  • Execution starts at the main() method: public static void main(String[] args)
  • The java.lang package is imported automatically into every program
So the JVM runs bytecode, and main() is where the program begins.
जावा सन माइक्रोसिस्टम्स में विकसित हुई और अब ओरेकल के स्वामित्व में है। यह एक ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग भाषा है।
  • आपका सोर्स कोड बाइटकोड में कंपाइल होता है, जिसे जावा वर्चुअल मशीन, अर्थात् जेवीएम, चलाती है
  • इसलिए वही प्रोग्राम हर उस प्लेटफॉर्म पर चलता है जिसमें जेवीएम हो
  • निष्पादन main() मेथड से शुरू होता है: public static void main(String[] args)
  • java.lang पैकेज हर प्रोग्राम में अपने आप इम्पोर्ट होता है
अर्थात् जेवीएम बाइटकोड चलाती है, और main() से प्रोग्राम शुरू होता है।
2
asked in 1 exam1 परीक्षा में पूछा गया
CLASSES, OBJECTS AND INHERITANCEक्लास, ऑब्जेक्ट और इनहेरिटेंस
These keywords are asked one at a time.
  • new creates an object; this refers to the current object
  • extends inherits a class. A class extends only one class
  • MULTIPLE INHERITANCE comes through INTERFACES, with implements
  • final declares a constant: a final variable cannot be given a new value
The AEDPM 2026 paper keys each of these. So you inherit with extends, and you get multiple inheritance only through interfaces.
ये कीवर्ड एक-एक करके पूछे जाते हैं।
  • new ऑब्जेक्ट बनाता है; this वर्तमान ऑब्जेक्ट को दर्शाता है
  • extends क्लास इनहेरिट करता है। एक क्लास केवल एक क्लास को extend करती है
  • मल्टिपल इनहेरिटेंस इंटरफेस से आता है, implements के साथ
  • final स्थिरांक घोषित करता है: final चर को नया मान नहीं दिया जा सकता
एईडीपीएम 2026 प्रश्नपत्र इनमें से हर एक को उत्तर मानता है। अर्थात् आप extends से इनहेरिट करते हैं, और मल्टिपल इनहेरिटेंस केवल इंटरफेस से पाते हैं।
3
asked in 1 exam1 परीक्षा में पूछा गया
TYPES, OPERATORS AND LOOPSटाइप, ऑपरेटर और लूप
  • Eight PRIMITIVE types: byte, short, int, long, float, double, char and boolean. STRING is a class, NOT a primitive
  • Array indexing starts at 0
  • && is the conditional AND: it checks the right operand only if the left one is true
  • do-while runs its body AT LEAST ONCE; while and for may not run at all
  • LAMBDA EXPRESSIONS came in JAVA 8
So when you are asked the type that is not primitive, write String; do-while is the loop that always runs once.
  • आठ प्रिमिटिव टाइप: byte, short, int, long, float, double, char और boolean। String एक क्लास है, प्रिमिटिव नहीं
  • ऐरे की गिनती 0 से शुरू होती है
  • && कंडीशनल एंड है: यह दायाँ ऑपरेंड तभी जाँचता है जब बायाँ सत्य हो
  • do-while अपना भाग कम से कम एक बार चलाता है; while और for बिल्कुल न भी चलें
  • लैम्ब्डा एक्सप्रेशन जावा 8 में आए
अर्थात् String वह टाइप है जो प्रिमिटिव नहीं, और do-while वह लूप है जो हमेशा एक बार चलता है।
4
asked in 1 exam1 परीक्षा में पूछा गया
MEMORYमेमोरी
THE HEAP AND METASPACEहीप और मेटास्पेस
  • Your objects live on the HEAP, which the GARBAGE COLLECTOR clears when they are no longer used
  • From Java 8, class metadata sits in METASPACE, in native memory, in place of the old PermGen
  • When Metaspace runs out, the JVM throws OutOfMemoryError: Metaspace
The AEDPM 2026 paper keys Metaspace as the memory area outside garbage collection that can throw OutOfMemoryError. So objects go on the heap, and class data goes to Metaspace.
  • आपके ऑब्जेक्ट हीप पर रहते हैं, जिसे गार्बेज कलेक्टर उपयोग न रहने पर साफ करता है
  • जावा 8 से क्लास का मेटाडेटा पुराने परमजेन के स्थान पर मेटास्पेस में, नेटिव मेमोरी में रहता है
  • मेटास्पेस भर जाने पर जेवीएम OutOfMemoryError: Metaspace देती है
एईडीपीएम 2026 प्रश्नपत्र मेटास्पेस को गार्बेज कलेक्शन से बाहर का वह क्षेत्र मानता है जो OutOfMemoryError दे सकता है। अर्थात् ऑब्जेक्ट हीप पर जाते हैं, और क्लास का डेटा मेटास्पेस में।
Report an error on this pageइस पेज में गलती बताएँ

Finished this page? Practise it now.यह पेज पूरा हुआ? अब इसका अभ्यास कीजिए।Finished this page? Practise its chapter.यह पेज पूरा हुआ? अब इसके अध्याय का अभ्यास कीजिए।

Only questions asked in real past papersकेवल पिछले वर्षों के प्रश्नपत्रों में पूछे गए प्रश्नOnly practice questions, none from a past paperकेवल अभ्यास प्रश्न, कोई भी पिछले प्रश्नपत्र से नहींPast-paper and practice questions togetherपिछले प्रश्नपत्रों के और अभ्यास प्रश्न, दोनों

or take the free Mock CBTया फ्री Mock CBT दें