Posts

Showing posts with the label Core Java

Which programming language should be known to get a job in the 2023?

Image
Hello everyone, In this post, we have tried to sort out the top 10 programming languages which should be known to get a job in the 20s. Today, advanced digital technologies have entered almost every industry. In our digital world, incipient technologies and inventions are frequently going on.AI, Machine learning, IoT, robotics, Big Data analytics, and lot more technologies are expeditiously amending day by day. Technical experts are endeavoring to go with the latest technologies.  If machines start learning beyond the control of humans, then machines will rule the world👽, have you thought? If yes you are someone special. No matter how far technology has grown, the basis of all modern digital technologies is programming. Programming is the process of engendering a set of instructions that tell a computer how to perform a task. Programming can be done utilizing a variety of computer programming languages, such as Java, Python, C, etc. Below mentioned the top 10 most popular programming

Java - RSA + AES a double layer security system - Architecture + Implementation example

Image
Hello everyone, today we will learn a double-layer security system using RSA+AES in Java, with the help of architecture visualization and one java example. Encryption's primary purpose is to protect against brute force attacks. It is composed of a cipher, the message/data, and a key (the password). With a wide range of free tools available like(Aircrack-ng, John the Ripper, Rainbow Crack, and L0phtCrack ), even baby hackers can attempt to hack passwords using brute force. In my opinion, as a layperson in cryptography, multiple double-layer encryptions may not increase security, but it may slow down attackers. Using encryption may cause performance issues. Or maybe not. It really depends on how you use it. If you understand just how "expensive" each part of your enterprise encryption operation is, it's possible you can avoid the expensive parts and dramatically increase the performance of your applications. Let's see the architecture of the RSA + AES system This is

Java - static keyword in Java with example

Java static keyword is used to create a Class level variable in java. static variables and methods are part of the class, not the instances of the class. The static keyword in Java is used for memory management mainly. We can apply java static keyword with variables, methods, blocks, and nested classes. static is a non-access modifier in Java that is applicable for the following: blocks variables methods nested classes Interface static method(Java 8 onwards) Java static variable We can use static keyword with a class-level variable. A static variable is a class variable and doesn’t belong to the Object/instance of the class. Since static variables are shared across all the instances of Object, they do not thread-safe. Usually, static variables are used with the final keyword for common resources or constants that can be used by all the objects. public class KnowledgeFactoryStaticDemo { // static variable example private static int count; public stat

Java -Stream API Introduction with Example

Java 8 introduced the concept of stream, Stream represents a sequence of objects from a source, which supports aggregate operations.   Following are the characteristics of a Stream − It takes input from the Collections, Arrays, or I/O channels. It never stores the elements. Stream supports intermediate operations like filter, map, limit, reduce, find, match, and so on. Streams only provide the result as per the pipelined methods. Stream operations do the iterations internally over the source elements provided. Different Operations On Streams-   forEach The stream has provided a new method ‘forEach’ to iterate each element of the stream   List < Integer > obj = new ArrayList <>(); obj.add( 7 ); obj.add( 12 ); obj.add( 3 ); obj.add( 5 ); obj.forEach((o) -> System.out.println( "Item : " + o)); map The map method is used to map the items in the collection to other objects according to the Function passed as the argument. List < Str