Software Engineering Mcqs

Page No. 23

What is meaning of jar ?


a java array


bjava architecture


c java archived


dnone of these


View Answer java archived

A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?


a Declare the method with the keyword public.


bDeclare the method with the keyword private.


cDo not declare the method with any accessibility modifiers.


dDeclare the method with the keyword public and private.



javah stands for ?


ajava dissasamebler


bjava header file


cjava interpreter


djava compiler


View Answer java header file

Which method of the Applet class displays the result of applet code on screen ?


apaint() method


bmain() method


c run() method


ddrawString() method


View Answer drawString() method

Which of the following command is used to compile the Java program ?


ajava


bjavac


cjavap


dnone of these


View Answer javac

Size of int in Java is_________________?


a8 bit


b16 bit


c32 bit


d64 bit


View Answer 32 bit

Which method executes only once ?


astop() method


bstart() method


cinit() method


ddestroy() method


View Answer init() method

What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?


a7 8


b8 7


c9 8


dNone


View Answer 8 7

Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?


aFrom within protected methods you do not have access to public methods.


bThis method is only accessible from inside the class itself and from inside all subclasses.


cIn a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined.


dThis method is accessible from within the class itself and from within all classes defined in the same package as the class itself.



How many transaction isolation levels are defined in java.sql.Connection interface ?


a6


b2


c5


d3


View Answer 3

Goto Page No.

Page 23 of 190

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan