www.firstranker.com
J2ME – Interview Questions
What is J2ME
Java 2, Micro Edition is a group of specifications and technologies that pertain to Java on small devices.
The J2ME covers a wide range of devices, from pagers and mobile telephones through set-top boxes and
car navigation systems.
The J2ME world is divided into configurations and profiles, specifications that describe a Java
environment for a specific class of device.
What is a profile ?
A profile defines the type of device supported. The Mobile Information Device Profile (MIDP), for example,
defines classes for cellular phones. It adds domain-specific classes to the J2ME configuration to define
uses for similar devices.
Two profiles have been defined for J2ME and are built upon CLDC: KJava and MIDP. Both KJava and
MIDP are associated with CLDC and smaller devices.
Profiles are built on top of configurations. Because profiles are specific to the size of the device (amount
of memory) on which an application runs, certain profiles are associated with certain configurations.
A skeleton profile upon which you can create your own profile, the Foundation Profile, is available for
CDC.
What is a configuration?
In J2ME, a configuration defines the minimum Java runtime environment for a family of devices: the
combination of a Java virtual machine (either the standard J2SE virtual machine or a much more limited
version called the CLDC VM) and a core set of APIs. CDC and CLDC are configurations.
What is MIDP and CLDC.
MIDP:
The Mobile Information Device Profile (MIDP) is a specification for a J2ME profile. It is layered on top of
CLDC and adds APIs for application life cycle, user interface, networking, and persistent storage.
CLDC:
The Connected, Limited Device Configuration (CLDC) is a specification for a J2ME configuration. The
CLDC is for devices with less than 512 KB or RAM available for the Java system and an intermittent
(limited) network connection. It specifies a stripped-down Java virtual machine1 called the KVM as well as
several APIs for fundamental application services. Three packages are minimalist versions of the J2SE
java.lang, java.io, and java.util packages. A fourth package, javax.microedition.io, implements the Generic
Connection Framework, a generalized API for making network connections.
What is RMS?
The Record Management System (RMS) is a simple record-oriented database that allows a MIDlet to
persistently store information and retrieve it later. Different MIDlets can also use the RMS to share data.
What is difference between j2se, j2ee and j2me?
J2SE is considered the foundation edition of the Java platform and programming environment in which all
other editions are based. J2EE is the edition of the Java 2 platform targeted at developing multi-tier
enterprise applications. J2EE consists of a set of specifications, APIs and technologies defining
enterprise application development. J2EE technology providers expose tools, frameworks and platforms
that handle a good deal of the details of enterprise application infrastructure and behavior. J2EE
implementations enjoy all of the features of the Java 2 Standard Edition (J2SE) platform with additional
frameworks and libraries added to support distributed/Web development.
What are the optional packages?
An optional package is a set of J2ME APIs providing services in a specific area, such as database access
or multimedia.
www.firstranker.com
Unlike a profile, it does not define a complete application environment, but rather is used in conjunction
with a configuration or a profile. It extends the runtime environment to support device capabilities that are
not universal enough to be defined as part of a profile or that need to be shared by different profiles.
J2ME RMI and the Mobile Media RMI are examples of optional packages.
How is data written into RMS?
Information is stored in the record store in records, and each record is an array of bytes. The methods to
save to and retrieve from a record store all represent the record as an array of bytes.
What is profiling?
The J2ME Wireless Toolkit includes a profiler, a tool that collects statistics on your application as it runs.
After the run ends, you can see which methods in your application were called, how many times they
were called, and how much time these calls took.
What is preverifier?
Preverification is a new phase in the development and deployment cycle for Java applications designed
to run on theJ2ME CLDC.
Preverification performs certain checks on the Java bytecodes ahead of runtime. If this first verification
pass is ok, the preverifier annotates the classfiles (using standard Java bytecode “attributes”, so that
these are still plain old Java bytecodes and will be executable in VMs not aware of the benefits of
preverification), and then saves the annotated class files or passes them along to the next tool in the
compile chain.
When the KVM attempts to run execute a J2ME CLDC-based application, it checks the Java class files for
these preverification annotations. Proper annotations in the class files guarantee that certain compile-time
checks were made, and so the KVM can pass through its own verfication and security checks much faster
and start executing the application more quickly.
Sun’s CLDC reference implementation SDK includes the ‘preverify’ tool. You use the tool after compiling
your code via javac (or your favorite Java compiler).
What is obfuscator
Obfuscation is a technique used to complicate code. Obfuscation makes code harder to understand when
it is decompiled, but it typically has no affect on the functionality of the code. Obfuscation programs can
be used to protect Java programs by making them harder to reverse-engineer.
What is a MIDlet
A MIDlet is an application written for MIDP. MIDlet applications are subclasses of the
javax.microedition.midlet.MIDlet class that is defined by MIDP.
What is MIDlet suite
MIDlets are packaged and distributed as MIDlet suites. A MIDlet suite can contain one or more MIDlets.
The MIDlet suite consists of two files, an application descriptor file with a .jad extension and an archive
file with a .jar file. The descriptor lists the archive file name, the names and class names for each MIDlet
in the suite, and other information. The archive file contains the MIDlet classes and resource files.
What is OTA
A major new feature of MIDP is its ability to dynamically deploy and update applications over-the-air
(OTA). OTA provisioning, previously supported only as a recommended practice, is now required as part
of the MIDP 2.0 specification. The MIDP specification defines how MIDlet suites are discovered, installed,
updated and removed on mobile information devices. MIDP also enables a service provider to identify
which MIDlet suites will work on a given device, and obtain status reports from the device following
installation, updates or removal.
The MIDP OTA provisioning model ensures a single, standard approach to MIDP application deployment
that works across the broad range of mobile devices. The MIDP OTA provisioning model has been
defined and adopted by leading device manufacturers and service providers to deliver a reliable, secure
provisioning solution.
www.firstranker.com
What are the mandatory attributes?
For example: CLDC-1.0
MicroEdition-Configuration
MicroEdition-Profile
MIDlet-<n>
MIDlet-Jar-Size
MIDlet-Jar-URL
MIDlet-Name
MIDlet-Vendor
MIDlet-Version
What are high level UI and low level UI?
The Mobile Information Device Profile (MIDP) has two APIs for modifying the user interface (UI), referred
to as the highlevel and low-level APIs.
The high-level API requires you to use task-oriented abstractions to define what the user interface does.
You have no real control over what gets drawn on the screen — the java virtual machine selects
the best approach for the device. The User interface, buttons are standard and no modification can be
done.
The low-level API is aimed squarely at j2me game developers. Unlike the high-level API, the low-level API
gives you complete access to the screen and to input events. The game developer can modify the screen
or UI as required.
The game developer can either the high-level API or the low-level API, but not both.
J2me package for low level UI is javax.microedition.lcdui.*;
What is customItem?
CustomItem is customizable by subclassing to introduce new visual and interactive elements into Forms.
Subclasses are responsible for their visual appearance including sizing and rendering and choice of
colors, fonts and graphics.Subclasses are responsible for the user interaction mode by responding to
events generated by keys, pointer actions, and traversal actions.
What is CVM
The Compact Virtual Machine (CVM) is an optimized Java virtual machine1 (JVM) that is used by the
CDC.
What is 3G
Third generation (3G) wireless networks will offer faster data transfer rates than current networks. The
first generation of wireless (1G) was analog cellular. The second generation (2G) is digital cellular,
featuring integrated voice and data communications. So-called 2.5G networks offer incremental speed
increases. 3G networks will offer dramatically improved data transfer rates, enabling new wireless
applications such as streaming media.
What is 3GPP
The 3rd Generation Partnership Project (3GPP) is a global collaboration between 6 partners: ARIB,
CWTS, ETSI, T1, TTA, and TTC. The group aims to develop a globally accepted 3rd-generation mobile
system based on GSM.
What is 802.11
802.11 is a group of specifications for wireless networks developed by the Institute of Electrical and
Electronics Engineers (IEEE). 802.11 uses the Ethernet protocol and CSMA/CA (carrier sense multiple
access with collision avoidance) for path sharing.
What is API
An Application Programming Interface (API) is a set of classes that you can use in your own application.
Sometimes called libraries or modules, APIs enable you to write an application without reinventing
www.firstranker.com
common pieces of code. For example, a networking API is something your application can use to make
network connections, without your ever having to understand the underlying code.
What is AMPS
Advanced Mobile Phone Service (AMPS) is a first-generation analog, circuit-switched cellular phone
network. Originally operating in the 800 MHz band, service was later expanded to include transmissions
in the 1900 MHz band, the VHF range in which most wireless carriers operate. Because AMPS uses
analog signals, it cannot transmit digital signals and cannot transport data packets without assistance
from newer technologies such as TDMA and CDMA.
What is CDC
The Connected Device Configuration (CDC) is a specification for a J2ME configuration. Conceptually,
CDC deals with devices with more memory and processing power than CLDC; it is for devices with an
always-on network connection and a minimum of 2 MB of memory available for the Java system.
What is CDMA
Code-Division Multiple Access (CDMA) is a cellular technology widely used in North America. There are
currently three CDMA standards: CDMA One, CDMA2000 and W-CDMA. CDMA technology uses UHF
800Mhz-1.9Ghz frequencies and bandwidth ranges from 115Kbs to 2Mbps.
What is CDMA One
Also know as IS-95, CDMAOne is a 2nd generation wireless technology. Supports speeds from 14.4Kbps
to 115K bps.What is CDMA2000 Also known as IS-136, CDMA2000 is a 3rd generation wireless
technology. Supports speeds ranging from 144Kbps to 2Mbps.
What is CDPD
Developed by Nortel Networks, Cellular Digital Packet Data (CDPD) is an open standard for supporting
wireless Internet access from cellular devices. CDPD also supports Multicast, which allows content
providers to efficiently broadcast information to many devices at the same time.
What is cHTML
Compact HTML (cHTML) is a subset of HTML which is designed for small devices. The major features of
HTML that are excluded from cHTML are: JPEG image, Table, Image map, Multiple character fonts and
styles, Background color and image, Frame and Style sheet.
What is Deck
A deck is a collection of one or more WML cards that can be downloaded, to a mobile phone, as a single
entity.
What is EDGE
Enhanced Data GSM Environment (EDGE) is a new, faster version of GSM. EDGE is designed to support
transfer rates up to 384Kbps and enable the delivery of video and other high-bandwidth applications.
EDGE is the result of a joint effort between TDMA operators, vendors and carriers and the GSM Alliance.
What is ETSI
The European Telecommunications Standards Institute (ETSI) is a non-profit organization that
establishes telecommunications standards for Europe.
What is FDMA
Frequency-division multiple-access (FDMA) is a mechanism for sharing a radio frequency band among
multiple users by dividing it into a number of smaller bands.
What is Foundation Profile
The Foundation Profile is a J2ME profile specification that builds on CDC. It adds additional classes and
interfaces to the CDC APIs but does not go so far as to specify user interface APIs, persistent storage, or
www.firstranker.com
application life cycle. Other J2ME profiles build on the CDC/Foundation combination: for example, the
Personal Profile and the RMI Profile both build on the Foundation Profile.
What is Generic Connection Framework
The Generic Connection Framework (GCF) makes it easy for wireless devices to make network
connections. It is part of CLDC and CDC and resides in the javax.microedition.io package.
What is GPRS
The General Packet Radio System (GPRS) is the next generation of GSM. It will be the basis of 3G
networks in Europe and elsewhere.
What is GSM
The Global System for Mobile Communications (GSM) is a wireless network system that is widely used in
Europe, Asia, and Australia. GSM is used at three different frequencies: GSM900 and GSM1800 are
used in Europe, Asia, and Australia, while GSM1900 is deployed in North America and other parts of the
world.
What is HLR
The Home Location Register (HLR) is a database for permanent storage of subscriber data and service
profiles.
What is HTTPS
Hyper Text Transfer Protocol Secure sockets (HTTPS) is a protocol for transmission of encrypted
hypertext over Secure Sockets Layer.
What is i-appli
Sometimes called “Java for i-mode”, i-appli is a Java environment based on CLDC. It is used on handsets
in NTT DoCoMo’s i-mode service. While i-appli is similar to MIDP, it was developed before the MIDP
specification was finished and the two APIs are incompatible.
What is IDE
An Integrated Development Environment (IDE) provides a programming environment as a single
application. IDEs typically bundle a compiler, debugger, and GUI builder tog ether. Forte for Java is Sun’s
Java IDE.
What is iDEN
The Integrated Dispatch Enhanced Network (iDEN) is a wireless network system developed by Motorola.
Various carriers support iDEN networks around the world: Nextel is one of the largest carriers, with
networks covering North and South America.
What is i-mode
A standard used by Japanese wireless devices to access cHTML (compact HTML) Web sites and display
animated GIFs and other multimedia content.
What is J2ME WTK
The J2ME Wireless Toolkit is a set of tools that provides developers with an emulation environment,
documentation and examples for developing Java applications for small devices. The J2ME WTK is
based on the Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile
(MIDP) reference implementations, and can be tightly integrated with Forte for Java
What is Java Card
The Java Card specification allows Java technology to run on smart cards and other small devices. The
Java Card API is compatible with formal international standards, such as, ISO7816, and industry-specific
standards, such as, Europay/Master Card/Visa (EMV).
What is JavaHQ
www.firstranker.com
JavaHQ is the Java platform control center on your Palm OS device.
What is JCP
The Java Community Process (JCP) an open organization of international Java developers and licensees
who develop and revise Java technology specifications, reference implementations, and technology
compatibility kits through a formal process.
What is JDBC for CDC/FP
The JDBC Optional Package for CDC/Foundation Profile (JDBCOP for CDC/FP) is an API that enables
mobile Java applications to communicate with relational database servers using a subset of J2SE’s Java
Database Connectivity. This optional package is a strict subset of JDBC 3.0 that excludes some of
JDBC’s advanced and server-oriented features, such as pooled connections and array types. It’s meant
for use with the Foundation Profile or its supersets.
What is JSR
Java Specification Request (JSR) is the actual description of proposed and final specifications for the
Java platform. JSRs are reviewed by the JCP and the public before a final release of a specification is
made.
What is KittyHawk
KittyHawk is a set of APIs used by LG Telecom on its IBook and p520 devices. KittyHawk is based on
CLDC. It is conceptually similar to MIDP but the two APIs are incompatible.
What is KJava
KJava is an outdated term for J2ME. It comes from an early package of Java software for PalmOS,
released at the 2000 JavaOne show. The classes for that release were packaged in the com.sun.kjava
package.
What is kSOAP
kSOAP is a SOAP API suitable for the J2ME, based on kXML.
What is kXML
The kXML project provides a small footprint XML parser that can be used with J2ME.
What is KVM
The KVM is a compact Java virtual machine (JVM) that is designed for small devices. It supports a subset
of the features of the JVM. For example, the KVM does not support floating-point operations and object
finalization. The CLDC specifies use of the KVM. According to folklore, the ‘K’ in KVM stands for kilobyte,
signifying that the KVM runs in kilobytes of memory as opposed to megabytes.
What is LAN
A Local Area Network (LAN) is a group of devices connected with various communications technologies
in a small geographic area. Ethernet is the most widely-used LAN technology. Communication on a LAN
can either be with Peer-to-Peer devices or Client-Server devices.
What is LCDUI
LCDUI is a shorthand way of referring to the MIDP user interface APIs, contained in the
javax.microedition.lcdui package.
Strictly speaking, LCDUI stands for Liquid Crystal Display User Interface. It’s a user interface toolkit for
small device screens which are commonly LCD screens.
What is MExE
The Mobile Execution Environment (MExE) is a specification created by the 3GPP which details an
applicatio n environment for next generation mobile devices. MExE consists of a variety of technologies
including WAP, J2ME, CLDC and MIDP.
www.firstranker.com
What is MIDP-NG
The Next Generation MIDP specification is currently under development by the Java Community Process.
Planned improvements include XML parsing and cryptographic support.
What is Mobitex
Mobitex is a packet-switched, narrowband PCS network, designed for wide-area wireless data
communications. It was developed in 1984 by Eritel, an Ericsson subsidiary, a nd there are now over 30
Mobitex networks in operation worldwide.
What is Modulation
Modulation is the method by which a high-frequency digital signal is grafted onto a lower-frequency
analog wave, so that digital packets are able to ride piggyback on the analog airwave.
What is MSC
A Mobile Switching Center (MSC) is a unit within a cellular phone network that automatically coordinates
and switches calls in a given cell. It monitors each caller’s signal strength, and when a signal begins to
fade, it hands off the call to another MSC that’s better positioned to manage the call.
What is PCS
Personal Communications Service (PCS) is a suite of second-generation, digitally modulated mobilecommunications
interfaces that includes TDMA, CDMA, and GSM. PCS serves as an umbrella term for
second-generation wireless technologies operating in the 1900MHz range
What is PDAP
The Personal Digital Assistant Profile (PDAP) is a J2ME profile specification designed for small platforms
such as PalmOS devices. You can think of PDAs as being larger than mobile phones but smaller than
set-top boxes. PDAP is built on top of CLDC and will specify user interface and persistent storage APIs.
PDAP is currently being developed using the Java Community Process (JCP).
What is PDC
Personal Digital Cellular (PDC) is a Japanese standard for wireless communications.
What is PDCP
Parallel and Distributed Computing Practices (PDCP) are often used to describe computer systems that
are spread over many devices on a network (wired or wireless) where many nodes process data
simultaneously.
What is Personal Profile
The Personal Profile is a J2ME profile specification. Layered on the Foundation Profile and CDC, the
Personal Profile will be the next generation of PersonalJava technology. The specification is currently in
development under the Java Community Process (JCP).
What is PersonalJava
PersonalJava is a Java environment based on the Java virtual machine1 (JVM) and a set of APIs similar
to a JDK 1.1 environment. It includes the Touchable Look and Feel (also called Truffle), a graphic toolkit
that is optimized for consumer devices with a touch sensitive screen. PersonalJava will be included in
J2ME in the upcoming Personal Profile, which is built on CDC.
What is PNG
Portable Network Graphics (PNG) is an image format offering lossless compression and storage
flexibility. The MIDP specification requires implementations to recognize certain types of PNG images.
What is POSE
Palm OS Emulator (POSE).
www.firstranker.com
What is PRC
Palm Resource Code (PRC) is the file format for Palm OS applications.
What is Provisioning
In telecommunications terms, provisioning means to provide telecommunications services to a user. This
includes providing all necessary hardware, software, and wiring or transmission devices.
What is PSTN
The public service telephone network (PSTN) is the traditional, land-line based system for exchanging
phone calls.
What is RMI
Remote method invocation (RMI) is a feature of J2SE that enables Java objects running in one virtual
machine to invoke methods of Java objects running in another virtual machine, seamlessly.
What is RMI OP
The RMI Optional Package (RMI OP) is a subset of J2SE 1.3’s RMI functionality used in CDC-based
profiles that incorporate the Foundation Profile, such as the Personal Basis Profile and the Personal
Profile. The RMIOP cannot be used with CLDC based profiles because they lack object serialization and
other important features found only in CDC-based profiles. RMIOP supports most of the J2SE RMI
functionality, including the Java Remote Method Protocol, marshalled objects, distributed garbage
collection, registry-based object lookup, and network class loading, but not HTTP tunneling or the Java
1.1 stub protocol.
What is RMI Profile
The RMI Profile is a J2ME profile specification designed to support Java’s Remote Method Invocation
(RMI) distributed object system. Devices implementing the RMI Profile will be able to interoperate via RMI
with other Java devices, including Java 2,Standard Edition. The RMI Profile is based on the Foundation
Profile, which in turn is based on CDC.
What is SIM
A Subscriber Identity Module (SIM) is a stripped-down smart card containing information about the
identity of a cell-phone subscriber, and subscriber authentication and service information. Because the
SIM uniquely identifies the subscriber and is portable among handsets, the user can move it from one
kind of phone to another, facilitating international roaming.
What is SMS
Short Message Service (SMS) is a point-to-point service similar to paging for sending text messages of
up to 160 characters to mobile phones.
What is SOAP
The Simple Object Access Protocol (SOAP) is an XML- based protocol that allows objects of any type to
communicated in a distributed environment. SOAP is used in developing Web Services.
What is SSL
Secure Sockets Layer (SSL) is a socket protocol that encrypts data sent over the network and provides
authentication for the socket endpoints.
What is T9
T9 is a text input method for mobile phones and other small devices. It replaces the “multi-tap” input
method by guessing the word that you are trying to enter. T9 may be embedded in a device by the
manufacturer. Note that even if the device supports T9, the Java implementation may or may not use it.
What is TDMA
Time Division Multiple Access (TDMA) is a second-generation modulation standard using bandwidth
allocated in the 800 MHz, 900 MHz, and 1900MHz ranges.
www.firstranker.com
What is Telematics
Telematics is a location-based service that routes event notification and control data over wireless
networks to and from mobile devices installed in automobiles. Telematics makes use of GPS technology
to track vehicle latitude and longitude, and displays maps in LED consoles mounted in dashboards. It
connects to remote processing centers that turn provide server-side Internet and voice services, as well
as access to database resources.
What is UDDI
Universal Description, Discovery, and Integration (UDDI) is an XML-based standard for describing,
publishing, and finding Web services. UDDI is a specification for a distributed registry of Web services.
What is UMTS
Developed by Nortel Networks, Universal Mobile Telecommunications Service (UMTS) is a standard that
will provide cellular users a consistent set of technologies no matter where they are located worldwide.
UMTS utilizes W-CDMA technology.
What is VLR
The Visitor Location Register (VLR) is a database that contains temporary information about subscribers.
What is WAE
The Wireless Application Environment (WAE) provides a application framework for small devices. WAE
leverages other technologies such as WAP, WTP, and WSP.
What is WAP
Wireless Application Protocol (WAP) is a protocol for transmitting data between servers and clients
(usually small wireless devices like mobile phones). WAP is analogous to HTTP in the World Wide Web.
Many mobile phones include WAP browser software to allow users access to Internet WAP sites.
What is WAP Gateway
A WAP Gateway acts as a bridge allowing WAP devices to communicate with other networks (namely the
Internet).
What is W-CDMA
Wideband Code-Division Multiple Access (W-CDMA), also known as IMT-2000, is a 3rd generation
wireless technology. Supports speeds up to 384Kbps on a wide-area network, or 2Mbps locally.
What is WDP
Wireless Datagram Protocol (WDP) works as the transport layer of WAP. WDP processes datagrams
from upper layers to formats required by different physical datapaths, bearers, that may be for example
GSM SMS or CDMA Packet Data. WDP is adapted to the bearers available in the device so upper layers
don’t need to care about the physical level.
What is WMA
The Wireless Messaging API (WMA) is a set of classes for sending and receiving Short Message Service
messages.
What is WML
The Wireless Markup Language (WML) is a simple language used to create applications for small
wireless devices like mobile phones. WML is analogous to HTML in the World Wide Web.
What is WMLScript
WMLScript is a subset of the JavaScript scripting language designed as part of the WAP standard to
provide a convenient mechanism to access mobile phone’s peripheral functions.
What is WSP
www.firstranker.com
Wireless Session Protocol (WSP) implements session services of WAP. Sessions can be connectionoriented
and connectionless and they may be suspended and resumed at will.
What is WTLS
Wireless Transport Layer Security protocal (WTLS) does all cryptography oriented features of WAP.
WTLS handles encryption/decryption, user authentication and data integrity. WTLS is based on the fixed
network Transport Layer Security protocal (TLS), formerly known as Secure Sockets Layer (SSL).
What is WTP
Wireless Transaction Protocol (WTP) is WAP’s transaction protocol that works between the session
protocol WSP and security protocol WTLS. WTP chops data packets into lower level datagrams and
concatenates received datagrams into useful data. WTP also keeps track of received and sent packets
and does re-transmissions and acknowledgment sending when needed.
Search results for: “public”
-
J2ME Interview Questions
-
Compaq Placement Paper
Compaq paper
->Why paging is used ?
->Which is the best page replacement algo and Why ?
->What is software life cycle ?
->How much time is spent usually in each phases and why ?
->What is testing ?
->Which are the different types of testing ?
->Which are the different phases in Software life cycle (asked again)
->Why is analysis and testing phases very important ?
->Why networks are layered ? What is the advantage of that ?
->How many layers are there in OSI ? Why is it called OSI model ?
->network topologies ?
->Which are the different network toplogies ?
->an example of bus type network.
->What is the Bandwidth of ethernet ?
->Explain the advantage and disadvantage of ethernet ?
->Which is the protocol used in ethernet. (CSMA/CD) Why is it called so ?
->What is the advantage of Ring network ?
->Compare it with ethernet.
->What is inheritance, encapsulation etc.
->If there are too many page faults what is the problem?
->To ensure one pgm. doesnt corrupt other pgm. in a Multi-pgm. enviornment what you should do?
->Which one you will use to implement critical section? Binary Semaphore
-> Which one is not needed for Multi-pgm. enviornment?
options are: virtual memory, security, time sharing, none of the above.
->Which one is not done by Data link layer ? bit stuffing, LRC,CRC,parity check
-> Which one is not related to Data link layer?
-> Which one is not suitable for client-server application?
options are tcp/ip, message passing, rpc, none of theabove.
->Term stickily bit is related to
a)kernel b)undeletable file c) d)none->semaphore variable is different from ordinary variable by ?
->unix system is
a)multi processing
b)multi processing ,multiuser
c)multi processing ,multiuser,multitasking
d)multiuser,multitasking
->x.25 protocol encapsulates the follwing layers
a)network
b)datalink
c)physical
d)all of the above
e)none of the above
->TCP/IP can work on
a)ethernet
b)tokenring
c)a&b
d)none
->a node has the ip address 138.50.10.7 and 138.50.10.9.But it is
transmitting data from node1 to node2only. The reason may be
a)a node cannot have more than one address
b)class A should have second octet different
c)classB ” ” ” ” ”
d)a,b,c
->the OSI layer from bottom to top
->for an application which exceeds 64k the memory model should be
a)medium
b)huge
c)large
d)none
->the condition required for dead lock in unix sustem is
->set-user-id is related to (in unix)
->bourne shell has
a)history record
b)
c)
d)
->wrong statement about c++
a)code removably
b)encapsulation of data and code
c)program easy maintenance
d)program runs faster
->which is true
a)bridge connects dissimiler LANand protocol insensitiveb)router ” ” ” ” ”
c)gateway ” ” ” ” ”
d)none of the above
->const char *
char * const
What is the differnce between the above tow?.
->In Unix inter process communication take place using?.
->About i-node numbers
->Max relaxable permisssion value with out giving write permission to others?.
->About ln(linking)
->Linking across directories?.
->process id for kernell process
->very first process created by kernell
->function to repaint a window immediately?.
->Function entry for DLL in win3.1
->win 3.1 is a
->win 3.1 supports which type of multi tasking?.
->Message displayed when a window is destroyed
->About fork()?
->About send message and post message
->Message to limit the size of window
->System call executable binary file intoa process
->About GDI object?.
->API used to hide window
->Initialize contents of a dialog?.
-C SKILL SET–
->How do you write a program which produces its own source code as its output?
->How can I find the day of the week given the date?
->Why doesn’t C have nested functions?
->What is the most efficient way to count the number of bits which are set in a value?
->How can I convert integers to binary or hexadecimal?
->How can I call a function, given its name as a string?
->How do I access command-line arguments?
->How can I return multiple values from a function?
->How can I invoke another program from within a C program?
->How can I access memory located at a certain address?
->How can I allocate arrays or structures bigger than 64K?
->How can I find out how much memory is available?
->How can I read a directory in a C program?
->How can I increase the allowable number of simultaneously open files?
->What’s wrong with the call “fopen(“c:\newdir\file.dat”, “r”)”?Compaq Paper on 10th April 2010
Questions with Answers
1) What is an object?
An object is an entity, which consist of attributes, behaviors and qualities that describe the object.2) What is a class?
A class represents a collection of attributes and behaviors of object. It is the class from which individual objects created.
For example:-
Bicycle is a class that contain the following attributes
Speed
Gear3) What is OOAD?
OOAD stands for Object Oriented analysis and design. It is a methodology use to analyze, design and develop applications. It visualizes the class and the objects.4) What are the advantages of OOAD?
* Reusability
* Maintainability
* Increase the performance of the system.5) What is Data Abstraction?
It is a process of listing the essential features, without implementation details. Data abstraction is nothing but the extraction of the information which is required and ignoring the other information.6) What is Data Encapsulation?
Data encapsulation or data hiding is a function that keeps the implementation details hidden to the user. The user of the application is allowed to perform only limited task with the class members that are hidden.7) What is the difference between data abstraction and information hiding?
Abstraction mainly focus on the outside view of the object whereas encapsulation prevents the user from seeing the inside view where the properties and behavior of the abstraction is implemented.Cool Why is java not 100% pure OOPS language?
Java doesn?t support 100% pure OOPS concept, since it support primitive datatype like int, long, byte etc, these are not objects.9) Qualities for a program to be 100% OOPS language?
Encapsulation/Data Hiding
1. Polymorphism
2. All predifined types are objects
3. Inheritance
4. Operations performed through messages to objects
5. Abstraction
6. datatypes are to be objects.10) What is early binding?
Early binding or static type or static binding is assigning the value of the variable during design phase. Early binding instruct the compiler to allocate space and perform other task before the application starts executing.11) What are the disadvantages of threads?
o The main disadvantage of using thread is that it is operating system dependent. It require to follow CPU cycle that various from system to system.
o Deadlock occurs12) Why is java case sensitive?
Java is platform independent language. It is widely used for developing code which contains different variables and hence java is case sensitive.13) What is singleton class?
A class which can create a single object at a time is called class. The object is accessible by the java virtual machine. It creates a single instance for the class14) Objects are passed by value or by reference?
In java objects are passed by value. Since, the object reference value is passed both the original and the copied parameter will refer to the same object.15) What is serialization?
It is a method which saves the object state by converting to byte stream.16) What is externalizable interface?
Externalizable interface controls the serialization mechanism. It consist of two methods readexternal and writeexternal. It helps to customize the serialization process.17) What are the different types of inner classes?
* Member classes.
* Anonymous classes.
* Nested top-level classes.
* Local classes.1Cool What are wrapper classes?
Wrapper class represents a base class for the data source. It allows the primitive datatype to be accessed as objects.19) What are the different ways to handle exception?
* By placing the desired code in the try block and allow the catch block to catch the exception.
* Desired exception can be placed in throw clause.20) Is it necessary that each try block must be followed by a catch block?
It is not essential that try block should be followed by catch block.21) What is the difference between instanceof() and isInstance()?
instanceof() is used to see whether the object can be typecast without making use of the exception.
isInstance() is to check whether the specified object is compatible with the class that represent the object.22) How can you achieve multiple inheritance in java?
Multiple inheritance in java implemented in similar to the C++ with one difference the inherited interface should be abstract.23) What is the difference between == and equals methods?
?==? is used to check whether two numbers are equal
?Equals? is used to check whether two strings are equal.24) What are java beans?
Java bean is a platform independent and portable. It helps to develop code that is possible to run in any environment25) What is RMI?
RMI stands for remote method invocation; it enables the developer to create application based on java, in which the java objects are invoked by java virtual machine.sPart 2
1. How does a try statement determine which catch clause should be used to handle an exception?
When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exception is executed. The remaining catch clauses are ignored.2. Is Empty .java file a valid source file?
An empty java file is perfectly a valid java source file.3. Is delete a keyword in Java?
Delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.4. How many objects are created in the following piece of code?
MyClass c1, c2, c3;
c1 = new MyClass ();
c3 = new MyClass ();
c1 and c3 are the two objects created. The c2 is only declared and not initialized.5. What will be the output of the following statement?
System.out.println (“1” + 5);
Output:-
15.6. What will be the default values of all the elements of an array defined as an instance variable?
If the array is of primitive data type then the elements of the array is initialized to default value. If the array is of reference type then it is initialized to NULL.7. What are the different scopes for java variables?
The different scopes for java variables are as follows:-
Local
Instance
Static8. What is the default value of the local variables?
When the local variables are not initialized explicitly the java compiler will not compile. And it will not initialize any default value for these local variable.9. Can main method be declared final?
The main method can be declared final with the addition of public static.10. Does Java provide any constructor to find out the size of an object?
There is no sizeof operator in java. It is not possible to determine the size of the object directly in java.11. What is the Map interface?
Map is an object which helps to map the keys to values. It is not possible to have duplicate keys. It is essential that each key should map to a one value.
Three Map implementations are
Hashmap
LinkedHashmap
Treemap12. What is collection Views?
Collection view is a metho that is used to view map as a collection. This can be done in three ways:-
Values
Keyset
Entryset13. What is multimaps?
Multimap is also like map which map key to multiple values. But there is no separate interface for multimap in Java since it is used quiet often. It?s much more simple to use map whose values to list instance as a multimap.14. What is the SimpleTimeZone class?
It is a subclass of Time zone which represent time zone that could be used with Gregorian calendar. It doesn?t handle any changes.
public class SimpleTimeZone
extends TimeZone15. Is &&= a valid Java operator?
no &= is a valid operator not &&=16. Is “abc” a primitive value?
Abc is a string object it is not primitive value.17. What modifiers can be used with a local inner class?
Some of the modifiers that can be used in the local inner class are as follows:-
Final
Abstract
Static modifier18. Can an unreachable object become reachable again?
An unreachable object becomes reachable if the objects finalize() method is invoked, the object performs operation that causes the object to accessible.19. What happens when you add a double value to a String?
When double value is added to the string it becomes a string object.20. What is Layout Managers?
It is an object that implements LayoutManager interface and also determines the position and size of the components within a container.
Some of the task associated with layout manager are as follows:-
Adding space between components
Adding components to container
Setting up layout manager21. What is a compilation unit?
A compilation unit is composed of two parts: an interface and an implementation. The interface contains a sequence of specifications, just as the inside of a sig ? end signature expression. The implementation contains a sequence of definitions, just as the inside of a struct ? end module expression22. Which package is always imported by default?
?Java.lang? is the package that imported by default.23. What is numeric promotion?
Numeric promotion is a conversion of numeric type of smaller to a larger numeric type,so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required.24. Which arithmetic operations can result in the throwing of an ArithmeticException?
Integer / and % can result in the throwing of an ArithmeticException.25. What is the ResourceBundle class?
It contains locale specific objects. If a program requires locale specific resources then the program can load resource bundle that is appropriate for the current user.
Advantage:-
Make it localized, and can be translated into different languages.
Modification can be done easily.Part 3
1) What is JVM?
JVM enables to convert the source code into the code which can be executed in the system. This makes the java independent of the platform2) Name four container classes?
* Dialog
* FileDialog
* Panel
* Frame3) What is JAR file?
JAR stands for java archive, it is used to compress a class of file.4) What is typecasting?
Typecasting converts entity of one type to entity of another type. It is very important while developing applications.
Casting is of two types:-
1. downcasting
2. Upcasting5) What is serialization and deserialization?
It is process of representing the state of an object in byte stream. Process of restoring the object is done be deserialization.6) What is vector class?
Vector class provides the capability to implement array of objects.7) What is JVM and its use?
The most important feature of Java is platform independent, this is supported by JVM. It converts the machine code into bytes. It is the heart of the java language and a structure programming language.Cool What are the difference between java and C++?
Java adopts byte code whereas C++ doesn?t.
C++ supports destructor whereas java doesn?t support.
Multiple inheritance possible in C++ but not in java.9) Difference between swing and AWT?
AWT is works faster then swing since AWT is heavy weight components.AWT consist of thin layer of code, swing is larger and of higher functionality.10) If a variable is declared as private, where may the variable be accessed?
When the variable is declared private, it can be accessed only inside the class in which it is defined.11) What is final?
A final class cannot be sub classed neither extended. The variables cannot change the value.12) What is static in java?
Static methods are implicitly final, their methods are not attached to an object rather it is attached to a class.13) Is null a keyword?
NULL is not a keyword.14) What is garbage collection?
When an object is no longer used, java implicitly recalls the memory of the object. Since java doesn?t support destructor it makes use of garbage collector in the place of destructor.15) What is the resourceBundle class?
It is used to store the local specific resources inorder to tailor the appearance.16) What is tagged interface?
Tagged interface is similar to the serializable interface, it instruct the complier to perform some activity.17) What is overriding?
When any class use the same name, type and arguments as that of the methods in the super class then the class can override the super class method.1Cool What is referent?
Referent variable are constant variable it cannot be modified to refer to any other object then the one with it was initialized.19) What is the method to implement thread?
Thread can be implemented by run() method20) What is the difference between primitive scheduling and time slicing?
In case of primitive scheduling the task with highest priority is performed until it enters the dead state. In case of time slicing it performs the task for sometime and then enter the ready state.21) What are different types of access modifiers?
public: accessible from anywhere.
private: can be accessed only inside the class.
protected: accessed by classes and subclasses of the same package.
default modifier : accessed by classes contain the same package22) What is the difference between subclass and superclass?
Subclass doesn?t inherit anything from other classes whereas superclass inherit from other class.23) What is a package?
Package is a collection interface and class which provides a very high level of protection and space management.24) What is the difference between Integer and int?-
Integer defined in java. lang package which is a class, whereas int is a primitive data type defined in the Java language itself.25) What is synchronization?
It is mechanism that allows only one thread to process the thread at a time. This is mainly to prevent deadlock.