Friday, 26 May 2017

Java Interthread Communication ~ NIIT POST

Java provide benefit of avoiding thread pooling using interthread communication. The wait(), notify(), notifyAll() of Object class. These method are implemented as final in Object. All three method can be called only from within a synchronized context. wait() tells calling thread to give up monitor and go to sleep until some other thread enters the same monitor and call notify. notify() wakes up a thread that called wait() on same...
Read More »

Java Enumerations ~ NIIT POST

Enumerations was added to Java language in JDK5. Enumeration means a list of named constant. In Java, enumeration defines a class type. An Enumeration can have constructors, methods and instance variables. It is created using enum keyword. Each enumeration constant is public, static and final by default. Even though enumeration defines a class type and have constructors, you do not instantiate an enum using new. Enumeration...
Read More »

Java Autoboxing and Unboxing ~ NIIT POST

type wrapper Java uses primitive types such as int, double or float to hold the basic data types for the sake of performance. Despite the performance benefits offered by the primitive types, there are situation when you will need an object representation. For example, many data structures in Java operate on objects, so you cannot use primitive types with those data structures. To handle these situations Java provides type Wrappers which provide classes that encapsulate a primitive...
Read More »

Java I/O Stream ~ NIIT POST

IO Stream Java performs I/O through Streams. A Stream is linked to a physical layer by java I/O system to make input and output operation in java. In general, a stream means continuous flow of data. Streams are clean way to deal with input/output without having every part of your code understand the physical. Java encapsulates Stream under java.io package. Java defines two types of streams. They are, Byte Stream : It provides a convenient means for handling input...
Read More »

Java Serialization ~ NIIT POST

Serialization and Deserialization in Java Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. A class must implement Serializable interface present in java.io package in order to serialize its object successfully. Serializable is a marker interface that...
Read More »

Java Networking ~ NIIT POST

Networking in Java Java is a premier language for network programming. java.net package encapsulate large number of classes and interface that provides an easy-to use means to access network resources. Here are some important classes and interfaces of java.net package. Some Important Classes CLASSES CacheRequestCookieHandler CookieManagerDatagrampac...
Read More »

Java Generics ~ NIIT POST

A class or interface that operates on parameterized type is called Generic. Generics was first introduced in Java5. Now it is one of the most profound feature of java programming language. It provides facility to write algorithm independent of any specific type of data. Generics also provide type safety. Using Generics, it becomes possible to create a single class or method that automatically works with all types of data(Integer, String, Float etc). It expanded the ability...
Read More »

Java Introduction to Collection ~ NIIT POST

Collection Framework Collection framework was not part of original Java release. Collections was added to J2SE 1.2. Prior to Java 2, Java provided adhoc classes such as Dictionary, Vector, Stack and Properties to store and manipulate groups of objects. Collection framework provides many important classes and interfaces to collect and organize group of alike objects. Important Interfaces of Collection API InterfaceDescription CollectionEnables you to work with groups of object;...
Read More »

Java Collection Interfaces ~ NIIT POST

Interfaces of Collection Framework The collection framework has a lot of Interfaces, setting the fundamental nature of various collection classes. Lets study the most important Interfaces in the collection framework. The Collection Interface It is at the top of collection heirarchy and must be implemented by any class that defines a collection. Its general declaration is,interface Collection < E > Following are some of the commonly used methods in this interfa...
Read More »

Java Collection Classes ~ NIIT POST

The Collection classes Java provides a set of Collection classes that implements Collection interface. Some of these classes provide full implementations that can be used as it is and other abstract classes provides skeletal implementations that can be used as starting points for creating concrete collections. ArrayList class ArrayList class extends AbstractList class and implements the List interface. ArrayList supports dynamic array that can grow as needed....
Read More »

Java Iterator and ListIterator ~ NIIT POST

Accessing a Collection To access, modify or remove any element from any collection we need to first find the element, for which we have to cycle throught the elements of the collection. There are three possible ways to cycle through the elements of any collection. Using Iterator interface Using ListIterator interface Using for-each l...
Read More »

Java Map Interface ~ NIIT POST

A Map stores data in key and value association. Both key and values are objects. The key must be unique but the values can be duplicate. Although Maps are a part of Collection Framework, they can not actually be called as collections because of some properties that they posses. However we can obtain a collection-view of maps. InterfaceDescription MapMaps unique key to value. Map.EntryDescribe an element in key and value pair in a map. This is an inner class of map. NavigableMapExtends...
Read More »

Java Comparator Interface ~ NIIT POST

In Java, Comparator interface is used to order the object in your own way. It gives you ability to decide how element are stored within sorted collection and map. Comparator Interface defines compare() method. This method compare two object and return 0 if two object are equal. It returns a positive value if object1 is greater than object2. Otherwise a negative value is return. The method can throw a ClassCastException if the type of object are not compatible for...
Read More »

Java Legacy Classes ~ NIIT POST

Legacy Classes Early version of java did not include the Collection framework. It only defined several classes and interface that provide method for storing objects. When Collection framework were added in J2SE 1.2, the original classes were reengineered to support the collection interface. These classes are also known as Legacy classes. All legacy claases and interface were redesign by JDK 5 to support Generics. The following are the legacy classes defined by java.util package Dictionary HashTable Properties Stack Vector There...
Read More »

Java Applet ~ NIIT POST

Applet in Java Applets are small Java applications that can be accessed on an Internet server, transported over Internet, and can be automatically installed and run as apart of a web document. Any applet in Java is a class that extends the java.applet.Applet class. An Applet class does not have any main() method. It is viewed using JVM. The JVM can use either a plug-in of the Web browser or a separate runtime environment to run an applet application. JVM creates an instance...
Read More »

Sunday, 21 May 2017

Core java assignment patient with a doctor 67854_Scenario1 ~ NIIT POST

NemCare is a leading health care provider in the US and has multispecialty hospitals in seven cities nationwide. In its effort to reach out to people who do not have access to medical facilities, NemCare has decided to operate Out Patient Clinics. Each NemCare clinic will have a qualified medical team that provides consultations to patients visiting the clinic. NemCare has already started work to make two clinics operational within six months. Having realized the need to automate the...
Read More »

Core java assignment restaurant’s resources 68024_Scenario7 ~ NIIT POST

Foodies Delight is a restaurant chain that has its head office in Denver, Colorado. Foodies Delight has 25 restaurants across seven major cities nationwide and plans to add more restaurants to its chain. Because of the quality of food and service that Foodies Delight provides, almost all their restaurants attract a good number of customers.To dine in a restaurant, customers need to reserve a table either by calling the restaurant over the phone or by visiting the restaurant. Currently,...
Read More »

NIIT CORE JAVA ASSIGNMENT SEM 4 ~ NIIT POST

Maryland PM University, often called MPM, is a private research university in the field of engineering located in Pittsburgh, Pennsylvania. MPM is regarded as an engineering university that performs quality research activities. MPM provides an extensive collection of study materials that include books, research articles, and reference materials through the MPM Research Library located in the university campus. The library remains open from 9 am to 8 pm throughout a week. Students and...
Read More »

Core java assignment study books 67903_Scenario5 ~ NIIT POST

Maryland PM University, often called MPM, is a private research university in the field of engineering located in Pittsburgh, Pennsylvania. MPM is regarded as an engineering university that performs quality research activities. MPM provides an extensive collection of study materials that include books, research articles, and reference materials through the MPM Research Library located in the university campus. The library remains open from 9 am to 8 pm throughout a week. Students and...
Read More »

Java - What, Where and Why? ~ NIIT POST

Java - What, Where and Why? Java - What, Where and Why? What is Java Where Java is used Java Applications Java technology is wide used currently. Let's start learning of java from basic questions like what is java, where it is used, what type of applications are created in java and why use java? What is Java? Java is a programming language and a platform. Platform Any hardware or software environment in which a program runs, known as...
Read More »

BookHive Corp. Project ~ NIIT POST

BookHive Corp. Bookhive Corp. is a leading publishing house in the US. The company headquarter is located in Atlanta. It has been publishing books, articles, journals, novels, magazines, and encyclopedias for the past fifteen years. The customers of the company include students, IT professionals, and research scholars. The company enjoys a dominant position in the publishing business with 15 retail stores in all major cities in the US. The Current System At present, Bookhive...
Read More »

JAVA LAB ASSIGNMENT 4TH SEM SOLUTIONS ~ NIIT POST

1. Write a program to print “Welcome to Java Programming” on the screen. class welcome{    public static void main(String a[])    {        System.out.println("Welcome to Java Progamming");    }}//2. Write a program to check whether the given two numbers are equal. If not then find the greater of the given two numbers.import java.lang.*;class Comparis...
Read More »

NIIT ICTWC Lab@Home 4 ~ NIIT POST

1. You need to configure the hard drive configuration manually on some new desktop computers. Due to application requirements, you need to create several simple partitions, a spanned partition, and a striped partition. The client computers are shared, and require that you place a quota on the spanned drive. For certain instances, you plan on using virtual drives. Objectives Create simple, spanned, and striped volumes on the client computers. Create a quota on the client machine's spanned...
Read More »

NIIT ICTWC Lab@Home 3 ~ NIIT POST

1. An A. datum Corporation user, Allie Bellew, has recently been assigned a new Windows 8 computer. You have been asked to assist her with the migration of her settings from her previous computer. Objectives Back up important user data and settings. Restore user data and settings to a target computer. Verify successful migration of user data and settings. Backing Up Important User Data and Settings  In this exercise, you will use WET to back up the settings from LON-CL3 for the...
Read More »

NIIT ICTWC Lab@Home 2 ~ NIIT POST

1. You have been asked to modify the answer file that is being used for the A. Datum Windows 8 installation process. A. Datum would like to have specific information to be automatically added as part of the setup process on all of their computers. Your task is to modify the answer file accordingly, and use it to test an installation of Windows 8 on LON-CL4. Objectives Configure an answer file for the Windows 8 installation process. Use an answer file to install Windows 8. Answer file...
Read More »

NIIT ICTWC Lab@Home 1 ~ NIIT POST

1. The solution and its reason. Windows To Go is a Windows 8 feature that Enables users to boot Windows from a USB-connected external drive. in a windows To Go installation, the entire operating system,program files, user data setting are self-contained within the USB media.Windows To Go userssimply plug their USB driveinto a windows 8 compatible computer, start the computer, and bood directly to copy of windows 8 that is installed on the USB drive. Windows To Go drive can use the same...
Read More »

Software Eng Lab@home 5 ~ NIIT POST

1.  Refer to the case study of MerryMeeting Event Organizers. Analyze the existing system and create a design of the proposed system by using the following UML diagrams:Use case diagramClass diagramSequence diagram (for any use case)Communication diagram (for any use case)State diagram (for any object) Activity diagram (for any use case)Ans.  *Use Case Digram:-A use case is used to:Represent a list of steps or interactions between a user and a system to fulfill a...
Read More »

Software Eng Lab@home 4 ~ NIIT POST

1.  The design team at Janes Technologies has been assigned a task to create a state chart diagram for the InfoSuper bank ATM system. For this, the team needs to perform the following tasks: Identify the states of the ATM.Identify events responsible for state changes.Model the flow of control between the states of the ATM. Help the team at Janes Technologies to perform this task.Ans  To create the state chart diagram for the InfoSuper bank ATM system, you need to perform...
Read More »

Software Eng Lab@home 3 ~ NIIT POST

1.The design team at Janes Technologies has identified the various classes involved in the ATM withdrawal process. The team now wants to depict the interaction between various objects using a sequence diagram. Help the team to create the sequence diagram. Ans  To create the activity diagram of the cash withdrawal process, you need to perform the following tasks:1. Identify activities and decisions.2. Identify partitions.3. Create an activity diagram.Identifying Activities...
Read More »

Software Eng Lab@home 2 ~ NIIT POST

1. The design team at Janes Technologies has created the prototype for the InfoSuper bank ATM system. Now, the InfoSuper bank wants the team to model the static structure of the system. For this, the team needs to derive classes and relationships from the use cases of the ATM machine and create the corresponding class diagram. Help the team at Janes Technologies to perform this task.Ans. To create the required class diagram, you need to perform the following tasks:1. Identify...
Read More »

Software Eng Lab@home 1 ~ NIIT POST

1. The Project Manager at Janes Technologies has created the use case diagram for the InfoSuper bank ATM system. Now, the InfoSuper bank wants Janes Technologies to develop a prototype with few basic functions of the proposed software system before proceeding with the final software development. The functions that the InfoSuper bank wants in the ATM prototype are: Allow customers to withdraw cash from the current and savings accounts.Allow customers to change their PIN.Allow customers...
Read More »

Developing Windows Azure and Web Services Lab @ 2 Ans 3 ~ NIIT POST

CREATE TESTS FOR THE ENTITY FRAMEWORK DATA MODEL BY ISSUING QUERIES, MANIPULATING DATA, AND USING TRANSACTIONS TO TEST MULTIPLE REPOSITORIES AT ONCE.THE MAIN TASKS FOR THIS EXERCISE ARE:1. ADD EXISTING TEST PROJECT TO SOLUTION.2. EXPLORE THE EXISTING INTEGRATION TEST PROJECT.3. CREATE QUERIES BY USING LINQ TO ENTITIES.4. CREATE QUERIES BY USING ENTITY SQL AND RAW SQL.5. CREATE A TEST FOR MANIPULATING DATA.6. CREATE CROSS-REPOSITORIES INTEGRATION TESTS WITH...
Read More »

Developing Windows Azure and Web Services Lab @ 2 Ans 2 ~ NIIT POST

CREATE DATA MODEL CLASSES TO REPRESENT TRIPS AND RESERVATIONS, IMPLEMENT A DBCONTEXT-DERIVED CLASS, AND CREATE A NEW REPOSITORY CLASS FOR THE RESERVATION ENTITY. To implement the required functionality, you need to perform the following tasks:1. Explore the existing Entity framework data model project.2. Create new data model classes.3. Implement a data context by deriving from the Dbcontext class.4. Create a new repository for the Reservation entity.Task 1: Exploring...
Read More »

Developing Windows Azure and Web Services Lab @ 2 Ans 1 ~ NIIT POST

IN THIS EXERCISE, YOU WILL LEARN TO HOST PRODUCTS ON THE WINDOWS AZURE CLOUD BY USING WINDOWS AZURE SQL DATABASE AND WINDOWS AZURE WEB SITE. To host products on the Windows Azure cloud by using Windows Azure SQL Database and Windows Azure Web Site, you need to perform the following steps:1. Login into the Windows Azure account to access the Windows Azure Management Portal at https://manage.windowsazure.com.2. Click WEB SITES in the navigation pane.NEW3. Click the NEW button.4. Click...
Read More »

Developing Windows Azure and Web Services Lab @ 1 Ans 4 ~ NIIT POST

In this exercise, you will create a website that exposes the Web API for Create. Retrieve. Update. Delete (CRUD) operations on the BlueYonder database. To implement the required functionality, you need to perform the following tasks:1. Browse to the location where you have saved the Exercise 03.zip file.2. Extract the Exercise 03.zip file.3. Double-click the Exercise 03 folder.4. Double-click the BlueYonder.Model folder.5. Double-click the BlueYonder.Model.sin...
Read More »

Developing Windows Azure and Web Services Lab @ 1 Ans 3 ~ NIIT POST

In this exercise, you have to create Entity Framework wrappers for the Blue Yonder database. To implement the required functionality, you need to perform the following steps:1. Press the Windows logo key. The Start screen is displayed.2. Start hyping Visual Studio 2012. The Search and Apps panes are displayed.3. Click the Visual Studio 2012 tile in the Apps pane. The Choose Default Environment Settings dialog box is displayed.4. Select Visual C# Development Settings...
Read More »

Developing Windows Azure and Web Services Lab @ 1 Ans 2 ~ NIIT POST

In this exercise, you have to use Windows Azure Management Portal and create a new Windows Azure SQL Server. You need to connect the new SQL server with SQL Server Management Studio and create a Blue Yonder database from the .bacpac file. To create a new Windows Azure SQL Server, you need to perform the following steps:1.Open Internet Explorer.2.Type https://manage.windowsazure.com in the address bar. and press the Enter key.3.Enter your email and password in the respective text boxes...
Read More »

Developing Windows Azure and Web Services Lab @ 1 Ans 1 ~ NIIT POST

Exploring the Windows Azure Management Portal 1. Open Internet Explorer.2. Type https://manage.wmdowsazure.com in the address bar. and then press the Enter key. The page to sign in to the Windows Azure account is displayed.3. Enter your email (live account), such as myliveaccount@Iive.com. in the user name text box.4. Enter the password in the password text box.5.      Click the Sign in button. The Windows Azure page is displayedThe Windows Azure...
Read More »

Asp.net & MVC Lab@home 16 ~ NIIT POST

1.As a part of the software development team, you have been assigned the task of deploying the Web application for GiftGallery on an IIS server. You have decided to test the deployment on the IIS server on your local machine and make any required change before deploying it to the production server.Prerequisite: To perform this activity, you must be logged on as the Administrator. In addition, to perform this activity, you need to use the GiftGallery.zip file.Ans  &nbs...
Read More »

Asp.net & MVC Lab@home 15 ~ NIIT POST

1.You have developed the Web application for GiftGallery store. Currently the application is not secure as anybody can add, edit and delete gift items in the application. Now, you have been assigned a task to restrict the access to the Web pages, so that only authenticated users are able to add, edit, and delete gift items. However, any user can view the gift details page and all the other pages in the Web application without being authenticated. To implement the preceding requirement,...
Read More »

Asp.net & MVC Lab@home 14 ~ NIIT POST

1.You have developed the GiftGallery application and created the Web pages, such as Home, Contact Us, and Gifts. Your project manager has appreciated your creativity. However, he has observed that the response time of the Web application is high. He has asked you to enhance the performance of the Web application. For this, you have decided to use caching. You want to cache the content of the Home, Feedback, and Contact Us pages. Moreover, you have observed that a substantial amount of...
Read More »

Asp.net & MVC Lab@home 13 ~ NIIT POST

1. ...
Read More »

Asp.net & MVC Lab@home 12 ~ NIIT POST

1...
Read More »

Asp.net & MVC Lab@home 11 ~ NIIT POST

1. ...
Read More »

Asp.net & MVC Lab@home 10 ~ NIIT POST

1.  ...
Read More »

Asp.net & MVC Lab@home 9 ~ NIIT POST

1. ...
Read More »

Asp.net & MVC Lab@home 8 ~ NIIT POST

1...
Read More »