Found 96 Articles for Campus Interview

Top Kubernetes Interview questions

Aadyaa Srivastava
Updated on 27-Feb-2023 09:51:25

306 Views

The best orchestration technology nowadays is Kubernetes, which has become the industry buzzword. It draws a lot of seasoned employees looking to go up the corporate ladder. International businesses including Huawei, Pokémon, eBay, Yahoo Japan, SAP, Open AI, and Sound Cloud utilize Kubernetes on a daily basis. The market, however, is lacking in Kubernetes Certified experts. I assume you already are aware of these details, which led you to this post about Kubernetes Interview Questions. This article will help you learn about the most common interview questions. Describe Kubernetes An open-source container management platform called Kubernetes is in charge of ... Read More

Java Program to Convert the local Time to GMT

AmitDiwan
Updated on 30-Mar-2022 12:12:28

2K+ Views

In this article, we will understand how to convert the local Time to GMT. Java does not have a built-in Date class, but we can import the java.time package to work with the date and time API. The package includes many date and time classes.Below is a demonstration of the same −Suppose our input is −The local time is: Fri Mar 18 00:01:54 IST 2022The desired output would be −The time in Gmt is: 17/03/2022 18:31:54AlgorithmStep 1 - START Step 2 - Declare an object of LocalDateTime namely date. Step 3 - Define the values. Step 4 - Define different ... Read More

Java Program to Display time in different country’s format

AmitDiwan
Updated on 30-Mar-2022 12:10:09

391 Views

In this article, we will understand how to display time in different country’s format. Java does not have a built-in Date class, but we can import the java.time package to work with the date and time API. The package includes many date and time classes.Below is a demonstration of the same −Suppose our input is −Run the programThe desired output would be −The England Format is: Friday, 18 March 2022 The Italian Format is: venerdì, 18 marzo 2022AlgorithmStep 1 - START Step 2 - Declare an object of LocalDateTime namely date. Step 3 - Define the values. Step 4 - ... Read More

Java Program to Display Dates of Calendar Year in Different Format

AmitDiwan
Updated on 30-Mar-2022 12:00:29

240 Views

In this article, we will understand how to display dates of calendar year in different format. Java does not have a built-in Date class, but we can import the java.time package to work with the date and time API. The package includes many date and time classes.Below is a demonstration of the same −Suppose our input is −Run the programThe desired output would be −The first date format is:2022-03-17T23:37:37.623304800 The second date format is:17/03/2022 The third date format is:Thursday, 17 Mar 2022AlgorithmStep 1 - START Step 2 - Declare an object of LocalDateTime namely date. Step 3 - Define the ... Read More

Java Program to Iterate over ArrayList using Lambda Expression

AmitDiwan
Updated on 30-Mar-2022 11:51:45

2K+ Views

In this article, we will understand how to iterate over ArrayList using lambda expression. The ArrayList class is a resizable array, which can be found in the java.util package. The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified.Below is a demonstration of the same −Suppose our input is −Run the programThe desired output would be −The list is defined as: Java Python Scala Mysql RedshiftAlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step 4 - Create an ArrayList, and iterate over ... Read More

Java Program to Pass ArrayList as the function argument

AmitDiwan
Updated on 30-Mar-2022 11:42:18

4K+ Views

In this article, we will understand how to pass ArrayList as the function argument. The ArrayList class is a resizable array, which can be found in the java.util package. The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified.Below is a demonstration of the same −Suppose our input is −Run the programThe desired output would be −The list is defined as: Java Python Scala Mysql RedshiftAlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step 4 - Create an ArrayList, and iterate over ... Read More

Java Program to Sort map by keys

AmitDiwan
Updated on 30-Mar-2022 11:09:59

376 Views

In this article, we will understand how to sort map by keys. The Java Map interface, java.util.Map, represents a mapping between a key and a value. More specifically, a Java Map can store pairs of keys and values. Each key is linked to a specific value.Below is a demonstration of the same −Suppose our input is −Input map: {1=Scala, 2=Python, 3=Java}The desired output would be −The sorted map with the key: {1=Scala, 2=Python, 3=Java}AlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step 4 - Create a Map structure, and add values to it ... Read More

Java Program to Check if a set is the subset of another set

AmitDiwan
Updated on 30-Mar-2022 11:07:46

777 Views

In this article, we will understand how to check if a set is the subset of another set. A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited.Below is a demonstration of the same −Suppose our input is −First set: [90, 75, 60, 45] Second set : [90, 60]The desired output would be −Is a sets sub-set of the other? trueAlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step ... Read More

Java Program to Calculate the difference between two sets

AmitDiwan
Updated on 30-Mar-2022 11:05:57

552 Views

In this article, we will understand how to calculate the difference between two sets. A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited.Below is a demonstration of the same −Suppose our input is −First set: [90, 75, 60, 45] Second set: [90, 60]The desired output would be −After subtraction of two sets: [75, 45]AlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step 4 - Create two Sets, and ... Read More

Java Program to Calculate the intersection of two sets

AmitDiwan
Updated on 30-Mar-2022 11:03:43

342 Views

In this article, we will understand how to calculate the intersection of two sets. A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited.Below is a demonstration of the same −Suppose our input is −First set: [40, 45] Second set: [50, 45]The desired output would be −The intersection of two sets is: [45]AlgorithmStep 1 - START Step 2 - Declare namely Step 3 - Define the values. Step 4 - Create two Sets, and add elements ... Read More

1 2 3 4 5 ... 10 Next
Advertisements