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

Objective Questions on Core Java Language set-2

الكاتب ahmed في 1:21 AM Java Multiple Choice Question (MCQ)

1) The methods wait() and notify() are defined in

A. java.lang.String

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.Thread


2) The data or variables, defined within a class are called ..... variables.

A. object

B. class

C. instance

D. schema


3) When we implement the Runnable interface, we must define the method.

A. start()

B. init()

C. run()

D. resume()


4) ........ class must give a concrete method.

A. abstract

B. constructor

C. least

D. program


5) Which exception is thrown by the read() method of input stream class?

A. Exception

B. FileNotFoundException

C. ReadException

D. IOException


6) When a method calls itself, it is called ......

A. recursion

B. distance

C. display

D. problem


7) Which of the following statements are true?

i) An abstract class may not have any final methods.

ii) A final class may not have any abstract methods

iii) An inner class may be declared with any accessibility keyword

iv) Transient variable must be static

A. i and ii

B. ii and iii

C. iii and iv

D. All i, ii, iii and iv


8) Which of the following statements is/are false?

A. A java monitor must either extend thread or implement runnable

B. The sleep() method should be enclosed in try .... catch block.

C. A thread can be temporarily suspended from running by using the wait() method.

D. A suspended thread using suspend() method can be received using the resume() method.


9) What does J2SE mean?

A. Java 2 Platform Standard Edition

B. Java 2 Internet Standard Edition

C. Java 2 System Edition

D. Java 2 Platform Independent Standard Edition


10) An ........ is a special kind of Java program that is designed to be transmitted over the Internet.

A. viewlet

B. applet

C. servlet

D. object

11) Which are the valid ways to create DataInptStream streams?

A. new DataInputStream();

B. new DataInputStream("in.dat', "r");

C. new DataInputStream(new File("in.dat"));

D. new DataInputStream(new FileInputStream("in.dat");


12) finalize() is only called just prior to .....

A. initialization

B. runtime

C. garbage collection

D. destruction


13) When we invoke repaint() for a component, the AWT invokes the method

A. draw()

B. show()

C. update()

D. paint()


14) What is the use of valueOf() method?

A. It converts data from its internal format into a human-readable form.

B. It converts integer value to string

C. It converts string to int value

D. It converts string to float value


15) What is the default thread at the time of starting the program?

A. Main thread

B. Thread Group

C. Child Thread

D. Thread Pool


16) What does the following line of code do?

       TextField text= new TextField(10);

A. Creates text object that can hold 10 rows of text

B. Creates text object that can hold 10 columns of text

C. Creates the object text and initialize it with the value 10

D. The code is illegal


17) .......... is an applet tag.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


18) In Java thread to thread communication is called ......

A. Passing

B. sending

C. Messaging

D. Calling


19) AWT stands for

A. abstract window toolkit

B. abstract window toolbar

C. access window toolbar

D. access window toolbar


20) The setBackground() method is part of the class

A. Graphics

B. Applet

C. Component

D. Container

Answers:

1) C. java.lang.Object
2) C. instance
3) D. resume()
4) A. abstract
5) D. IOException
6) A. recursion
7) B. ii and iii
8) A. A java monitor must either extend thread or implement runnable
9) A. Java 2 Plateform Standard Edition
10) B. applet
11) D. new DataInputStream(new FileInputStream("in.dat");
12) C. garbage collection
13) C. update()
14) D. It converts string to float value
15) A. Main thread
16) B. Creates text object that can hold 10 columns of text
17) C. <applet>
18) C. Messaging
19) A. abstract window toolkit
20) C. Component

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

  • Objective Questions on Core Java Language set-2

  • 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 أفكار جميع الحقوق محفوظة