JAVA
In this section, we share here all the code in JAVA computer language. JAVA is the basic for many other computer language and important languages for placement, interview preparation.
[Solved] Maximum Sum Subarray | Microsoft Interview Question
Problem Statement / Task: You are given an array of integers (includes both positive and negative numbers). You have to find the sum of that subarray that has the highest sum...
Program to Check Odious Number in Java, Python, C/++
Problem Statement / Task: You are given a number and your task is to find whether the given number is an odious number or not. What is Odious Number? An odious number is a...
[Solved] Sort the String According to the Frequency of Character in Java
Problem Statement / TASK: You are given a string and your task is to sort the string according to the frequency of character and return the final string. EXAMPLE 1 : Input...
[Solved] Find Lexicographically Smallest and Largest Substring
Problem Statement: You are given a string (says 's'), and an integer ( says 'k'). Write a program to find the lexicographically smallest and largest substring from given...
[Solved] HourGlass with Largest sum in 2D Array in Python and Java
First of all understand the Hourglass. It is shaped as shown in the below image. There can be multiple hourglass in the 2D array (matrix). Problem Statement: Write a...
5 Java Web Framework and Design Technology would Rule in 2021
Web apps are a fundamental part of people’s daily needs. The internet is full of these applications. Web apps have various functions, which range from online shopping,...
[Code] Java JDBC Connection MySQL Example | JDBC API Properties
In this tutorial, you are going to learn JDBC connection in Java with MySQL. Before that, lets check some basics of JDBC so that you will understand the code properly. The...
7 Difference between Public, Private and Protected in Java | Code Examples
In Java, we come across a word called access modifier, which helps us classify the accessibility to any class, method, or variable. The polarity amid these access modifiers...
7 Basic Difference between throw and throws in Java | Example
We have seen earlier how exception handling work in Java. Exception handling in Java assures that the flow of the program does not break when an error/exception occurs. As a...