Inheritance in Java with Examples
codeforhunger
by
7M ago
In this post we are going to learn what is inheritance in java and what are the types of inheritance in java with their examples. Inheritance in java is a Object Oriented Programming(OOPS) concept, which allows one class to inherit all the non-private properties(fields and methods) of another class. We can implement inheritance using extends keyword.  Types of Inheritance in Java: Basically there are 5 types of inheritance. But, In Java using class we can achieve only three types of inheritance: single, multilevel and hierarchical. We can achieve hybrid and multiple inheritance usi ..read more
Visit website
Generic Class Example in Java
codeforhunger
by
8M ago
In this post we are going to learn what is generic class with example. Generic class in java example.  A Generic class means in that class we can use any type as parameter(T).  In this example we are using the T type parameter to create a generic class.   Simple Example of Creating Generic Class in Java:   package com.java.Examples;public class TestGeneric { public static void main(String[] args) { Car<String> name = new Car<String>(); Car<Integer> speed = new Car<Integer>(); name.add("XUV500"); speed.add(200); System.out ..read more
Visit website
Example of a Constructor in Java
codeforhunger
by
8M ago
In this post we are going to create a class in Java with constructor. So let's see how to create a class in Java which contains constructor method.   First of all we need to know what is a constructor in Java. What is a Constructor in Java: In a simple words constructor in Java is a special type of method which is used to initialize an objects. Constructor has the same name as that of the class name and it does not return any value. It is called automatically when an instance of the class is created.  Thers are three types of constructor in Java : No-Arg Constructor Parame ..read more
Visit website
10 Best Free Coding Websites You Should Know in 2022
codeforhunger
by
9M ago
Hello guys, If you want to learn coding or just started to learn and looking for the best websites to learn coding online for free, then these 10 best free coding websites are only for you.  These are also the best online platforms to learn coding for free and many peoples are using this to learn and improve their coding skills.   This platforms are completely online and you can learn from both watching videos or by reading articles. The most important thing that every programmer knows is to learn coding you have to write code lot and practice lot. In short you have to write progra ..read more
Visit website
Top 15+ OOP's Interview Questions & Answers in 2022
codeforhunger
by
9M ago
In this post we will learn which interview questions of oops are asked mostly in interview.       What is Object Oriented Programming Interview Questions : The answer is simple and straight object oriented programming interview questions means the questions which are asked on oops concept's like there are four main concepts of oops -  inheritance, abstraction, encapsulation and polymorphism. There are so many question's in object oriented programming because object oriented programming is one of the very important concept and style of programming. That's why interview ..read more
Visit website
How to Become a Freelance Web Developer in 2022
codeforhunger
by
9M ago
There are so many students, freshers and even web developers wanted to work as a freelance web developer. So here is the question why you want to become a freelance developer. because already there are lot of jobs or positions in software companies for web developers with good amount of package. Why Become a Freelance Developer? The simple answer is Freelancing allows us working flexibility and freedom. In freelancing no-one is your boss, you don't need to go anywhere you can also work from home and One's you started to get good number of orders then you can also expand it as a business. Tha ..read more
Visit website
8 Best Free Online Frontend Web Development Courses in 2022
codeforhunger
by
9M ago
There are lot of paid web development courses available to learn online. But the problem is most of the students can't afford this courses in their college life.  I agree that paid courses are often better than free courses but if you are just starting your journey, then starting with free curses is not a bad choice.  Today, I am going to share some of the best free web development courses for beginners or also for those who may know little bit about programming. Best 8 Free Frontend Web Development Courses for Beginners in 2022: So here is the list of some of the best free web deve ..read more
Visit website
Top 5 C Programming Courses to Learn in 2022
codeforhunger
by
9M ago
Hello guys, if you are interested in programming and want to learn C programming from basics to advance your skills. Then you are in right place because in this article I am going to share best 5 C programming courses to learn C language from scratch.  Actually new developers don't give much importance to the C language because there are lot of new high level languages like Java, C#, JavaScript, Python are gaining popularity in software industry.  But, learning C is always fun and there are lot of advantages to learning C programming language. So, here is the list of top online ..read more
Visit website
What is Arrays in Java
codeforhunger
by
9M ago
Basically an array in java is a collection of homogeneous elements that simply means array can store elements of same type or we can say it can store elements of same data types. means if we declare integer type array so we can store only integer data type elements in array or if we declared array of character type so we can store only character's in it.  For Example:  int arr[]; or  char c[]; In above example I have shown syntax to declare an array.   Java Program to Declare and Initialize an Array: public class ArrayExample { public static void main(String ..read more
Visit website
How to copy Arrays in Java with Examples
codeforhunger
by
9M ago
In this post we will learn how to copy arrays in java. Copying arrays simply means copying one array elements into another array. There are two main ways to do this first by using loops and second by using methods. So first we will learn how to copy array using loop's. In this example I am going to use  a simple for loop. But here, you can also make a use of another loops it's totally depend on you.   Java Program to copy elements of one array into another array using for loop : public class CopyingArray { public static void main(String[] args) { int arr1 ..read more
Visit website

Follow codeforhunger on Feedspot

Continue with Google
OR