Javascript Basic "A2" 1 / 50 Interface implement करते समय कौन सा keyword use होता है? extends implements inherit interface 2 / 50 Interface में variables किस type के होते हैं by default? private protected public static final default 3 / 50 Abstract method किसमें declare होता है? Interface या Abstract class Concrete class Final class None 4 / 50 Java में abstract class का main use क्या है? Object create करने के लिए Inheritance provide करने के लिए Method override prevent करने के लिए Exception handle करने के लिए 5 / 50 Illegal argument pass करने पर कौन सा exception आता है? IllegalArgumentException NullPointerException IOException ClassCastException 6 / 50 Primitive data types को stream में read/write करने के लिए कौन सा class use होता है? DataInputStream / DataOutputStream FileReader / FileWriter BufferedReader / BufferedWriter Scanner / PrintWriter 7 / 50 Byte-based input के लिए कौन सा class use होता है? FileInputStream FileReader BufferedReader Scanner 8 / 50 Character-based output के लिए कौन सा class use होता है? FileWriter FileOutputStream DataOutputStream ObjectOutputStream 9 / 50 Scanner class primitive types के लिए कौन सा method provide करती है? nextInt() nextDouble() nextBoolean() सभी ऊपर वाले 10 / 50 Compile-time पर check नहीं होने वाला exception कौन सा है? IOException SQLException ArithmeticExceptio n FileNotFoundException 11 / 50 Try-with-resources का main benefit क्या है? Automatically resources close हो जाते हैं Java 7 में introduce हुआ Sirf AutoCloseable objects के साथ काम करता है सभी ऊपर वाले 12 / 50 Invalid number format होने पर कौन सा exception आता है? NumberFormatException IOException ArrayIndexOutOfBoundsException IllegalArgumentException 13 / 50 Illegal type casting होने पर कौन सा exception आता है? ClassCastException IOException ArithmeticException NullPointerException 14 / 50 Binary data write करने के लिए कौन सा stream use होता है? FileOutputStream FileWriter BufferedWriter PrintWriter 15 / 50 Binary data read करने के लिए कौन सा stream use होता है? FileInputStream FileReader BufferedReader Scanner 16 / 50 Stack trace print करने के लिए कौन सा method use होता है? getCause() toString() printStackTrace() getMessage() 17 / 50 Exception का description return करने के लिए कौन सा method use होता है? getMessage() getCause() toString() printStackTrace() 18 / 50 Method declare करते समय exception specify करने के लिए कौन सा keyword use होता है? throw throws try catch 19 / 50 Exception throw करने के लिए कौन सा keyword use होता है? throw catch try throws 20 / 50 File में data write करने के लिए कौन सा class use होता है? FileWriter PrintWriter BufferedWriter सभी ऊपर वाले 21 / 50 File में text read करने के लिए कौन सा method use होता है? read() readLine() nextLine() getText() 22 / 50 File read करने के लिए कौन सा class use होता है? FileReader FileInputStream Scanner सभी ऊपर वाले 23 / 50 Encapsulation का मतलब क्या है? Data और methods को एक unit में bind करना (class) Exception handling Thread control Object cloning 24 / 50 Unchecked exception का example क्या है? IOException SQLException FileNotFoundException NullPointerException 25 / 50 Compile-time पर check नहीं होने वाला exception कौन सा है? IOException SQLException ArithmeticException FileNotFoundException 26 / 50 Try-catch-finally में कौन सा block हमेशा execute होता है? throw try catch finally 27 / 50 Reusability को support करने के लिए कौन सा Java feature use होता है? Encapsulation Polymorphism Inheritance Abstraction 28 / 50 Superclass constructor call करने के लिए कौन सा keyword use होता है? super this parent base 29 / 50 Class में कितने constructors हो सकते हैं? 1 Multiple (different parameters) None 2 only 30 / 50 Method overloading किस feature को support करता है? Runtime polymorphism Compile-time polymorphism Abstraction Encapsulation 31 / 50 Autoboxing का मतलब क्या है? Automatic conversion primitive → wrapper type Manual conversion wrapper → primitive Thread creation Object cloning 32 / 50 Wrapper classes किसलिए use होती हैं? Primitive types को object में convert करने के लिए Thread control के लिए Garbage collection के लिए Exception handling के लिए 33 / 50 "==" और ".equals()" में difference क्या है? दोनों same हैं .equals() reference compare करता है, == content compare करता है == reference compare करता है, .equals() content compare करता है None 34 / 50 Class को subclass होने से रोकने के लिए कौन सा keyword use होता है? final static abstract private 35 / 50 Interface में variables by default किस type के होते हैं? default protected public static final private 36 / 50 Object garbage collect होने से पहले कौन सा method call होता है? finalize() constructor() main() delete() 37 / 50 Thread को forcefully terminate करने का best तरीका क्या है? stop() method Use flag / interrupt destroy() kill() 38 / 50 Thread को sleep कराने के लिए कौन सा method use होता है? pause() delay() sleep() wait() 39 / 50 Console से input read करने के लिए कौन सा method use होता है? input() next() / nextLine()(Scanner class) get() read() 40 / 50 HashMap में duplicate keys allowed हैं या नहीं? हाँ नहीं कभी कभी सिर्फ null key 41 / 50 Collection का parent interface कौन सा है? List Collection Map Set 42 / 50 Runtime errors को handle करने के लिए Java में क्या use होता है? Exception Handling Garbage Collection Object Creation Compiler 43 / 50 Exception handling में finally block कब run होता है? सिर्फ exception होने पर चाहे exception हो या न हो सिर्फ exception न होने पर हमेशा, कभी नहीं 44 / 50 Thread start करने के लिए कौन सा method use होता है? run() execute() start() init() 45 / 50 Static keyword का use क्यों किया जाता है? Method override रोकने के लिए Variable/method को सभी objects में share करने के लिए Class inherit करने के लिए Object delete करने के लिए 46 / 50 Current object को refer करने के लिए कौन सा keyword use होता है? current this super self 47 / 50 Object clone करने के लिए कौन सा method use होता है? replicate() duplicate() clone() copy() 48 / 50 कौन सा package हर Java program में default import होता है? java.util java.lang java.io java.net 49 / 50 Java में सभी classes का parent class कौन सा है? Class System Object Main 50 / 50 Java में String immutable क्यों होती है? Performance के लिए Syntax के लिए Compiler requirement के लिए Security और thread-safety के लिए Your score isThe average score is 0% 0% Restart quiz