Test Your Java Skills

In case you are feeling itchy to asses your Java skills, here is a wonderful test. Please send me the solution at contact@sansatechnology.com – Will be happy to evaluate and send my comments.

Total Score: 120

1. [20 Marks] Create a method that will take a String as an input and return capitalized String in reverse.

E.g., Provided an input as abcd, it will return DCBA.

Call this method from main method and share the screen shot of input and output.

2. [20 Marks] Create a class called User.

User has following attributes:

firstName

lastName

username

password

Override toString and equals method

Call toString and equals method method from main method and share the screen shot of input and output.

3. [20 Marks] Create a method that reads list of User (User class is defined above) data from a file and returns an ArrayList of Users.

File looks like:

John, Wick, john_user, john123

<has many records>

Mark, Keaten, mark_user, m123

Call this method from main method and share the screen shot of input and output.

4. [20 Marks] How do you iterate through a HashMap. Build and example.

Call this method from main method and share the screen shot of input and output.

5. [20 Marks] Emulate the File System functionality. Allow user to list, rename, move, copy a file or folder

6. [20 Marks] Write an application that can take name, title and price of a movie and create a record in the database. User should also be allowed to choose a movie and edit its title and price. He can also delete the movie. He should also be able to display the list of movie by a search condition, such as show all movies whose title starts wit “T”.

Advertisements

About sansatechnology

Sansa Technology is an IT staffing, Consulting and Training company located in the heart of Silicon Valley. If you are a consultant looking for your new gig, send us your resume to us. If you are looking for training in the field of White Box Testing, Java, Java EE, Selenium, DevOps, Android and others, connect with us as well. Visit us at www.sansatechnology.com or email contact@sansatechnology.com
This entry was posted in Coding Challenges, Computers and Internet, Interview Preparation, IT Jobs, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s