Java Basics Quiz10 by Sarah | Quizes Welcome to Java Basics Quiz Series. This quiz consists of 15 multiple-choice questions. Keep the following in mind: Multiple Attempts - You will have multiple attempts for this quiz. Timing - You will need to complete each of your attempts in one sitting, as you are allotted 7 minutes to complete each attempt. Answers - You may review your answer-choices and compare them to the correct answers after your final attempt. To start, click the "Next" button. When finished, click the "Submit Quiz" button What is the return type of a method that does not return any value?floatvoidnulldefault Which of the following is a method having same name as that of it’s class?constructorclassfinalize Which of this statement is incorrect?main() method must be made publicAll object of a class are allotted memory for the methods defined in the classIf a function is defined public it can be accessed by object of other class by inheritationAll object of a class are allotted memory for the all the variables defined in the class Which of these keywords is used to make a class?classintClass Which of the following is a valid declaration of an object of class Box?Box obj = new Box();obj = new Box();new Box obj; Which of these operators is used to allocate memory for an object?allocnewnewMemory Which of these statement is incorrect?Every class must contain a main() methodmain() method must be made publicThere can be only one main() method in a program Which component is used to compile, debug and execute java program?JVMJREJDK Which component is responsible for converting bytecode into machine specific code?JVMJRECompiler Which statement is true about java?Sequence dependent programming languagePlatform independent programming languagePlatform dependent programming language Which of the below is invalid identifier with the main method?publicprivatestatic What is the extension of java code files?.java.class.Class When does method overloading is determined?At run timeAt compile timeAt coding timeAt execution time Which of this method of class String is used to obtain a length of String object?get()length()lengthof()size() In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?PrivatePublicStaticProtected Time is Up! 2 Comments Sowjanya on February 8, 2021 at 2:39 pm Donr Reply firstname.lastname@example.org on February 12, 2021 at 5:29 pm Thank you ! Good nice . Reply Submit a Comment Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment.