Jooble’s mission is to help people find work The company is constantly working to ensure that the employment process is as comfortable and fast as possible, for both the applicant and the employer. Jooble is a LinkedIn and Google global partner whose technologies assist people find work. Every day, Jooble brings together over 250,000 resources […]
Distance between two points in java
2 methods to calculate distance between two points in java with code example. 1- Using formula. 2- Using a Point class objects. Distance between two points using formula We know that the distance between two points (x1,y1) and (x2,y2) on a flat surface is as below. That we’ll use in the java program to find […]
User Defined Exception in Java with Real-time example
User Defined Exception in Java with a real-life example and code. You’ll learn how to use this exception in a class. User defined exception means you write your own custom exception class to use in a program. If an exception occurs, it throws the exception. You can use your custom message to show to the […]
Student details using an array of objects: Java Exercise
You’ll learn to implement a program for Student details using an array of objects in Java. EXERCISE: Create an array of objects of the Student class, of size 3. The Student class is defined below. Create three objects of the Student class, with values, and assign the objects to the array. Loop through the array […]
Shape Interface Implementation: Java Exercise
EXERCISE: Create a Shape interface having methods area () and perimeter (). Create 2 subclasses, Circle and Rectangle that implement the Shape interface. Create a class Sample with main method and demonstrate the area and perimeters of both the shape classes. You need to handle the values of length, breath, and radius in respective classes to […]
Extract Numbers from String – Java
Java code to extract digits or numbers from a string with logic and explanation. We’ll use 2 methods: (1) using regex expression with replaceAll method of String object, and (2) using loop and ascii values of characters. Extract Numbers from String using regex Logic: Use the regular expression [^0-9] to find non-integer characters in the […]
Test Your Skills in OOPs Concepts with JAVA and Master Quickly
#1 Reason that destroy your growth and work life balance is not having a crystal-clear understanding and writing working code without efficient use of OOP features. Get strong hold on object-oriented programming concepts in no time with the new book OOP Concepts Booster. TEST YOUR OOP CONCEPTS LEVEL Q-1– Encapsulation concept is—–( Don’t say wrapping […]
FRESHER: Learn what Level of OOPs Concepts Separates You From The Crowd in Job Interviews
You’ll learn the Level of OOPs Concepts you should gain that separate you from the crowd and make your interview impressive, Is this level expected from a fresher, and How you can achieve it. Even better – it takes little to no time to achieve it. When I taught this level of skills to freshers, […]
Arraylist Of Objects In Java
Arraylist of objects in Java with simple code example: Learn how to store user defined objects into an ArrayList. Here is the declaration of the ArrayList will be used to store objects of the Book class. ArrayList<Book> list = new ArrayList<Book>(); In the angle bracket, notice the class name Book. It’s similar to the array […]
Sum of elements in an array in Java
Sum of elements in an array in Java with Logic and code example. Consider an integer array as an example, int[] x = { 6, 7, 2 }; //Sum of all elements of the array is 15. LOGIC: Simply retrieve each elements of the integer array by traversing the array using a for loop till […]