Java

MCQs 2024Java Test

MCQs 2024Java Test

1. Which of the following will import only static members of java.util.Arrays class? Ans: import static java.util.Arrays; 2. Which of the following is not a property of a JVM? Ans: It prevents Java bytecode from being easily decoded 3. Object…

[Solved] Duplicate mobile number exception with Java

[Solved] Duplicate mobile number exception with Java

Duplicate mobile number exception: Write a java program to find the duplicate mobile number using the exception handling mechanism. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, attribute names and method names should be…

[Solved] Parse Exception with Java

[Solved] Parse Exception with Java

Parse Exception: For our application, we would have obtained date inputs. If the user enters a different format other than specified, an Invalid Date Exception occurs and the program is interrupted. To avoid that, handle the exception and prompt the user to…

[Solved] Adjacent characters with Java

[Solved] Adjacent characters with Java

Adjacent characters: Given a string, write a program to compute a new string where identical chars that are adjacent in the original string are separated from each other by a “*” Input and Output Format: Refer sample input and output…

[Solved] Mid Aged with Java

[Solved] Mid Aged with Java

Mid Aged: The Pan Am 73 flight from Bombay to New York en route Karachi and Frankfurt was hijacked by a few Palestinian terrorists at the Karachi International Airport. The senior flight purser Neerja Banhot withered her fear and helped…

[Solved] Best Mobile Plan with Java, Python

[Solved] Best Mobile Plan with Java, Python

Best Mobile Plan: St. Patrick Convent organizes a project exhibition “Innovative Minds” every year with an objective to provide the platform and unleash the potential of the students by showcasing their innovative projects.Albert is a science expert and is a…

[Solved] Nice Number with Java

[Solved] Nice Number with Java

Nice Number: “The Greatest Furniture Expo” is a biggest fair exhibiting furniture products, services and equipment, interior services, decoration plans, modular kitchen accessories, bedroom furniture, stylish sittings etc in the Furniture industry. It is a 4-day event and on the…