• الصفحة الرئيسية
  • إتصل بنا
  • سياسة الخصوصية
Logo
  • الرئيسية
  • أفكار
  • صحة
  • معلومات
  • عجائب وغرائب
  • تكنولوجيا
الصفحة الرئيسية Java Multiple Choice Question (MCQ) Interview Questions on Core Java Language set-3

Interview Questions on Core Java Language set-3

الكاتب ahmed في 10:01 PM Java Multiple Choice Question (MCQ)

1) The CODE value in an ......... tag must name a class file that is in the same directory as the calling HTML page.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


2) A class can be converted to a thread by implementing the interface ..........

A. Thread

B. Runnable

C. Start

D. Yield


3) Which of the following classes are not available in the java.lang package?

A. Stack

B. Object

C. Math

D. String


4) State True or False for the following statements.

i) Reader class has a method that can read and return floats and doubles

ii) It is possible to use the File class to list the contents of the current of the working directory

A. i-True, ii-False

B. i-False, ii-True

C. i-True, ii-True

D. i-False, ii-False


5) The setBackground() method is part of the following class in JAVA.awt package.

A. Component

B. Graphics

C. Applet

D. Container


6) Which method is used to set the text of a Label object?

A. setText()

B. setLabel()

C. setTextLabel()

D. setLabelText()


7) Which of the following statement is/are True?

i) A Java monitor must either extend Thread class or implement Runnable interface

ii) The CheckboxGroup class is a subclass of the component class

A. i- only

B. ii- only

C. Both i and ii

D. None of the above


8) When we invoke repaint() for JAVA.awt.Component object, the AWT invokes the method .......

A. update()

B. draw()

C. show()

D. paint()


9) Which of the following methods are invoked by the AWT to support paint and repaint operations?

A. paint()

B. repaint()

C. draw()

D. redraw()


10) A thread can make a second thread ineligible for execution by calling the ......... method on the second thread.

A. second()

B. suspend()

C. append()

D. yield()

11) When we implement the Runnable interface, we must define the method

A. run()

B. start()

C. init()

D. main()


12) Which of the following are passed as an argument to the paint() method?

A. A Canvas object

B. A Graphics object

C. An image object

D. A paint object


13) State whether the following statements are True or False.

i) A class may be both abstract and final

ii) A final class may not have any abstract methods

iii) Frames and applets cannot be used together in the same program.

A. i-True, ii-True, iii-False

B. i-True, ii-False, iii-True

C. i-False, ii-True, iii-False

D. i-False, ii-True, iii-True


14) The methods wait() and notify() are defined in?

A. java.lang.String

B. java.lang.Object

C. java.lang.Runnable

D. java.lang.Thread


15) Which of the following components generate action events?

A. Buttons

B. Labels

C. Check boxes

D. Windows


16) Which javadoc tag is used to denote a comment for a method parameter?

A. @method

B. @parameter

C. @arjument

D. @param


17) Which of the following are not the wrapper classes?

A. Byte

B. Vector

C. Integer

D. Short


18) Which of the following classes is used to perform basic console I/O?

A. system

B. security Manager

C. math

D. runtime


19) Which of the following command lines options generates documentation for all classes and methods?

A. -protected

B. -public

C. -private

D. -verbose


20) What is java_g used for?

A. Using the jdb tool

B. Executing a class with optimization turned off

C. To provide information about deprecated methods

D. None of the above

Answers:

1) C. <applet>
2) B. Runnable
3) A. Stack
4) A. i-True, ii-False
5) A. Component
6) A. setText()
7) D. None of the above
8) A. update()
9) A. paint()
10) C. append()
11) A. run()
12) B. A Graphics object
13) C. i-False, ii-True, iii-False
14) B. java.lang.Object
15) A. Buttons
16) D. @param
17) B. Vector
18) A. system
19) C. -private
20) B. Executing a class with optimization turned off


Related Posts:

  • Java Multiple Choice Questions With Answers set-6

  • MCQ of Java With Answer set-7

  • Java Multiple Choice Questions With Answers set-8

  • Java Objective Questions with Answers set-9

  • Java MCQ Interview Questions With Answers set-10

  • MCQ on Java Programming With Answers set-11

  • MCQ on Java Programming Language Fundamental set-12

  • MCQ on Core Java with Answers set-1

  • Solved MCQ on Fundamental of Java Language set-14

  • Interview Questions on Overview of Java set-15

شارك المقال :
Tweet
✚

مقالات ذات صلة

التالي
المشاركةالتالية
السابق
المشاركة السابقة

تحويل كودإخفاء محول الأكواد الإبتساماتإخفاء

شكرا لمشاركتنا رأيك
Subscribe to: Post Comments (Atom)
  • Facebook
  • twitter
  • googleplus
  • youtube
  • linkedin

الأكثر زيارة

  • What is Information ?
    Information  can be defined as data that has been processed into a form that is meaningful to the recipient and is of real or perceived valu...
  • What is Information Technology?
    Definitions of  Information technology  ( IT ) It is a branch of engineering dealing with the use of computers and telecommunications equipm...
  • بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017 لن تصدق من هي فرح صدقي ↓↓  لمشاهدة الصور والخبر كامل اضغط هنا  ↓↓ رابط المو...
  • Interview Questions on Stack and Queue in Data Structure set-2
    1) The queue in which the insertion takes place in the first position after of last element is a ...... A. priority B. dequeue C. circular D...
  • List of Top 65 Search Engine Submission Add URLs.
    List of Top 65 Search Engine Submission Add URLs.
    To get your site on the top ranking on the search engine results, Your site or URL must be indexed by Search Engines. For that you have to s...
  • List of Best Keyword Research Tools for Better SEO
    List of Best Keyword Research Tools for Better SEO
    Everyone needs to do keyword research work for the site before starting search engine optimization work as the first and most essential tas...
  • What are the different types of scheduling methods?
    Process scheduling is one way for a processor to handle n processes , by scheduling the execution process. Each process is executed one by ...
  • Solved MCQ on Database Backup and Recovery in DBMS set-1
    1) Which of the following is not a recovery technique? A. Deferred update B. Immediate update C. Two-phase commit D. Recovery management 2)C...
  • Solved MCQ on Distributed Database Transaction Management set-4
    1) Commit and rollback are related to .......... A. data integrity B. data consistency C. data sharing D. data security 2) The transaction w...
  • Solved MCQ on Fundamental of DBMS set-10
    1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relatio...

الأقسام

  • Artificial Intelligence(AI)
  • Backlinking
  • Basic IT
  • Best List
  • Blogging Tips
  • C
  • C#
  • C++
  • Computer Architecture
  • Computer Fundamental
  • Computer Security
  • Computer/IT Officer Exam
  • CSS
  • Data Mining and Warehousing
  • Data Recovery Tools
  • Data Structure
  • Database Management System
  • E-commerce
  • E-government
  • Internet & Web Designing
  • IT Law
  • IT Tips and Tricks
  • IT Tutorials
  • Java
  • JavaScript
  • Keyword Research Tools
  • MIS
  • Multiple Choice Question (MCQ)
  • Networking
  • Online Earning
  • Online IT Jobs
  • Operating System
  • Oracle Forms and Reports
  • Programming Guide
  • Programming Language
  • SEO
  • Social Networking Sites
  • Software Download
  • Software Engineering
  • System Analysis and Design
  • Top List
  • VB.Net
  • صحة
  • عجائب وغرائب

الأرشيف

  • ►  2017 (4)
    • ►  November (3)
    • ►  October (1)
  • ►  2016 (5)
    • ►  April (5)
  • ▼  2015 (87)
    • ►  August (1)
    • ►  July (8)
    • ►  June (13)
    • ►  May (2)
    • ►  April (2)
    • ►  March (4)
    • ►  February (20)
    • ▼  January (37)
      • Solved MCQ on Core Operating System Principle set-13
      • Objective Questions on Core Operating System set-12
      • Interview Questions on Operating System Basis set-11
      • MCQ on Operating System Fundamental set-10
      • Solved MCQ on Operating System Basis set-9
      • MCQ Questions on Fundamental of Java set-16
      • Interview Questions on Core Java Language set-3
      • Objective Questions on Core Java Language set-2
      • Interview Questions on Overview of Java set-15
      • Solved MCQ on Fundamental of Java Language set-14
      • Interview Questions on Fundamental of C Language s...
      • Solved MCQ on Fundamental of C Language set-7
      • Objective Questions on Ms Power Point in Ms Office...
      • Solved MCQ on Ms PowerPoint in Ms Office set-1
      • Interview Questions on Microsoft Excel with Answer...
      • Objective Questions on Microsoft Excel with Answer...
      • MCQ on Microsoft Excel in Ms Office with Answer set-4
      • MCQ Questions on Microsoft Excel in Ms Office set-3
      • Objective Questions on Ms Excel in Ms Office set-2
      • Solved MCQ on Microsoft Excel in Ms Office set-1
      • Objective Questions on Microsoft Word set-10
      • Solved Interview Questions on Ms Word set-9
      • Interview Questions on Microsoft Word set-8
      • MCQ Questions and Answers on Ms Word set-7
      • Microsoft Word MCQ Questions with Answer set-5
      • MCQ Questions on Ms Word with Answer set-4
      • Solved MCQ Questions on Microsoft Word set-3
      • Solved Objective Questions on Microsoft Word set-2
      • MCQ on Computer Fundamental with Solution set-16
      • MCQ Questions on Computer Fundamental set-15
      • Computer Fundamental Interview Questions set-14
      • Interview Questions on Computer Basis set-13
      • MCQ Questions on Computer Fundamentals set-12
      • Computer Fundamental Quiz with Answer set-11
      • Computer Fundamental Questions and Answers set-10
      • Computer Basis MCQ Questions and Answers set-9
      • MCQ on Computer Fundamentals with Answers set-8
  • ►  2014 (77)
    • ►  December (31)
    • ►  November (4)
    • ►  September (4)
    • ►  August (11)
    • ►  July (8)
    • ►  June (2)
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ►  February (7)
    • ►  January (4)
  • ►  2013 (132)
    • ►  December (11)
    • ►  November (6)
    • ►  October (4)
    • ►  September (6)
    • ►  August (16)
    • ►  July (9)
    • ►  June (9)
    • ►  May (12)
    • ►  April (13)
    • ►  March (23)
    • ►  February (6)
    • ►  January (17)
  • ►  2012 (59)
    • ►  December (15)
    • ►  November (20)
    • ►  October (21)
    • ►  September (3)

إنضم لنا

© 2017 أفكار جميع الحقوق محفوظة