Java Interview

Java Lucky Number program

Question:- William planned to choose a four-digit lucky number for his car. His lucky numbers are 3,5 and 7. Help him find the number, whose sum is divisible by  3 or 5 or 7.Provide a valid car number, Fails to provide a valid input then display that number is not a valid car number.  Note…

Java Find Season Program

Find Season Question William planned to choose a four digit lucky number for his car. His lucky numbers are 3,5 and 7. Help him find the number, whose sum is divisible by  3 or 5 or 7.Provide a valid car number, Fails to provide a valid input then display that number is not a valid…

Java Convert Numbers into Months

Question Ram is very weak in converting the numbers into months. But his friends often tease him by asking him to do that. To solve his problem a close friend of him, suggested meeting IIT students, who were very good at programming. Help ram to resolve his problem. Note : Range of inputs is 1 to…

Java Highest Placement Program

Question SRV college wants to recognize the department which has succeeded in getting the maximum number of placements for this academic year. The departments that have participated in the recruitment drive are CSE,ECE, MECH. Help the college find the department getting maximum placements. Check for all the possible output given in the sample snapshot Note:…

Java Spell Check Program

Question Ruya’s teacher gave her the assignment to practice the spelling of “RAINBOW”. Ruya’s mother helped her indoing this by spelling each letter as Ruya wrote it in her notebook. If Ruya writes wrong spelling her mother should say “The spelling is wrong” Sample Input 1:Enter the first letter:REnter the second letter:AEnter the third letter:IEnter…

Java Bill Generation

Question Tom went to a movie with his friends in a multiplex theatre and during  break time he bought pizzas, puffs and cool drinks. Consider   the following prices :  Rs.100/pizza Rs.20/puffs Rs.10/cooldrink Generate a bill for What Tom has bought. Sample Input 1: Enter the no of pizzas bought:10Enter the no of puffs bought:12Enter the no of…

Java Print Username Program

Print Username Question:- Jeffy, who is going to complete the higher education this year needs to create a simple application that accepts the name of a person and welcomes them with a message along with their name. She wants to read the data using the class “Scanner”. Implement this scenario using Java. Sample Input 1:…

Java Print Customer Details Program

Question Help Mr.Ben who is a programmer, in developing a registration form on the console. Customers will not just input data but also view the details once he/she finishes the registration.  Sample Input 1: Enter your name:Jany Enter age:25 Enter gender:Female Hailing from:Mexico Sample Output 1: Welcome, Jany! Age:25 Gender:Female City:Mexico Code :- Recommended:- Print…

Print Message

Question Write a program to display a message “Welcome to object oriented programming” Sample Output 1: Welcome to object oriented programming. Code :- Recommended:- Print Customer Details Print Username Bill Generation Spell Check Highest Placement

x