Java Naming Conventions

Ankitha Reddy
Updated on 03-Jul-2024 22:31:47

2K+ Views

All Java components require names. Names used for classes, variables and methods are called identifiers. The naming conventions for different Java components are as follows: Package Naming Convention Class Naming Convention Interfaces Naming Convention Method Naming Convention Constants Naming Convention> Variables Naming Convention Quick Summary Package Naming Convention Naming conventions for Java packages typically involve using lowercase letters. It's common to use the reverse domain name as a prefix to ensure uniqueness. Example com.tutorialspoint.project Class Naming Convention When naming classes in Java, it's essential to start the class name with an uppercase letter. ... Read More

Java Program to Find Common Elements in Two ArrayList

AmitDiwan
Updated on 03-Jul-2024 17:56:54

2K+ Views

In this article, we will understand how to find common elements in two array-list. The class ArrayList extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed.Array lists are created with an initial size. When this size is exceeded, the collection is automatically enlarged. When objects are removed, the array may be shrunk.Below is a demonstration of the same −Suppose our input is −First list: [Java, Scala, Shell, JavaScript] Second list: [Java, Python, Shell]The desired output would be − The common elements from the two lists are: [Java, Shell] Steps to Find Common Elements ... Read More

How to create a dropdown navigation bar with CSS?

AmitDiwan
Updated on 03-Jul-2024 17:34:19

13K+ Views

Dropdown navigation is a nav bar that contain dropdown option. You will see a lot of websites where 3rd or 4th item of the navigation has the dropdown feature. When there are multiple options to render on nav bar item on the same category thats where you will need to develop a dropdown navigation bar. Suppose you are providing multiple types of services then you can not render all of them openly on the nav bar, you will put all of them in a dropdown. It is similar to hoverable dropdown menu. Steps to Create a Dorpdown Navbar ... Read More

How to change the color of an image to black and white using CSS?

Shabaz Alam
Updated on 03-Jul-2024 17:33:53

13K+ Views

To change the color of an image to black and white using CSS, is a simple process that can be done using various approaches. In this article, we will learn and understand two different methods for changing an image to black and white using CSS. We are having an image in this article, our task is to change the color of image to black and white using CSS Approaches to Change Color of Image to Black and white Here is a list of approaches to change the color of an image to black and white using CSS with step wise ... Read More

Java Program to Get the First Element from LinkedHashSet

Shiva Keerthi
Updated on 03-Jul-2024 16:22:20

493 Views

LinkedHashSet is a class provided by Java that implements Set Interface. The first element of a LinkedhashSet is nothing but the first element in the collection. In this article, we will discuss different approaches to get the first element from LinkedHashset. What is a LinkedHashSet? A LinkedHashSet is a collection which is a combination of HashSet collection and a LinkedList collection. A HashSet is an unordered collection and also doesn’t allow duplicates. A LinkedList stores duplicates but also is an ordered collection i.e., it stores the elements in a way in which add elements to the collection. Coming to ... Read More

Java Program to Get Elements by Index from LinkedHashSet

Shiva Keerthi
Updated on 03-Jul-2024 16:17:11

1K+ Views

LinkedHashSet is a class provided by Java which Implements Set Interface. LinkedHashSet is implemented as a hash table with a linked list running through it, so it is more efficient that HashSet and also maintains orders. It is useful when you need a collection that maintains order and does not allow duplicates. In this section, we will discuss different approaches to get the elements from LinkedHashset by index. What is a LinkedHashSet? A LinkedHashSet is a collection which is a combination of HashSet collection and a LinkedList collection. A HashSet is an unordered collection and also doesn’t allow duplicates. ... Read More

Explain the sorting techniques in C language

Bhanu Priya
Updated on 03-Jul-2024 14:53:05

31K+ Views

In this article, we are going to learn about the different sorting techniques and their implementations in C language. The following are the sorting techniques that we can implement with C language and other programming also: Bubble Sort Insertion Sort Selection Sort Merge Sort Shell Sort Heap Sort Bucket Sort Counting Sort Radix Sort Quick Sort Bubble Sort using C Bubble Sort is an elementary sorting algorithm, which works by repeatedly exchanging adjacent elements, if necessary. When no exchanges are required, the file is sorted. Example of Bubble Sort using C #include void bubbleSort(int array[], ... Read More

Difference between Frontend and Backend Languages

Shirjeel Yunus
Updated on 03-Jul-2024 11:51:18

18 Views

Frontend and backend are the parts of web development. The processes done at the backend are not visible to the users. They only work on the frontend. There are many differences between the frontend and backend languages and development. In this article, we will look into the difference between frontend and backend languages. But before that, we should know in detail about frontend and backend. Frontend The frontend is the visual aspect of a website or a webpage which is also known as the client-side of an application. Users work on the frontend by working on different components like text ... Read More

Difference between Procedural and Functional Programming Languages

Shirjeel Yunus
Updated on 03-Jul-2024 11:35:24

20 Views

Procedural programming is a type of programming in which different functions or routines are created which consists of a sequence of instructions. Functional programming is used to organize the functions. Each function has to be set in such a way that they can perform the required task. We will discuss the difference between procedural programming languages and functional programming languages. Procedural Programming Languages Procedural programming languages have functions which you have to define. These functions need to have a set of instructions which should be executed when the function is called. You have to think about each instruction that you ... Read More

Difference between Interpreted and Compiled Languages

Shirjeel Yunus
Updated on 03-Jul-2024 11:25:17

12 Views

Programming languages can be interpreted or compiled. The compiled languages are not interpreted and there is no need to compile the interpreted languages. In this article, we will discuss the difference between compiled and interpreted languages. Compiled Programming Languages Compiled programming languages are the languages in which the code has to be compiled to convert it into machine language. This helps the processor execute the code and provide the result. C, C++, C#, Java, etc. are some of the languages which have to be compiled and then executed. What is Compile? Compile is a process which is used to convert ... Read More

1 2 3 4 5 ... 10872 Next
Advertisements