Java Programming MCQ (Multiple Choice Questions) SET-3

Hey Guys welcome to CES Study247 ,Today I am provide you Java Programming MCQ (Multiple Choice Questions) SET-3 ,that is very useful for many exam.

Q.41 Which of the following variable declaration would not compiled in a java program?



  • int var


  • float var


  • double var


  • int-I-var

Q.42 A constructor is related with



  • Same name as the class it is declared within


  • Is used to create package


  • Is used to define Applet constructor


  • All of above

Q.43 JVM is a



  • Java virtual machine


  • Java variable modifier


  • Java vertical machine


  • Java vendor machine

Q.44 What is byte code in context of Java?



  • The type of code generated by Java compiler


  • Code generated by Java virtual machine


  • Another name of Java source file


  • Related with Java comments

Q.45 The Java run time system automatically calls this method while garbage collection



  • finalizer ()


  • finalize ()


  • finally ()


  • fanalised ()

Q.46 An overloaded method consist of



  • with same method but different types of parameters


  • with different method name only


  • method name may be same or different


  • all of above

Q.47 A protected member can be accessed in



  • subclass of same package


  • non sub- class of same package


  • non sub class of different package


  • true for both (a) and (b)

Q.48 All exception types are sub classes of the built in class in



  • Exception


  • Run time exception


  • Error


  • Throwable

Q.49 In Java, objects are passed as



  • copy of that object


  • Method call by value


  • Memory address


  • constructor

Q.50 Which of following not a component of Java IDE



  • Net Beans


  • Borland's Jbuilder


  • MS J++


  • Symantec visual cafe

Q.51 Which of following is incorrect name



  • xyz


  • 2nd name


  • xy2z


  • xyz2

Q.52 Applet cann't be viewed using



  • Netscape navigator


  • Internet Explorer


  • Sun Hot Java Browser


  • Applet viewer tool which comes with JDK

Q.53 Java compiler Javac translate Java source code into



  • Assembly language


  • Byte code


  • Bit code


  • Machine code

Q.54 In Java character const value is its integer value in the



  • EBCDIC char set


  • Unicode char code


  • ASCII char code


  • Binary code

Q.55 Which one of the used to document the program and improve its readability



  • System calls


  • Keyword


  • Comments


  • Blocks

Q.56 In Java, a try block should immediately followed by one or more



  • Throw blocks


  • Run blocks


  • Catch blocks


  • Exit blocks

Q.57 When one object acquires the properties of another objects is called



  • Encapsulation


  • Polymorphism


  • Overloading


  • Inheritance

Q.58 Multiple inheritance means



  • One class inheriting more super class


  • More class inheriting from one super class


  • One class inheriting one super class


  • None of above

Q.59 The wrapping of data and functions into a single units is called



  • Encapsulation


  • Abstraction


  • Data hiding


  • polymorphism

Q.60 Which of the following has a method name flush ()



  • Input stream


  • Output stream


  • Reader stream


  • Input reader stream

Scroll to Top