Murder mysteries recommendations, you cannot put down.

This is Why We Lie by Gabriella Lepore.

In Gardiners Bay, everyone has a secret. The population of Gardiners Bay is disturbed when Jenna Dallas and Adam Cole discover Colleen O’Dell’s death drifting off the coastline of their seaside village. The fact that her drowning was not an accident is even more surprising.Jenna begins her own investigation as her closest friend becomes a crucial suspect. She knows she needs Adam on her side when she discovers scandals at Preston Prep School that link back to Rookwood reform school.Adam is used to receiving critical stares as a student at Rookwood, but now his pals are being probed by the police. Even if it means trusting Jenna, Adam will do whatever he can to keep them safe.The truth begins to distort as the falsehoods unfold. Only one thing is certain: someone will have to pay the price.

Sadie by Courtney Summers.

A search for a missing girl leads to a quest of vengeance. A podcast that follows the clues she’s left behind, similar to Serial. And a cliffhanger that you won’t be able to forget.Sadie’s life hasn’t been easy. She’s been raising her sister Mattie in an isolated tiny town since she was a child, doing her best to create a decent life for them and keep their heads above water.When Mattie is found dead, however, Sadie’s entire life falls apart. After a bungled police investigation, Sadie is desperate to discover her sister’s killer and sets out on the road with only a few hints to guide her.When West McCray overhears Sadie’s tale at a local gas station while working on a feature about little, forgotten villages in America, he becomes obsessed with recovering the missing child. He launches his own podcast while he follows Sadie’s trail, attempting to figure out what occurred and finding her before it’s too late.Courtney Summers has authored her career-defining book. Sadie is a fast-paced, suspenseful novel that will have you engrossed until the very last page.

The Cheerleaders by Kara Thomas.

In Sunnybrook, there are no longer any cheerleaders.Then there was the automobile tragedy, in which two girls died after colliding with a tree on a wet night. The killings occurred not long after. The man next door murdered those two young ladies. Because he was shot by the cops, no one will ever know why he did it. The final cheerleader to die was Monica’s sister. Sunnybrook High School dissolved the cheer squad after she committed herself. Nobody wanted to think about the females they’d lost.It had been five years since then. Sunnybrook High’s professors and students now wish to honour the fallen cheerleaders. Monica, on the other hand, finds it difficult. She only want to forget. Monica’s world, meanwhile, is beginning to fall apart. There are the letters in her stepfather’s desk, an unearthed, years-old mobile phone, and a weird new classmate. It doesn’t matter what occurred five years ago. Some locals know more than they’re letting on. Monica is somehow in the core of it all.Sunnybrook may no longer have cheerleaders, but it doesn’t mean no one else is in danger.

City of Saints and Thieves by Natalie C. Anderson.

A girl who doesn’t exist dwells in the shadows of Sangui City. Tina and her mother arrived in Kenya as refugees hoping for a new life and a place to call home after leaving the Congo. Her mother swiftly got employment as a maid for a wealthy household, including Roland Greyhill, one of the city’s most powerful businessmen. Tina quickly discovers, however, that the Greyhill fortune was built on a life of corruption and criminality. So when her mother is found shot to death in Mr. Greyhill’s study, she knows who’s to blame.Tina spends the next four years alone on the streets, working as a master thief for the Goondas, Sangui City’s local gang, with vengeance on her mind. Tina returns to the Greyhill estate thanks to a work for the Goondas, giving her the opportunity for retribution she’s been waiting for. But the sorrow of previous scars and the draw of old connections overcome Tina as soon as she enters the magnificent mansion, putting in motion a hazardous chain of events that might cost Tina her life at any moment. But in this fast-paced, nail-biting thriller, she holds on because she ultimately discovers the horrific truth about who killed her mother—and why.

They Wish They Were Us by Jessica Goodman.

A murder mystery set in the setting of a prestigious Long Island prep school. Everything on Gold Coast, Long Island, appears flawless, from the posh downtown stores to the perfectly groomed beaches to Jill Newman’s and her friends’ polished uniforms. Nothing is as it appears, as Jill discovered three years ago.Jill’s closest friend from freshman year, the smart and dazzling Shaila Arnold, was murdered by her lover. Graham confessed, the matter was closed, and Jill tried to move on after that awful night on the beach.Now that Jill is in her senior year, she is determined to make it the finest one yet. She is, after all, a senior and a Player, a member of Gold Coast Prep’s exclusive, not-so-secret society. Senior Players have the nicest parties, the finest grades, and the entire school’s adulation. Jill is going to have a great year. She is certain of it.When Jill begins to receive messages professing Graham’s innocence, her plans for a flawless senior year begin to fall apart. Who killed Shaila if it wasn’t Graham? Jill swears to find out, but doing so might jeopardise her friendships as well as her future.

How We Fall Apart by Katie Zhao.

Nancy Luo is taken aback when her former closest friend, Jamie Ruan, a top-ranked junior at Sinclair Prep, vanishes and is later discovered dead. Nancy is even more taken aback when word gets out that she and her friends—Krystal, Akil, and Alexander—are potential suspects, courtesy to “The Proctor,” a student who anonymously incriminated them using the school’s social networking app.Jamie used to be friends with all of them, and she knew all of their deepest, darkest secrets. Now The Proctor is aware of them as well. The four must find the genuine killer before The Proctor exposes them to too much and costs them too much, such as Nancy’s entire scholarship.Nancy begins to think that her pals are holding secrets from her as well. When their ex-best buddy comes up dead, students at an elite prep school are compelled to confront their secrets.

Liars Inc. by Paula Stokes.

Max Cantrell has never been a big believer in telling the truth, so when the chance to sell fake permission slips and cover stories to his classmates emerges, it seems like a decent way to make some money and spice up a dull senior year. Max creates Liars, Inc. with the aid of his buddies Preston and Parvati. Suddenly, everyone requires something, and money begins to flow in. Who’d have guessed that lying could be so lucrative?When Preston requests his own cover storey to visit a girl he met online, Max is more than happy to oblige. Until Preston does not return home. Then the evidence piles up, horrifying hints leading the detectives to Preston’s body. Numerous hints that lead to Max as the culprit. Will Max be able to track out the true killer before going to prison for a crime he didn’t commit?

A book for every romance trope. (part 2)

Soulmates.

Crave by Tracy Wolff.

When Grace walked inside the academy, her entire life altered. Nothing about this facility or the other students there is right. Among gods…or monsters, she is a simple mortal. She’s still undecided about which of the warring sides she belongs to, if she even does.
There’s also Jaxon Vega. A dangerous vampire who hasn’t felt anything in a hundred years. But there’s something about him that appeals to me, something damaged in him that matches what’s broken in her in some way.Because Jaxon built a barrier around himself for a purpose. And now someone wants to awaken a sleeping monster, and she’s starting to wonder if she was deliberately sent here as bait.

Arranged marriage.

The Bridge Kingdom by Danielle L. Jensen.

Lara, a warrior princess who was raised in seclusion, is guided by two certainties. The first is that the Bridge Kingdom’s King Aren is her foe. The second is that she will be the one to force him to kneel.The Bridge Kingdom enriches itself while depriving its rivals, including Lara’s hometown, by being the sole passage through a storm-ravaged planet. So when she’s sent as a bride under the pretence of peace, Lara is ready to go to any length to pierce its impenetrable fortifications. As well as its king’s defences.However, when she infiltrates her new home and learns more about the battle over the bridge, Lara begins to doubt if she is the hero or the villain.And when Lara’s feelings for Aren shift from icy animosity to ferocious love, she must decide whose country she will preserve… and which kingdom she will annihilate.

Childhood friends to lovers.

Lady Midnight by Cassandra Clare.

It’s been five years since the events of City of Heavenly Fire pushed the Shadowhunters close to extinction. Emma Carstairs is no longer a grieving girl, but a young lady hell-bent on figuring out who killed her parents and exacting vengeance.Emma must learn to trust her mind and her love as she explores a diabolical scheme that runs from the Sunset Strip to the magical waves that pound the beaches of Santa Monica with her parabatai Julian Blackthorn. If only her heart didn’t led her down the wrong path.Julian’s brother Mark, who was kidnapped by the faeries five years ago, has been returned as a negotiating chip, further complicating matters. The faeries are frantic to figure out who is killing their kind, and they need the Shadowhunters’ aid. In faerie, however, time moves at a different pace, thus Mark has hardly matured and doesn’t recognise his family. Is he ever going to come back to them? Will the faeries actually let it happen?

Love Square.

Renegades by Marissa Meyer.

The Renegades are a group of prodigies — people with exceptional powers — who rose from the wreckage of a crumbling society to bring peace and order to a place where chaos ruled. Except for the criminals they once toppled, they remain a symbol of hope and courage as advocates of justice.Nova has a grudge against the Renegades, and she’s out for vengeance. She meets Adrian, a Renegade youngster who believes in justice — and in Nova — as she comes closer to her target. Nova’s devotion, on the other hand, is to a villain who has the power to destroy them both.

The guy falls first.

The Selection by Kiera Cass.

The Selection is a once-in-a-lifetime opportunity for thirty-five females. The chance to break out from the life that has been carved out for them since birth. To be immersed in a world of gilded dresses and expensive gems. To live in a palace and fight for Prince Maxon’s affections.Being Selected, on the other hand, is a nightmare for America Singer. It means abandoning her hidden love for Aspen, a member of a lower caste. Leaving her home to compete for a crown she doesn’t desire in a heated competition. Living in a palace where deadly rebel attacks are a continuous concern.Then there’s America’s meeting with Prince Maxon. Gradually, she begins to doubt all of her expectations for herself, realising that the life she’s always envisaged may pale in comparison to a future she’s never imagined.

Friends to lovers.

Anna and the French Kiss by Stephanie Perkins.

Anna is looking forward to her senior year in Atlanta, where she has a terrific job, a supportive best friend, and a growing crush. That’s why she’s not happy to be sent to boarding school in Paris—until she meets Étienne St. Clair, that is. Étienne is smart, charming, and gorgeous, and he also has a serious relationship. However, in the City of Light, desires do come true. Will their long-awaited French kiss put a stop to a year of romantic near-misses?

A book for every romance trope. (part 1)

Love triangle.

The Inheritance Games by Jennifer Lynn Barnes.

Avery Grambs has a plan for a brighter future: go through high school, obtain a scholarship, and leave. When millionaire Tobias Hawthorne dies and gives Avery almost his entire wealth, her fortunes shift in an instant. What’s the catch? Avery doesn’t know why, or who Tobias Hawthorne is. Avery must move into the huge, hidden passage-filled Hawthorne House to accept her inheritance, where every room bears the old man’s touch—and his love of puzzles, riddles, and codes.Unfortunately for Avery, Hawthorne House is also home to the family that Tobias Hawthorne has recently evicted. The four Hawthorne grandchildren are among them: dangerous, charismatic, smart guys who grew up with the expectation of inheriting billions one day. Grayson Hawthorne, the heir apparent, is convinced that Avery is a scam artist and is determined to bring her down. Jameson, their grandfather’s final hurrah, sees her as a twisted conundrum, a puzzle to be solved. Avery will have to play the game herself to survive in a world of money and power, with danger lurking around every corner.

Grumpy and sunshine.

Dash and Lily’s Book of Dares by Rachel Cohn and David Levithan.

So starts the newest whirlwind romance from the bestselling writers of Nick & Norah’s Infinite Playlist, the latest whirlwind romance from the bestselling authors of Nick & Norah’s Infinite Playlist. Lily has placed a red notebook full of dares on the shelf of a favourite bookshop, waiting for the right person to come along and accept them. Is Dash, however, the ideal person for the job? Or are Dash and Lily doomed to swap dares, aspirations, and wishes in a notebook they pass back and forth at various spots across New York? Could their real-life selves relate as well as their virtual ones? Or will they be a hilarious mismatch of epic proportions? Rachel Cohn and David Levithan have crafted a love storey that will have readers hunting for love on bookshop shelves.

Star-crossed lovers.

Six of Crows by Leigh Bardugo.

Ketterdam is a busy crossroads of international trade where anything can be gotten for the right price—a fact that criminal prodigy Kaz Brekker is well aware of. Kaz is offered the opportunity to take part in a dangerous robbery that may make him wealthy beyond his wildest dreams. But he won’t be able to do it alone…

A convicted criminal with a hunger for vengeance

A sniper who can’t afford to lose a bet

A fugitive from justice with a privileged past

The Wraith is a sassy spy.

A Heartrender uses her abilities to keep herself alive amid the slums.

A criminal with a knack for improbable escapes

If they don’t murder each other first, Kaz’s crew may be the only thing standing between the Earth and disaster.

Fake dating.

The Deal by Elle Kennedy.

Hannah Wells has finally met someone who makes her want to turn on. However, while she may be self-assured in other areas of her life, she carries a lot of baggage. She’ll have to push herself out of her comfort zone if she wants to capture her crush’s attention… even if it means teaching the obnoxious, juvenile, conceited captain of the hockey team in return for a fake date.Garrett Graham’s only ambition after graduation has always been to play professional hockey, but his slipping GPA is jeopardising everything he’s fought so hard for. He’s all for helping a caustic brunette make another guy envious if it means keeping his spot on the squad. Garrett quickly realises that pretending isn’t going to cut it as one unexpected kiss. Now all he needs to do is persuade Hannah that the man she desires resembles him.

I’m here to kill you.

The Wrath and The Dawn by Renée Ahdieh.

Each morning brings misery to a new family in a kingdom controlled by a bloodthirsty boy-king. Khalid, Khorasan’s eighteen-year-old Caliph, is a monster. He takes a new wife every night, only to have a silk chain tied around her throat the next morning. When Shahrzad’s sixteen-year-old best friend is murdered by Khalid, he swears revenge and offers to be his next wife. Shahrzad is determined not just to survive, but also to put a stop to the caliph’s reign of terror.Shahrzad seduces Khalid night after night, telling him enthralling stories and securing her survival, despite the fact that she knows each morning may be her last. But then something unexpected happens: Khalid turns out to be nothing like she had imagined him to be. This monster is a young boy who has a broken heart. Surprisingly, Shahrzad finds herself in love. What gives that this is possible? It’s a heinous act of treachery. Even nevertheless, Shahrzad has come to realise that not everything in this marble and stone mansion is as it appears. She vows to find whatever secrets are hidden and, despite her love for him, to kill Khalid in retaliation for the numerous lives he has stolen. Will their love be able to endure in this world of secrets and stories?

Enemies to lovers.

The Cruel Prince by Holly Black.

When ude’s parents were slain, she and her two sisters were kidnapped and taken to the perilous High Court of Faerie. Jude, despite her mortality, wants nothing more than to belong there ten years later. However, many fey loathe humans. Especially Prince Cardan, the High King’s youngest and most vicious son.She must resist him–and bear the consequences–in order to get a seat on the Court.Jude finds her own propensity for deception and slaughter as she becomes further immersed in palace intrigues and deceptions. But, when treason threatens to drown the Faerie Courts in bloodshed, Jude will have to put her life on the line in a hazardous partnership to preserve her sisters and Faeri.

The Prince and the Commonner.

Red Queen by Victoria Aveyard.

This is a universe where blood is separated into two types: red and silver. The Reds are commoners who are dominated by a Silver elite who wield godlike abilities. And it appears that nothing will ever change for Mare Barrow, a seventeen-year-old Red girl from the impoverished Stilts. That is, until she is offered a job at the Silver Palace. Mare realises that, despite her crimson blood, she wields a lethal power of her own here, surrounded by the individuals she despises the most. One that poses a challenge to the power equilibrium. Fearful of Mare’s potential, the Silvers declare her a long-lost Silver princess who is now betrothed to a Silver prince and conceal her in plain sight.Mare works quietly to aid the Red Guard, a militant opposition group, in overthrowing the Silver dictatorship, despite the fact that one error would result in her execution. Mare has engaged a hazardous dance—Reds against Silvers, prince against prince, and Mare against her own heart—in this realm of treachery and deception.

RAJESHWARI KUWAR_OOPJ_CA3

  ENCAPSULATION IN JAVA WITH EXAMPLES 

BY- RAJESHWARI KUWAR

  The process of binding data and corresponding methods (behavior) together into a single unit is called encapsulation in Java.

In other words, encapsulation is a programming technique that binds the class members (variables and methods) together and prevents them from being accessed by other classes.

Thereby, we can keep variables and methods safes from outside interference and misuse.

Every Java class is an example of encapsulation because we write everything within the class only that binds variables and methods together and hides their complexity from other classes.

Another example of encapsulation is a capsule. Basically, the capsule encapsulates several combinations of medicine.

If combinations of medicine are variables and methods then the capsule will act as a class and the whole process is called Encapsulation as shown in the below figure.

In the encapsulation technique, we declare fields as private in the class to prevent other classes from accessing them directly. The required encapsulated data can be accessed by using the public Java getter and setter method.

 If the field is declared private in the class, then it cannot be accessed by anyone from outside the class and hides the field within the class. Therefore, it is also called data hiding.

Let’s understand Encapsulation in java better by taking real-time examples.

 

Realtime Example of Encapsulation in Java

Example 1:

Schoolbag is one of the most real examples of Encapsulation. Schoolbags can keep our books, pens, etc.

 

Example 2:

When you log into your email accounts such as Gmail, Yahoo Mail, or Rediff mail, there is a lot of internal processes taking place in the backend and you have no control over it.

 When you enter the password for logging, they are retrieved in an encrypted form and verified, and then you are given access to your account.

 You do not have control over it that how the password has been verified. Thus, it keeps our account safe from being misused.

Example 3:

Suppose you have an account in the bank. If your balance variable is declared as a public variable in the bank software, your account balance will be known as public, in this case, anyone can know your account balance. So, would you like it? Obviously, No.

So, they declare the balance variable as private for making your account safe, so that anyone cannot see your account balance.

The person who has to see his account balance, will have to access only private members through methods defined inside that class and this method will ask your account holder name or user Id, and password for authentication.

Thus, we can achieve security by utilizing the concept of data hiding. This is called Encapsulation in Java.

 

How to achieve or implement Encapsulation in Java

There are two important points whereby we can achieve or implement encapsulation in the Java program.

1. Declaring the instance variable of the class as private. so that it cannot be accessed directly by anyone from outside the class.

2. Provide the public setter and getter methods in the class to set/modify the values of the variable/fields.

 

Advantages

There are the following advantages of encapsulation in Java. They are as follows:

1. The encapsulated code is more flexible and easier to change with new requirements.

2. It prevents the other classes to access the private fields.

3. Encapsulation allows modifying implemented code without breaking other code that has implemented the code.

4. It keeps the data and codes safe from external inheritance. Thus, Encapsulation helps to achieve security.

5. It improves the maintainability of the application.

6. If you don’t define the setter method in the class then the fields can be made read-only.

7. If you don’t define the getter method in the class then the fields can be made write-only.

 

A disadvantage of Encapsulation in Java

The main disadvantage of encapsulation in Java is it increases the length of the code and slows shutdown execution.