Getting Inside Java Beginners Guide Prem Kumar download
Getting Inside Java Beginners Guide Prem Kumar download
pdf download
https://ebookmeta.com/product/getting-inside-java-beginners-
guide-prem-kumar/
https://ebookmeta.com/product/version-control-with-git-3rd-
edition-prem-kumar-ponuthorai/
https://ebookmeta.com/product/android-for-absolute-beginners-
getting-started-with-mobile-apps-development-using-the-android-
java-sdk-1st-edition-grant-allen/
https://ebookmeta.com/product/getting-started-in-infosec-
consulting-a-beginners-and-beyond-guide-1st-edition-demopoulos/
https://ebookmeta.com/product/on-the-highway-of-life-a-guide-
book-for-life-aimed-at-teenagers-and-adults-2nd-edition-gunnar-
brehme/
Reaper (The Soul Snatchers MC Book 1) 1st Edition
Lovebite Shorts
https://ebookmeta.com/product/reaper-the-soul-snatchers-mc-
book-1-1st-edition-lovebite-shorts/
https://ebookmeta.com/product/on-our-way-home-from-the-
revolution-reflections-on-ukraine-1st-edition-bilocerkowycz-
sonya/
https://ebookmeta.com/product/acts-of-love-an-instalove-shy-girl-
romance-2nd-edition-cameron-hart-2/
https://ebookmeta.com/product/aws-certified-devops-professional-
engineer-jon-bonso-and-kenneth-samonte/
https://ebookmeta.com/product/implementation-of-the-united-
nations-convention-on-the-law-of-the-sea-state-practice-of-china-
and-japan-1st-edition-dai-tamada/
Broken Promises Broken Duet 2 1st Edition I A Dice
https://ebookmeta.com/product/broken-promises-broken-duet-2-1st-
edition-i-a-dice/
GETTING INSIDE JAVA -
EGINNERS GUIDE
BY
F5 DEVELOPERS
ISBN 978-93-5438-645-9
© F5 Developers 2020
A brand of
E connect@thepencilapp.com
W www.thepencilapp.com
Java – An Overview
History of Java
Features of Java
JVM Architecture
Inheritence
Polymorphism
Encapsulation
Abstraction
Module IV – Multithreading
Overview of Multithreading
Main Thread
Thread Priority
Garbage Collection
Java Applets
Exception Handling
Epigraph
This textbook was written with two primary objectives. The first
is to introduce the Java programming language. Java is a
practical and still-current software tool; it remains one of the
most popular programming languages in existence, particularly
in areas such as embedded systems. Java facilitates writing
code that is very efficient and powerful and, given the ubiquity
of Java compilers, can be easily ported to many different
platforms. Also, there is an enormous code-base of Java
programs developed, and many systems that will need to be
maintained and extended for many years to come. The second
key objective is to introduce the basic concepts of OOPs. At
one-level this is Java-specific: to learn to design, code and
debug complete Java programs. At another level, it is more
general: to learn the necessary skills to design large and
complex OOP systems. This involves learning to decompose
large problems into manageable systems of modules; to use
modularity and clean interfaces to design for correctness, clarity
and flexibility.
Module I
Introduction to Java Programming
Exploring the Variety of Random
Documents with Different Content
She smoothed down her disordered garments, and dusted off
her grimy palms, before venturing to search, in the darkness, for the
bell. She found it readily enough, but it was some time before she
heard the chain-bolt withdrawn from within, a key turned in a
resisting lock, a door unlatched. Then, the door swung open inward,
on its heavy hinges, and Martha found herself face to face with what
she described next day to Cora as, "the livin' image o' that marble
statute in the Metropolitan Museum, down home. The girl in the
flowin' robes, holdin' a queer-lookin' thing, which its own mother
wouldn't reco'nize it for a lamp, in her hand. You told me her name.
Sykey, you said it was, though not spelled that way on the slob she
stood on, I noticed. But, I take your word for it. Well, if this young
lady wasn't just like Sykey, lamp an' all! You'd never know the
difference, exceptin' for complexion."
"I'm Mrs. Slawson," Martha announced at once. "You told my
boy, Sammy, you'd like him run for a doctor."
Sykey paused a moment, bewildered. "Oh, yes. This afternoon.
I remember, now. I thought he had forgotten." She spoke in the
subdued voice one uses when there is sickness in the house.
"No, he didn't forget. My husband is fetchin' the doctor. But I
come on ahead to see if I couldn't help out some, in between times.
My husband an' me is superintendent for Mr. Frank Ronald, two
miles or so down the main road. You know'm prob'ly."
The girl nodded. "My grandmother was taken sick at about four,
this afternoon. She seems stiff on one side. She can't move her arm,
or her leg, and when she talks it sounds as if her tongue were thick.
I got her to bed as well as I could, and I haven't dared leave her
since for more than a minute at a time. We've no telephone. This
little branch road is out of the line of general travel, and we've no
one to send on errands. I've sat at the window all the afternoon,
hoping a team would pass, but nobody went by but your little boy. I
thought I saw you come in a while ago, and I hurried down to the
door, to let you in. But when you were nowhere to be seen, I gave
up in despair. I thought my last chance was gone. I'd have to spend
the night alone with grandmother, and——"
"The door? Ain't this the right door to come in by?" queried
Martha.
There was a moment of hesitation before the answer came.
"Oh, yes. It's the right door for carriages. People afoot generally
prefer the front way—on account of the veranda-steps, you know."
Martha gazed at her companion a moment in silence, then
quietly doubled over, in a fit of irrepressible merriment.
"If you'd just as lief, I'd prefer you wouldn't tell Sammy, I mean
Mr. Slawson," she said, when she could enunciate. "He'd never get
over my thinkin' I'm carriage-comp'ny. An' he'd kill himself laughin'
at the sight o' me, climbin', hands an' knees, up your high stoop-
with-no-steps, which the back view, lookin' at me from behind,
certaintly musta been funny. But I've no business detainin' you away
from your gran'ma. D'you think she'd think me pushin', if I give her a
hot bath, an' a brisk alcohol rub? Sam may not get the doctor right
off, an' a bath an' a alcohol rub is as good as anythin' I know of for a
str—for a——"
Katherine Crewe searched her face. "For a what?" she
demanded uncompromisingly.
"A poor circulation," Martha returned imperturbably.
"I've no alcohol. There's no running water in the house. I let the
fire in the kitchen range go out hours ago."
"Never you mind about that. I got some alcohol by me, an' if
you show me the kitchen range, I'll show you a fire in it, all right, all
right."
"I don't know how it is," sighed Miss Crewe, leading the way
through dark passages, past shadowy doors, "but, somehow, a great
load seems lifted off my heart, now you're here. I've never seen you
before, but I feel you're able to set everything right."
"You go on feelin' that way. It'll help me no end with the settin'.
An', now, don't you wait here. You run on up to the ol' lady, an' I'll
be along presently. I'm used to kitchens. I can find all I need in'm,
an' when I got the hot water, I can find my way out."
"I'm afraid you'll think the floor isn't very clean," the girl
observed regretfully, pausing, with her hand upon the doorknob, to
gaze back dubiously. "I suppose it needs a long-handled scrubbing-
brush, and——"
By the light of the lamp Miss Crewe left behind her when she
went, Martha made a quick survey of the premises. "'A long-handled
scrubbing-brush,'" she quoted quizzically. "A long-handled Irish
woman, more likely. My, but it's a caution, if you turn up your nose
at work, how the dirt will gather under it. It's like to take me all
night to make a impression on this place. The grate chock-full o'
clinkers, an' the kettles—say, but I didn't say I'd give the ol' lady a
hot mud-bath."
For a few moments the kitchen resounded with thunderous
echoes to the vigorous efforts of Mrs. Slawson toward
reconstruction. Then followed other sounds, those of crackling wood,
igniting coals, bubbling water, escaping steam. In the midst of it all,
Sykey appeared in the doorway.
"Oh, Mrs. Slawson," she deplored, before she had fairly crossed
the threshold. "I'm afraid it's no use. Grandmother won't have it. I
told her about your coming and offering to help, and—she won't
have it."
Martha nodded reassuringly. "Well, we won't worry her talkin'
about it, an' we won't worry our-selves thinkin' about it. Have you
gotta bath-tub handy?"
"Yes, but——"
"Plenty o' towels—bath-towels? The fuzzy-wuzzy, warm kind
which they call'm Turkish or Russian, I don't know which, but that
gets up a gentle irritation when applied, just like some folks."
The girl nodded.
"Then, the best thing you can do is, get'm ready. It'll keep your
mind off'n her not bein' willin'. We want everything laid out handy,
so's we won't have to go on a still-hunt the last minute. I got plenty
o' water, steamin' hot. If you'll go along up, an' kinda perpare for the
worst, I'll folla along presently, an'—we'll have it."
A single shaded lamp left the great bedroom in partial shadow,
but as Martha approached the majestic four-poster, about five
minutes later, she made out the figure of a diminutive old woman,
stretched full length beneath the spare coverings. There could be
nothing formidable in such a tiny figure. It was only when Mrs.
Slawson looked down upon the face, that she met a pair of eyes that
fairly held her at bay.
"I'm Mrs. Sammy Slawson," she announced, a shade less
confidently than usual. "I live down the road a ways—superintendent
for Mr. Frank Ronald, me an' my husband is."
The little body on the bed might be half dead, but the great
eyes were fiercely alive. They measured Mrs. Sammy Slawson from
head to foot, with a stare of icy insolence.
Martha did not quail. She met the stare with a perfectly
unflinching gaze, then went on talking as she worked, as calmly as if
she were not being challenged in mortal combat.
"I s'pose you don't like the idea of a trained nurse? Many don't.
I ain't trained, but I'm a nurse all right, all right, an' if not one of the
red, cross kind, why that's only because, as I tell Sammy, I had so
much exper'ence with Ma an' the childern that, be this an' be that, I
learned to keep my shirt on, an' not fly out, when tried. Folks that's
ailin' has enough bother on their chests, without havin' to be
pationate, into the bargain. It's up to them that's tendin'm, to do the
pationate ack. Now, take me, for instance. You couldn't ruffle me, if
you took a flutin'-iron to me. That's what come o' bein' sixteen years
married, with a mother-in-law threw in, for good measure. It learns
you to keep your temper. You might need it for the nex' time. I don't
blame you a mite if you feel like bitin' the head off a tenpenny nail.
To have your circulation go back on you, like, is a kind of nuisance,
no doubt about it. But, sakes alive! It might happen to anybody, as
Ma always says when she breaks things she hadn't oughta touched,
in the first place. The best thing I know of, for poor circulation, is a
hot bath, an' a alcohol rub—just for a starter. I got plenty o' hot
water handy, an'—now don't you stir, nor bother your head worryin'
about givin' your gran'daughter an' I trouble! We got the bath-tub all
ready, an' yes—them towels is just the right things! Couldn't be
better! An'—here goes!"
Martha averted her face, as she bent over the helpless form, to
escape the furiously battling eyes. She felt as mean as if she had
been taking base advantage of a defenseless creature to do it harm,
instead of good; but, in spite of this, and in spite of the inarticulate
sounds that came from between the twisted lips at the touch of her
hands, she gently lifted the old woman in her strong arms, stripped
her, as she would a baby, and put her in the tub.
Tears of helpless rage oozed from between the closed lids, but
Mrs. Slawson pretended not to see. She kept up a cheerful babble,
what time her poor little antagonist simmered, and again during all
the time her firm, strong fingers were plying away at the nerveless
flesh.
"Don't you try to lug that heavy tub, Miss Crewe, dear. Wait till I
can lay hand to it. If you must be doin' somethin', s'pose you
smooth down the sheets, an' see there's no crumbs in the bed.
There's nothin' like crumbs in the bed for keepin' you from feelin'
lonesome, but I guess your gran'ma willa had enough comp'ny, by
the time she gets rid o' me. Poor ol' lady! I been like a grain o' sand
in her eye, which it don't help her none, to say I'm sorry.
"Guess she'll think she's had her dose o' both, to-night, all right.
Say! Hark! Is that a auta-horn? Sounds like Sammy's."
"Then he's brought Dr. Driggs!" Kate Crewe cried joyously.
"Well, you can take it from me he's brought Dr. Somethin'. It
mayn't be Dr. Driggs, but Sammy wouldn't have the face to come to
me, 'less he'd got somethin', that'd, at least, pass for what I sent'm
out for," observed Mrs. Slawson suavely.
As it happened, it was not Dr. Driggs whom Sam had brought.
Kate Crewe, going to the door to admit them, saw, even in the dark,
that neither of the men before her was of the familiar build of the
old physician she knew so well. But there was no time for regret,
and, after a few brief words of self-introduction, she led the way
upstairs.
Meanwhile, Martha had made what she called "a fist" at clearing
away all traces of her recent ministrations, so, when the doctor
appeared, he found an orderly room, from which she quietly slipped
as he entered.
Downstairs she found Sam.
"You see, Dr. Driggs was off somewheres, up the mountain, and
no one could find him," he explained. "I couldn't make out to get
him, the best I could do. Then I asked wasn't there some other
doctor in the place, but short of Burbank, twenty-five miles off, there
wasn't. Dr. Driggs has all the practice 'round these parts. Then, all at
once, somebody happened to think of a young fellow from Boston,
here for his health—same as I, I guess. He's a M.D. all right—laid up
for repairs, as you might say. He's boarding at the Fred Trenholm's.
A wink's as good as a nod to a blind horse, and off I went to Milby's
Corners. At first, Dr. Ballard—that's his name—said he didn't know
about coming. But, after a bit, he decided he would. He's a fine,
outstepping young gentleman, as ever you saw. You'd never think
his lung had a spot in it, more's the pity."
"Neither would you think yours has," Martha rejoined simply.
Sam searched her face for a moment. "Say, you're not worrying
about me, are you, mother?" he put to her gently.
Mrs. Slawson turned to fill her scrubbing pail with hot water
from one of the kettles on the stove.
"Worryin' about you? Sure I'm not. What'd I be worryin' about
you for? You're chesty enough, ain't you, goodness knows. An' your
cough has almost went. I like sleepin' outdoors nights. The wide,
wide world ain't too big a bedroom for me. An' this air certaintly is
more healthy for the childern, than down home—I should say, New
York."
"Only—you kind of miss the old town, eh, mother?"
Martha scrubbed away in silence for a moment. "Well, not as
you might say miss. Certaintly not. But I guess I'd find it hard work
to live in any place else, so long as I lived in New York (havin' been
born there), an', that bein' the case, a body thinks back to it oncet in
a while—which, of course, thinkin' is by no means missin'."
Sam considered. "How'd you like to take a day off, and go down
with me, after Mr. Ronald gets back? There's some things he wants
me to see about, I'll have to look into myself in the city, and you
might as well come along. We'll leave the children with Ma, and just
go off on a spree—us two."
Martha sat back on her heels, and looked up at her husband out
of a face that glowed.
"Say, Sam, could we? Somehow, it don't seem as if we could.
We two never been alone any time, since we begun keepin' comp'ny.
Firstoff, there was Gilroy! He wouldn't believe I perferred you to him,
till the marriage-lines was ackchelly read over our heads. He was
always hangin' 'round. Then, there was Ma, an' then come the
childern. So, take it all in all, we certaintly been, what Mrs. Sherman
'd call, 'carefully chaperoned.' Are you sure it'd be proper, the two of
us goin' off alone, like that?"
Sam grinned.
"Let's us go," said Martha. "It'll be like the weddin'-tour we
didn't have, when we was married."
Again Sam smiled. "Sure we'll go. You fairly earned a day off,
mother. All these sixteen years, working like Sam Hill, and never a
grouch out of you. Yes, we'll go—and, I tell you what's more, we'll
spend some. We'll just let go for once, and spend some, on
something we don't have to. I haven't made out to do as well by you
as Peter Gilroy would, Martha. He used to say, if you'd marry him,
he'd put velvet under your feet. It's been more than I could do,
sometimes, to put good shoe-leather."
"Well, I never been Little Barefoot, yet, have I?" inquired Martha
blandly.
Sam shook his head. "Since we been up here, we made out to
save a bit and, by this and by that, we got more coming to us. We
never could seem to fix things, before, so's we could lay by. Couldn't
square the bills, and save, but——"
"It's a kinda stunt to square your bills, an' lay by when, every
week, nothin's comin' in."
"Sure," said Sam.
Martha meditated in silence for a moment. "If Cora knew what's
goin' on inside me this minute, it'd be my finish in the bossin'
business, so far as she's concerned. She's almost got to the place,
now, where she feels she could give Moses points on the Fifth
Commandment. She's pretty near caught on to the little game that
parents is a grand bluff, an you're wastin' time to bother with their
figaries. But she'd do it sure, if she knew how I feel at present—just
as much of a silly kid as her."
Sam's satisfaction broadened. "Good work!" said he.
"An' talkin' o' work," his wife took him up quickly, in an altered
tone, "we better get busy on ours, or we won't be done this side o'
mornin'. You get a move on, Sammy, an' bring in a good stock o'
wood, out o' the shed there. An' when you got that done, we'll talk
about coal from the cella."
"What's the matter with the old lady hiring her own help?"
inquired Sam practically. "She's got money to burn, hasn't she?"
"Sure. But, she don't burn it. It's to keep the young lady from a
wintry chill, I'm lendin' a hand. An' if it comes to that, a body as
close as ol' lady Crewe, you'd have to feel sorry for her, on her own
account. She must be cold comfort to herself, with a heart like that
inside her. Them kind, that's so wrapped up in their money, some
part of'm's bound to go bare. A thing like money won't reach all the
way 'round a human creature, not by a long sight, an' you can't
make it. Them kind needs help in their nakedness, as much, an'
more, than the rest of us."
Sam making no attempt to dispute it, the two worked on in
silence, until they were interrupted by the abrupt opening of the
door.
"Mrs. Slawson!"
Martha raised herself slowly from her kneeling posture, at sound
of Katherine Crewe's cry of appeal.
"The ol' lady—she ain't—worse?"
"Not worse, but—unmanageable. She won't let Dr. Ballard go
near her. We can't do a thing with her. Won't you, please, come up
and try what you can do. You made her mind about the bath, you
know."
Martha rinsed off her soapy wrists with soapier hands in a
gesture, as of one preparing for the fray. "Now, what do you think o'
that!" she observed calmly. "The size of her! No bigger than a
minute, an' gettin' the best of a able-bodied pair, like you an' that
fine-appearin' young gen'lman upstairs. Don't it beat all?"
Katherine did not stop long enough to admit that it did, but
hurried on ahead, leaving Mrs. Slawson to follow closely in the rear,
pausing outside the sick-chamber door, where the doctor stood like a
sentinel on guard. Martha passed them both without a word,
entered the room, and made directly for the bed. She slid a gentle
arm beneath the narrow old shoulders, drew out the pillow, and
replaced it, shaken into more comfortable shape.
"There! That's a whole lot better, ain't it?" she inquired amiably.
No answer. The old woman glared up at her hostilely, but it was
noticeable that the worst fire had been drawn from the angry eyes.
Martha picked a thread from the carpet, and, winding it neatly
about her forefinger, put the tiny coil into her apron pocket.
Presently she plunged an exploring hand beneath the bed-covering.
"Say, them hot-water bags ain't been a mite o' good to you.
Your feet's like two lumps o' ice. They extend clear up to your knees.
Did the doctor know, before he went, you had cold feet like that?"
No answer.
"He can't be much of a doctor, an' no mistake, to go off, an'
leave a patient with such a chill on 'er, so even arthurficial heat
couldn't get in its fine work. I'm surprised! My husband was the one
brought'm here, I must confess. He couldn't do no better, I guess.
Dr. Driggs wasn't home, an' poor Sam took what he could get. When
nothin's left, the king can't choose. But wouldn't you think any fella
that called himself a doctor would know enough not to leave a lady,
so the ones about her wouldn't know how to handle her case, an'
she'd get worse by the minute, so to speak, for want of a stitch in
time, that'd save her nine—meanin' doctors from the city, per'aps,
an' trained nurses, night an' day, so the expense alone would kill her,
not to mention other complercations. I call it a shame!"
It was not impossible for a shrewd observer to follow the mental
processes of the active old brain, for they were clearly enough
revealed in the passionate, too-expressive eyes.
Mrs. Slawson, appearing to notice nothing, bided her time,
while, little by little, her "ol' lady" betrayed herself, in all her mean
guises of misanthropic distrust, growing self-doubt, and, last—
overwhelming all—susceptibility to the suggestion of fear, response
to the stimulus of—money.
"Call—that—man!"
The words were rapped out with the brevity and precision of a
military command.
"Eh?" said Martha, appearing to rouse from a spell of complete
inattention.
"Call—that—doctor!"
Mrs. Slawson moved her massive frame slowly in the direction
of the door.
"Miss Katherine! Miss Katherine!" she shouted past the two
silent figures, just outside the threshold, "Say, Miss Katherine! Are
you downstairs? Yes? The doctor gone yet? Say, hurry! Get Sam to
go after'm, an' see can he call'm back! Your gran'ma wants'm!"
CHAPTER III
CHAPTER IV