Java | JSP | JSF Answers

Questions answered by Experts: 3 611

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

What is the difference between overloading and overriding?


Implement the concept of inheritance with example. 


“Code reuse is strong features of java” proof this statement.


Implement a standalone product search program in Java that lists matching products for a user who is looking for T-shirts.

You are given 3 CSV files, each containing the T-shirts data for Nike, Puma and Adidas respectively. Sample CSV files links are attached here for reference. You can add more data in existing files or can add more CSV files for another companies.



Create a Java program that simply outputs the text "Hello World" when you run it. Call your main class

"Application". In the same file as your main "Application" class, define a new class called "Person". You

don't need to put anything in the class. Now, right below where you output "Hello World" in your main

method, create an object from that (Person) class. Modify your "Person" class to add a constructor.

Make the constructor output the text "Constructor running!". Add another constructor in addition to

the constructor it's already got. Make this second constructor accept a parameter called name of type

String. Make this second constructor print the name parameter using System.out.println(). Finally,

change your "main" method, create two objects of Person class and call both constructors.


Write a program with a mother class animal. Inside it define a name and an age variables, and

set_value() method.Then create two instance variables Zebra and Dolphin which write a message

telling the age, the name and giving some extra information (e.g. place of origin).


Create a class called Book to represent a book. A Book should include four pieces of information as

instance variables‐a book name, an ISBN number, an author name and a publisher. Your class should

have a constructor that initializes the four instance variables. Provide a mutator method and accessor


method (query method) for each instance variable. In addition, provide method named getBookInfo

that returns the description of the book as a String (the description should include all the information

about the book). You should use this keyword in member methods and constructor. Write a test

application named BookTest to create an array of object for 30 elements for class Book to demonstrate

the class Book's capabilities.


Write a program with a mother class animal. Inside it define a name and an age variables, and

set_value() method.Then create two instance variables Zebra and Dolphin which write a message

telling the age, the name and giving some extra information (e.g. place of origin).


The school of Computing and Mathematical Sciences is open for registration of ICT qualifications. Create a registration form that accepts a prospective student’s name, surname, race, gender, cellphone number, email address, home address and the ICT qualification the student wishes to apply for (Diploma in ICT: Applications Development, Advanced Diploma in ICT: Application Development, Post Graduate Diploma in ICT: Applications Development). Upon completion of the form, the prospective student must agree to the terms and conditions of the university by selecting a checkbox and submit the form. Insert this data into the database. Also include a delete and update button. 


NB: Please align your textboxes and text fields


Q.1.8


The user must have the ability to search for a product. The user will select menu item two (2), which will prompt the user to enter a product code. If a valid product is found in the application, then display the product details to the user. If no valid product is found, display an error message to the user that the product cannot be located.


Sample Product Search Screenshot


Please enter the product code to search: 235


PRODUCT SEARCH RESULTS


PRODUCT CODE: A55


PRODUCT NAME: EliteBook


PRODUCT WARRANTY: laptop


PRODUCT CATEGORY: 2 years

PRODUCT PRICE: 15000


PRODUCT STOCK LEVELS: 3


PRODUCT SUPPLIER: IT_4_Africa


Enter (1) to launch menu or any other key to exit


Sample Invalid Product Screenshot


Please enter the product code to search: 1

The product cannot be located.

Invalid Product Enter (1) to launch menu or any other key to exit


LATEST TUTORIALS
APPROVED BY CLIENTS