Follow and like us on our Facebook page where we post on the new release subject and answering tips and tricks to help save your time so that you can never feel stuck again.
Shortcut

Ctrl + F is the shortcut in your browser or operating system that allows you to find words or questions quickly.

Ctrl + Tab to move to the next tab to the right and Ctrl + Shift + Tab to move to the next tab to the left.

On a phone or tablet, tap the menu icon in the upper-right corner of the window; Select "Find in Page" to search a question.

Share Us

Sharing is Caring

It's the biggest motivation to help us to make the site better by sharing this to your friends or classmates.

Object Oriented Programming Laboratory

A platform for developers to learn and practice programming concepts and techniques using object-oriented programming languages like Java, C++, and Python.

java

python

c++

c#

object-oriented design

inheritance

polymorphism

encapsulation

abstraction

class

object

method

constructor

destructor

overloading

overriding

information technology

computer science

When the run() method completes its execution, the thread comes to an end.

  • True
  • False

It determines what resources a class can access such as reading and writing to the local disk.

  • Security Manager
  • Classloader
  • Bytecode Verifier
  • JVM

It is a lightweight Graphical User Interface (GUI) toolkit that includes a rich set of widgets. It includes package lets you make GUI components for your Java applications, and It is platform independent.

  • Java swing
  • Java AWT
  • Java package
  • Java library

It is a pure container and is not a window in itself. The sole purpose of a it is to organize the components on to a window.

  • Container classes
  • Frame
  • Panel
  • Dialog

Java is an Object-Oriented programming language developed by ______________ in the early 1990s

  • Guido Van Rossum
  • James Gosling
  • Dennis Ritchie
  • Bjarne Stroustrup

The thread ends when it comes when the run() method finishes its execution.

  • True
  • False

Extending the Thread class will give your class more functionality. Because of JAVA's single inheritance feature, you can extend other classes.

  • True
  • False

A thread is a facility that allows single action to be performed simultaneously in a single process.

  • True
  • False

There is no probability of deadlock when many processes compete for exclusive access to multiple locks.

  • True
  • False

It can be thought of like a pop-up window that pops out when a message has to be displayed. It is not a fully functioning window like the Frame.

  • Dialog
  • Frame
  • Container classes
  • Panel

When a group of processes or threads is waiting for an action that only one of them can do, it is said to be deadlocked.

  • True
  • False

A set of processes or threads is said to be deadlocked when each is waiting for an action that only one of the others can perform.

  • True
  • False

Feature of java that is very easy to learn, and its syntax is simple, clean and easy to understand.

  • Simple
  • Portable
  • Platform Independent
  • Object-Oriented

If you just want to achieve basic functionality of a thread you can simply implement Runnable interface and override run() method.

  • False
  • True

A try-finally block is not possible without catch block.

  • False
  • True

The JDK 1.1 was released on

  • February 1996
  • January 1996
  • January 1997
  • February 1997

The JDK 1.0 was released on

  • January 1996
  • February 1996
  • January 1997
  • February 1997

The J2SE 1.2 was released on

  • May 1998
  • May 2000
  • December 2000
  • December 1998

The J2SE 1.3 was released on

  • May 1998
  • May 2000
  • December 1998
  • December 2000

Shorten the blocks. Synchronized blocks should be as brief as possible while maintaining the integrity of linked data activities.

  • True
  • False

A popular general-purpose programming language and computing platform. It is fast, reliable, and secure.

  • Java
  • C#
  • Php
  • C++

The facilities and API for Java threads are deceptively simple: every Java application creates at least one thread [main() thread].

  • True
  • False

A thread is a series of method calls that are nested.

  • True
  • False

Whenever there is multiple processes contending for exclusive access to multiple locks, there is the possibility of deadlock.

  • True
  • False

In order to avoid deadlock, make sure that you acquire multiple locks in the same order across all threads.

  • True
  • False

Java is a write once, runObject Oriented Programming anywhere language.

  • Portable
  • Object-Oriented
  • Platform Independent
  • Simple

Places components in up to five areas: top, bottom, left, right, and center. It is the default layout manager for every java JFrame.

  • Java GridBagLayout
  • Java FlowLayout
  • Java Layout Manager
  • Java BorderLayout

It is a Java platform component that executes programs.

  • J2SE
  • JVM
  • JRE
  • JDK

It is the more sophisticated of all layouts. It aligns components by placing them within a grid of cells, allowing components to span more than one cell.

  • Java FlowLayout
  • Java GridBagLayout
  • Java Layout Manager
  • Java BorderLayout

Feature of java that means, organizing our software as a combination of different types of objects that incorporates both data and behavior.

  • Portable
  • Object-Oriented
  • Simple
  • Platform Independent

Proper co-ordination is required between threads accessing common variables.

  • Multiprocessor systems
  • Risk factor
  • Java threads
  • GUI applications

It checks the code fragments for illegal code that can violate access right to objects.

  • Classloader
  • Bytecode Verifier
  • Security Manager
  • JVM

It is the on-disk part of Java that creates the JVM.

  • JDK
  • JRE
  • J2SE
  • JVM

It is a fully functioning window with its title and icons.

  • Container classes
  • Frame
  • Dialog
  • Panel

is built on top of the Java Abstract Widget Toolkit (AWT), an older, platform dependent GUI toolkit.

  • Java package
  • Java library
  • Java swing
  • Java AWT

The J2SE 1.4 was released on

  • September 2002
  • February 2002
  • September 2004
  • February 2000

It facilitates you to carry the Java bytecode to any platform.

  • Object-Oriented
  • Portable
  • Simple
  • Platform Independent

Used to layout the GUI java components inside a container.

  • Java GridBagLayout
  • Java Layout Manager
  • Java FlowLayout
  • Java BorderLayout

We use thread to perform asynchronous or background processing

  • True
  • False

While having a lock, call methods on other objects This may appear drastic, yet it eliminates the most prevalent cause of gridlock.

  • True
  • False

The J2SE 5.0 was released on

  • September 2002
  • February 2000
  • February 2002
  • September 2004

The name Java originates from a sort of ____________

  • Mocha Bean
  • Expresso Bean
  • Latte Bean
  • Cappuccino Bean

Overuse of java threads can be hazardous to programs performance and its ...

  • False
  • True

Part of the Java Runtime Environment(JRE) which is used to load Java classes into the Java Virtual Machine dynamically.

  • JVM
  • Classloader
  • Security Manager
  • Bytecode Verifier

The JAVA SE 12 was released on

  • September 2018
  • March 2019
  • March 2018
  • September 2019

It is the default layout manager for every JPanel. It simply lays out components in a single row one after the other.

  • Java FlowLayout
  • Java Layout Manager
  • Java BorderLayout
  • Java GridBagLayout

Classes that can have other components on it.

  • Container classes
  • Dialog
  • Frame
  • Panel

When a thread is invoked, there will be one path of execution.

  • False
  • True

Allows developers to create Java programs that can be executed and run by the JVM and JRE.

  • JVM
  • JDK
  • JRE
  • J2SE
Comments
Buy Me Coffee

To keep up this site, we need your assistance. A little gift will help us alot.

Donate

- The more you give the more you receive.

Related Subject

Web Systems Technologies

Data Structures and Algorithms

Programming Logic and Design

Computer Programming 2

Sociology

Mobile Programming

Network Security

Mobile Application Design and Development

Mobile Application Design and Development 2

Managing Information and Technology

Management Information Systems

Mail and Web Services

Living in the Information Technology Era

Information Technology Capstone Project

Information Technology Practicum

Intro to Hardware Description Language

Introduction to Computing

Introduction to Human Computer

Introduction to Information Systems

Introduction to Multimedia

Internet Marketing and Entrepreneurship

Integrative Programming and Technology 2

Internet Technology in Real Estate

Information Assurance and Security 2

Information Assurance and Security 3

Information Security and Management

Information Systems Operations and Maintenance

Fundamentals of Investigation and Intelligence

Fundamentals of Database System

Digital Imaging

Data Communications and Networking 2

Data Communications and Networking

Cyber Security: Theories and Practice

Database Management System

Chemistry for Engineers

Computer Fundamentals

Animation Project

Load Testing

3D Game Art Development

Auditing and Assurance Concepts and Applications

System Administration and Maintenance

Linux Administration

Integrative Programming and Technology

Data Communications and Networking 4

Current Trends and Issues

Applied Business Tools and Technologies

Software Engineering

Computer Programming

Systems Integration and Architecture

Application Lifecycle Management

Data Communications and Networking 3

Information Assurance and Security

Principles of Operating System and its Application

Origin of Women in Computing


Show All Subject
Affiliate Links

Shopee Cashback Voucher

Temu $0 Shipping Fee

Amazon 75% Off Discounts