## Java program to find product of digits

Hi programmers , welcome to new post of java programming. this post i’ll write various ways to perform product of digits using java language. Example of product of digits means digit multiplication of given number.234 is solved as 2 * 3 * 4 = 24.we can do product of digits of a number using while […]

## Java program to find sum of digits

Hi programmers , welcome to new post of java programming. this post i’ll write various ways to perform sum of digits using java language. Example of sum of digits means digit sum of given number.234 is solved as 2 + 3 + 4 = 9.we can do Sum of digits of a number using while […]

## How to Run Java Program in Atom Editor

Hi Programmers, welcome to new article of ozanecare. This Article i’ll explain how to run java program inside atom editor.First steps of the program to install any jdk version.Let’s see important steps.Step1: install jdk. i highly recommend you should download any latest version. Open atom editor next add project folder. create new file with extension […]

## Ternary Operator in Java

Hi Programmers, Welcome to New post Ozanecare. This post i will write the program to find highest of numbers using ternary operator. To calculated lowest of any numbers, we should give less (<) symbol in place of higher(>) symbol.The Ternary Operator is used to replace nested if statements with shorter and very readable codes. The […]

## Java Foreach Loop Examples

Hi Programmers, Welcome to new post of Ozanecare. In this article, I am going to discuss the for and foreach loop in Java with beautiful examples. Let’s see about java for loop and foreach loop. The for loop iterates through items until a certain condition is true. there are four parts of for loop.1.Initialization 2.Condition […]

## Stack in Java

Hi Programmers , Welcome to new Article of Ozanecare. This article i am going to explain Stack programming in java . In java we should use Stack class , It is based on the principle of LIFO (Last in First Out). The two important methods used push and pop. the push method pushes an element […]

## Sum of First and Last Digits in Java

Hello Programmers, welcome to ozanecare. this article i am going to write codes to calculate sum of first and last digits using java programming language. we can easily achieve the output by using modulus and divide operators. modulus operator return remainder and divide operator return quotient. below image is the codes to find sum of […]

## Display First and Last Digit of Number in Java

Hi Programmers, Welcome to Ozanecare. This Article i amgoing to Write the program to display first and lastdigit of any enter number using java language.Let’s see thebelow program. Code Explanation : if you run/debug the program then controlfirst go to main method after that it comes inside mainmethod. there i have taken integer variable n.now […]

## Concatenate Char to String in Java

Hi Programmers, Welcome to Ozanecare. The new article for java developer to learn how to concatenate Char with String. we can combine characters to strings with or without any method.Let’s see all coding. 1.Concatenating char to string by declaring String datatype variable and Character type variable. we can easily combine with plus(+) operator. see below […]

## Java Technical Interview Question and Answer

Hi Developers, Here is the article to all tricky java interview Question with answer that asked by many company. Let’s Enjoy all technical type of interview Questions. Question 1 : Answer Explanation : Correct Answer 0 because variable i is never initialized to,and will always have its default value 0. The default constructor is invoked […]