Skip to content
Latest Posts:
Creating test data using Python
How to replace multiple strings with their corresponding replacement strings in Scala
How to make the first character uppercase of each word of a List in Scala

Clear ur Doubt

  • Home
  • Technologies
    • Scala
    • Java
    • Hadoop
    • Apache Spark
    • C
  • Tips & Tricks
    • Unix
    • Java 8
  • Projects
    • Python
      • Simple ETL Pipeline
  • Home
  • Blog
  • Java
  • Page 2

Tag: Java

Aug 25

Java Program to sort objects using Comparable Interface

Sai Gowtham BadvityLeave a commentJavaComparable, Java, sorting collections

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Java Program to sort objects using Comparable Interface. Consider a Student object having properties like rollno, name and marks. We will try to sort the objects based on Read more

Aug 22

Java Program to print the counts of chars and digits in the given text.

Sai Gowtham BadvityLeave a commentJavaCharacter class, counter, Java

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Java program to print the counts of chars and digits in the given text. This can be achieved using “Character” class defined “java.lang” package. Here is the Read more

Aug 20

Java Program to find whether a number is even or odd without using modulus/division operator.

Sai Gowtham Badvity1 CommentJavaBinary, even or odd, Java

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Java program to find whether a number is even or odd without using modulus/division operator. Without using the Modulus/division operator, this can be achieved by using “bitwise Read more

Aug 19

2’s complement – Binary representation of Negative numbers in Java

Sai Gowtham BadvityLeave a commentJava2's complement, Binary, Java

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at how a negative number is represented in binary format in Java. All the integer types in Java are signed integers i.e., they represent both positive and negative numbers. Java Read more

Aug 18

Accepting user inputs from console in Java

Sai Gowtham BadvityLeave a commentJavaconsole, Java, user inputs

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Java program to accept inputs from the console and print them back to the output. This can be achieved using the Scanner class defined in java.util package. Read more

Aug 17

String vs StringBuilder vs StringBuffer

Sai Gowtham BadvityLeave a commentJavaJava, String, StringBuffer, StringBuilder

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at the differences between String, StringBuilder & StringBuffer in Java. String: Defined in java.lang package, String is a sequence of characters in Java. A string is considered as an Read more

Jul 26

How to update the last modified timestamp of a file in HDFS?

Sai Gowtham BadvityLeave a commenthadoop jar, HDFS, Javahadoop, hadoop jar, HDFS, Java

Sometimes, we come across a situation where we may need to update the last modified time of a file in HDFS. We can achieve it using Hadoop FileSystem API in Java. Step 1: Create a simple maven project in Eclipse. Read more

Jul 22

“Hello World..!” program in Java

Sai Gowtham BadvityLeave a commentJavafirst program, Hello World, Java

“Hello World..!” – Probably the first message that any developer tries to print on the console, while learning a new programming language. Let’s write a basic Java program to print “Hello World..!” message on the console and go through each Read more

Posts navigation

Newer posts

Recent Posts

  • Creating test data using Python
  • How to replace multiple strings with their corresponding replacement strings in Scala
  • How to make the first character uppercase of each word of a List in Scala

Recent Comments

  • Sai Gowtham Badvity on Calculator program in Scala
  • Sai Aditya on Calculator program in Scala
  • pragadeeshwaran on How to add a new column and update its value based on the other column in the Dataframe in Spark
October 2025
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Aug    
Copyright © All rights reserved.
University Hub by WEN Themes
Scroll Up