Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)
Writer - MK, Author at Learn Java - Page 15 of 17
Latest :

Author Archives: Writer - MK

Java: Number of Days In A Month – 3 Ways | Java Programs

Java Program To Calculate Number of Days In A Month – In this article, we will detail in on how to calculate the number of days in a month in Java Programming. Suitable examples and sample programs have been included in order to make you understand simply. The compiler has also been added so that you can execute the programs ...

Read More »

Java Code to Calculate Love Percentage [FLAMES] | Programs

Java program to calculate love percentage or Flames Java Program – In this article, we will detail in on all the possible ways to calculate love percentage in Java code. The methods used in this article are as follows: Using Scanner Class – Check generic class in java Using Static Method Using Separate Class Using Command Line Arguments Love percentage ...

Read More »

Java Program To Calculate Median Array | 4 Methods

Java code To Calculate Median – In this article, we will brief in on the mentioned means to  Finding the middle element in array. The following median code has been written in 4 different ways. If you have any doubts you can leave a comment here. The source code has written in: Using Standard Method Using Static Method Using Scanner ...

Read More »

IRCTC API & Source Codes – Indian Railways API

IRCTC or the Indian Railways Catering and Tourism Corporation is the major online ticketing web portal which is primarily handled by the Indian Railways itself. It is the only official online portal to book train tickets online. The web portal is heavily encrypted. So, you need to create a profile in order to access the website completely and book tickets for ...

Read More »

Java Constructor Chaining – Types & Example | Tutorials

Java Constructor Chaining – Calling one constructor from another constructor is generally referred to as constructor chaining. This can be achieved in two ways. this() super() in some cases we use only this(), in some other cases, we use only super(). Sometimes we use both (but not directly). Normal Java constructor calling (without chaining) When we create an object, its ...

Read More »

Parameterized Constructor In Java – Tutorial & Examples

What is Parameterized Constructor in Java – Tutorial & Examples – If we want to set some data to the constructor so that it can be used in the constructor then we can send so like Person r=new Person(10,20); to receive the values, the corresponding constructor should have formal arguments like. [crayon-6987c09165e23483745769/] If we want to send three values to constructor ...

Read More »

Generic Class With Multiple Type Parameters In Java

How the generics work with multiple types: “Generics” mechanism allows us to work with a class (or method) that suits for any type of data. Suppose we want one Stack that holds Integer data and another Stack that holds String data then we need two different classes. With generics, we can write only one class that works for both the ...

Read More »

Java Simple Generic Class – Tutorial & Programs

Generics is the mechanism of creating a class or method that works for any type of data. Here we covered the complete tutorial along with suitable examples and sample programs, Examples. Note: Generics work with objects (Integer, Double, String, etc) only. They cannot be used with primitive type data (int, double, etc). [crayon-6987c0916625f576004918/] Output: [crayon-6987c09166264592889308/] In the above example, class ...

Read More »

Oops Concepts In Java – Tutorial With Examples | Oops

Oops Concepts in Java complete tutorial & Types with sample examples & Programs. Also check the complete Java tutorials right here. There are different paradigms followed in writing programs (developing software) like the following… Sequential Programming. Procedure Oriented Programming. Object-Oriented Programming. Multi-tier Programming, etc To develop better software, programmers and managers concentrate on the aspects like the following. These people ...

Read More »

Multithreading In Java – Tutorial & Examples | JavaTutorials

Multithreading in Java,  is the mechanism of executing different parts of a program simultaneously. Suppose, in a normal program, we are in one method and calling another method then the control goes to the called method, executes the statements in that method and comes back to calling the method. As long as the control executes the method, the statements after ...

Read More »