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?
- A) int var
- B) float var
- C) double var
- D) int-I-var
Q.42 A constructor is related with
- A) Same name as the class it is declared within
- B) Is used to create package
- C) Is used to define Applet constructor
- D) All of above
Q.43 JVM is a
- A) Java virtual machine
- B) Java variable modifier
- C) Java vertical machine
- D) Java vendor machine
Q.44 What is byte code in context of Java?
- A) The type of code generated by Java compiler
- B) Code generated by Java virtual machine
- C) Another name of Java source file
- D) Related with Java comments
Q.45 The Java run time system automatically calls this method while garbage collection
- A) finalizer ()
- B) finalize ()
- C) finally ()
- D) fanalised ()
Q.46 An overloaded method consist of
- A) with same method but different types of parameters
- B) with different method name only
- C) method name may be same or different
- D) all of above
Q.47 A protected member can be accessed in
- A) subclass of same package
- B) non sub- class of same package
- C) non sub class of different package
- D) true for both (a) and (b)
Q.48 All exception types are sub classes of the built in class in
- A) Exception
- B) Run time exception
- C) Error
- D) Throwable
Q.49 In Java, objects are passed as
- A) copy of that object
- B) Method call by value
- C) Memory address
- D) constructor
Q.50 Which of following not a component of Java IDE
- A) Net Beans
- B) Borland’s Jbuilder
- C) MS J++
- D) Symantec visual cafe
Q.51 Which of following is incorrect name
- A) xyz
- B) 2nd name
- C) xy2z
- D) xyz2
Q.52 Applet cann’t be viewed using
- A) Netscape navigator
- B) Internet Explorer
- C) Sun Hot Java Browser
- D) Applet viewer tool which comes with JDK
Q.53 Java compiler Javac translate Java source code into
- A) Assembly language
- B) Byte code
- C) Bit code
- D) Machine code
Q.54 In Java character const value is its integer value in the
- A) EBCDIC char set
- B) Unicode char code
- C) ASCII char code
- D) Binary code
Q.55 Which one of the used to document the program and improve its readability
- A) System calls
- B) Keyword
- C) Comments
- D) Blocks
Q.56 In Java, a try block should immediately followed by one or more
- A) Throw blocks
- B) Run blocks
- C) Catch blocks
- D) Exit blocks
Q.57 When one object acquires the properties of another objects is called
- A) Encapsulation
- B) Polymorphism
- C) Overloading
- D) Inheritance
Q.58 Multiple inheritance means
- A) One class inheriting more super class
- B) More class inheriting from one super class
- C) One class inheriting one super class
- D) None of above
Q.59 The wrapping of data and functions into a single units is called
- A) Encapsulation
- B) Abstraction
- C) Data hiding
- D) polymorphism
Q.60 Which of the following has a method name flush ()
- A) Input stream
- B) Output stream
- C) Reader stream
- D) Input reader stream