chevron_left

Recent posts tagged java

0 0 1 min.
Question: --------- Hi there! I was writing the code for practicing file management in Java. When I executed one of my programs, it threw the following exception: java.io.IOException: The filename, directory name, or volume label syntax is incorrec...
posted 3 hours ago john_dev 9 points
6 0 2 min.
JavaScript is a prototype based language, so, whenever we create a function using JavaScript, JavaScript engine adds a prototype property inside a function, **Prototype property** is basically an object (also known as Prototype object), where we can ...
posted 1 day ago SharadMagar450 320 points
6 0 2 min.
It is an empty interface (no field or methods). Examples of marker interface are Serializable, Cloneable and Remote interface. All these interfaces are empty interfaces. public interface Serializable { // nothing here } Example...
posted 1 day ago SharadMagar450 320 points
6 0 1 min.
After successful installation, **Minecraft** doesn’t work fine followed by an error message. The error may occur due to different reasons, including but not limited to the corruption of a .jar file containing game data, corruption of game installatio...
posted 1 day ago SharadMagar450 320 points
6 0 4 min.
**1. Overview** In this article, we are discussing the Spring **org.springframework.beans.factory.BeanCreationException** – this is a very common exception thrown when the BeanFactory creates beans of the bean definitions and encounteres a problem. T...
posted 2 days ago SharadMagar450 320 points
4 0 4 min.
Client-server interactions tend to happen incessantly and smoothly. Despite this, a 400 Bad Request error usually indicates a request that hasn’t been met successfully, or could mean that the remote server you sent your request to could not understan...
posted 2 days ago SharadMagar450 320 points
6 0 1 min.
Overview operators in java: Provides a full featured set of Java operators. Most of them are taken directly from C and C ++. So Java operators differ from their counterparts in other languages ​​in a few important ways. It is important to know ho...
posted 3 days ago Tania 937 points
6 0 1 min.
Introduction java program: Java, developed by Sun Microsystems, is a completely object-oriented programming language. It is used to create small applications with large applications called applets. Are downloaded as files, which provide many functi...
posted 3 days ago Tania 937 points
4 1 2 min.
The FileInputStream class creates an InputStream that can be used to read bytes from a file. An instance of FileInputStream class can be created in two ways: *FileInputStream(String filePath)* *FileInputStream(File obj)* Here, *filePath* is the ful...
posted 4 days ago DivyaN 345 points
4 1 1 min.
Before proceeding with this article I would suggest you to go through the below article which gives a brief description about the Object class. [Java's Object class](https://kodlogs.com/blog/13548/object-class-in-java) Object class is the super cla...
posted 5 days ago DivyaN 345 points
4 1 1 min.
Though seldom used, ? operator have a significant usage in Java. Java include ? operator called **ternary** operator that can be used instead of certain *if-then-else* statements. How it works? Syntax : *condition ? expression1 : expression2* Her...
posted 5 days ago DivyaN 345 points
15 0 1 min.
In the programming world, especially while developing some games, we need to generate random numbers. For example, in Ludo (the world-famous dice game) or the cards game, random numbers are generated each time a player rolls the dice. So, it is good ...
posted 5 days ago Hafsa_Rao 358 points
13 1 1 min.
String handling is a significant feature in Java. String class offers an array of methods to work on strings. One such method which can split a string based on a specific regular expression is **split()**. syntax: *split(String str)* - returns a ...
posted 6 days ago DivyaN 345 points
13 0 2 min.
We oftentimes encounter break and continue statements while working with loops in Java. It seems perplexing especially with continue statement. In this article let us clearly distinguish between break and continue: **Using break statement:** In Ja...
posted 6 days ago DivyaN 345 points
15 0 1 min.
Introduction java : Today we will talk about the function and method in Java, how much difference there is between the two. Or they are both known by the same name. In each language we use a different term like in (C)we call functions, in c++ we call...
posted 6 days ago Tania 937 points
28 0 1 min.
Overview: Today we know a lot of important information, which is the library management system. What is it and why is it used. If you are learning programming, you will often hear it mentioned. If you are learning Java, you must know a lot about it...
posted Sep 12 Tania 937 points
22 1 1 min.
Usually, to count the number of occurences of an element in a collection. We initialize a count variable, and increment it if the specified element matches with the collection elements and display the count variable which implies the number of occure...
posted Sep 12 DivyaN 345 points
14 1 2 min.
Typically, we use == operator to compare the primitive data types. If operand on left side is equal to operand on right side, it returns true otherwise false. Example: int a=10,b=20; if(a==b) { System.out.print("a and b are equal"); } else { Syste...
posted Sep 12 DivyaN 345 points
13 0 1 min.
In Java, there one special class called **Object** class which is the superclass of all classes . All the classes are subclasses of Object class. It means any class will implicitly extend the Object class and the reference variable of Object class ca...
posted Sep 11 DivyaN 345 points
9 0 2 min.
I would recommend to refer the below link to decipher the basics of Multithreading before you proceed with this article. [Basics of Multithreading](https://kodlogs.com/blog/13509/basics-of-multithreaded-programming-in-java) In this article let us c...
posted Sep 10 DivyaN 345 points