Friday, 21 April 2017

Java Program to Multiply Two Matrices - Matrix Multiplication Example ~ mkniit

How to write a Java program to multiply two matrices in Java is a very good programming exercise to get familiar with the two-dimensional array in Java. this example teaches about how to multiply arrays, how to access elements from a multi-dimensional array, how to pass them to a function etc. Since the matrix is a natural representation of multi-dimensional array in Java, they are often used to illustrate real word matrix exercises e.g. the calculating sum of two matrices...
Read More »

10 Examples of CUT command in UNIX and Linux ~ mkniit

The cut command in UNIX is a nice utility program which allows you to cut data from a text file. The Linux cut command allows you to cut data by character, by field or by column. if used correctly along with sed, find, or grep in UNIX, the cut can do lots of reporting stuff. For example, you can extract columns from a comma separated file or a pipe or colon delimited file using cut command. For example, if you are only interested...
Read More »

Top 5 books to Learn Object Oriented Programming - Must Read, Best of Lot ~ mkniit

The OOP or Object Oriented Programming is one of the most popular  programming paradigms which helps you to organize code in re the l world system. It's a tool which helps you to write complex software by thinking in terms of objects. Unlike its predecessor procedural programming paradigm which is implemented most notably by C, which solves the problem and complete task by writing code for computers, OOP style of programming allows you to think in terms of real world objects...
Read More »

How to compare two XML files in Java - XMLUnit Example ~ mkniit

The XMLUnit library can be used to compare two XML files in Java. Similar to JUnit, XMLUnit can also be used to test XML files for comparison by extending the XMLTestcase class. It is a rich library and provides a detailed comparison of XML files. Btw, comparing XML is completely different than comparing String in Java or comparing object using equals(), as two XML which contains different comment and whitespace can be equals, which is not true for String...
Read More »

Difference between Abstraction and Encapsulation in Java - OOP ~ mkniit

Both Abstraction and Encapsulation are two of the four basic OOP concepts which allow you to model real-world things into objects so that you can implement them in your program and code. Many beginners get confused between Abstraction and Encapsulation because they both look very similar. If you ask someone what is Abstraction, he will tell that it's an OOP concept which focuses...
Read More »

Difference between ArrayList and ArrayList in Java - Raw Type vs Wildcard ~ mkniit

One of my readers asked me about the difference between ArrayList vs ArrayList< in Java?>, which was actually asked to him on a recent Java development interview. The key difference between them is that ArrayList is not using generics while ArrayList is a generic ArrayList but they looks very similar. If a method accepts ArrayList or ArrayList<?> as a parameter then it can accept any type of ArrayList e.g....
Read More »

Log4j Tips : Use MDC or Mapped Dignostic Context to distinguish logging per Client or Request ~ mkniit

The MDC or Mapped Diagnostic Context is a concept or feature of Log4j logging library which can be used to group related log messages together. For example, by using MDC you can stamp a unique identification String like clientId or orderId on each log message and then by using grep command in Linux, you can extract all log messages for a particular client or order to understand exactly what happened to a particular order. This is especially...
Read More »

Can we declare a class Static in Java? ~ mkniit

The answer to this question is both Yes and No, depending on whether you are talking about a top level class or a nested class in Java. You cannot make a top level class static in Java, the compiler will not allow it, but you can make a nested class static in Java. A top level class is a class which is not inside another class. It may or may not be public i.e. you can have more than one class in a Java source file and only needs to be public, whose name must be same...
Read More »

Saturday, 15 April 2017

Download professional Asp.Net 4.5 in C# book pdf free ~ mkniit ~ gniitsolution

The all-new approach for experienced ASP.NET professionals! ASP.NET is Microsoft’s technology for building dynamically generated web pages from database content. Originally introduced in 2002, ASP.NET has undergone many changes in multiple versions and iterations as developers have gained a decade of experience with this popular technology. With that decade of experience, this edition of the book presents a fresh, new overhauled approach. A new focus on how to build ASP.NET sites and...
Read More »

C# NULLABLES ~ mkniit

C# NULLABLES Definition Nullablle type is a data type containing a defined data type or a null value.You should note here that here the variable datatype has been awarded and then only may be used.The concept of a nullable type are not compatible with “var”.I will explain this with the syntax in the next section.DeclarationAny datatype can be declared nullable types with the help of the “?” operator.An example of the syntax is as follow...
Read More »

C# NAMESPACES ~ mkniit

C# NAMESPACES Namespace is a set of retaining the name provides a way to separate the other is designed for. The name of the class that is declared in a namespace declared in the same class name does not conflict with another.Define a NamespaceNamespace definition keywords namespace namespace name is followed by the following: Call it this version is activated by the function or variable namespace,...
Read More »

C# SWITCH CASE STATEMENT ~ mkniit

C# SWITCH CASE STATEMENT Switch Case statement is also one conditioned statements. Pernyatan Switch Case is basically almost the same as the if then else. If you require a statement with many conditions, use the Switch Case statement. For more mamahami about the Switch Case statement,...
Read More »

CSHARP OPERATOR OVERLOADING ~ mkniit

C# OPERATOR OVERLOADING You can redefine or excessive bulk of the built-in operators can be used in c #. So that a programmer can use operators and user-defined types. Overloaded operator is a special operator name keywords followed by the symbols for the specified operator function. Similar to other functions, overloaded operators have a type argument list, and return. To cite an example, go through...
Read More »

CSHARP VARIABLE AND DATA TYPES ~ mkniit

C# VARIABLE AND DATA TYPES Before learning a programming technique, you must first master the programming language in question. Let's say you want to learn C # programming, you must learn first how to communicate with C # programmingenvironment that is by understanding the basics – and understand basic programming...
Read More »