Welcome to your JAVA SET - 6 Read this before do Start Exam: 1- There are 25 Questions and complete it within 30 Minutes. 2- For Best Experience download our Android App from Google Play Store. परीक्षा शुरू करने से पहले इसे पढ़ें: 1- 25 प्रश्न हैं और इसे 30 मिनट के भीतर पूरा करें। 2- बेहतरीन अनुभव के लिए Google Play Store से हमारा Android ऐप डाउनलोड करें। Download App Now 1. Which option is false about the final keyword? A final method cannot be overridden in its subclasses. A final class cannot extend other classes. A final method can be inherited. A final class cannot be extended. None 2. Which of these is not a valid Boolean method in Java? hashCode() method toString() method toString() method All of these None 3. Which of the following is a valid data structure in java? Array Vector List All of these None 4. Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program? default transient volatile global None 5. What will be the output of following Java code? Error [mango, orange, guava, apple] [mango, orange, guava, mango, apple] None of these None 6. Which of the following is not an OOPS concept in Java? Polymorphism Compilation Encapsulation Inheritance None 7. What is boolean in Java? Truthy value in java A value consisting of 8 values A value consisting of only true and false value All of these None 8. Which statement is true about Java? Java is a code dependent programming language Java is a platform-dependent programming language Java is a sequence-dependent programming language Java is a platform-independent programming language None 9. The result of dividing by 0 in Java is ___. Error Expectation Infinite None of these None 10. Array in java is ___. The data type of consisting of characters Collection of elements of different types Collection of similar elements None of these None 11. Who invented Java Programming? James Gosling Guido van Rossum Bjarne Stroustrup Dennis Ritchie None 12. Can the Java program accept input from the command line? No Yes, using command-line arguments Yes, by access command prompt None of these None 13. What is the result of the following program? It only prints A and exits It only prints B and exits A will be printed, and then an exception is thrown. It prints A and B with a 1000 seconds delay between them None 14. When a finally block executed in Java? Exception has occurred Executed at last Try block is executed without any exception None of these None 15. Which Java keyword is used to access features of a package? get extends import All of these None 16. Which one of the following is not a Java feature? Object-oriented Portable Dynamic and Extensible Use of pointers None 17. Which of these is the correct method to create an array in java? int arr[] = {1, 4, 6}; and int[] arr; arr = new int[] {3, 1, 8}; int[] arr = {1, 3, 5}; All of these None 18. What do you mean by chained exceptions in Java? Exceptions occurred by the VirtualMachineError Exceptions occur in chains with discarding the debugging information An exception caused by other exceptions None of the above None 19. Which of the following is an immediate subclass of the Panel class? Window class Applet class Dialog class Frame class None 20. What is the default encoding for an OutputStreamWriter? Default encoding of the host platform UTF-12 UTF-8 None of the above None 21. What will be the output of following Java code? includehelp help include None of these None 22. Which component is used to compile, debug and execute the java programs? JIT JVM JDK JRE None 23. In character stream I/O, a single read/write operation performs _____. One byte read/write at a time. Five bytes read/ write at a time. Two bytes read/write at a time. Eight bytes read/write at a time. None 24. Which of these classes are the direct subclasses of the Throwable class? Exception and VirtualMachineError class IOException and VirtualMachineError class RuntimeException and Error class Error and Exception class None 25. Which syntax is valid to create a vector in java? Vector name = new string; int name = new vector () Vector names = new Vector (); All of these None Share this:TweetEmailTelegramPrintWhatsAppLike this:Like Loading... Related Posts (You May Also Read):