Ankitha Reddy has Published 75 Articles

What is blank or uninitialized final variable in Java?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

169 Views

No. It is not allowed in Java. The compiler will fail the compilation throwing error that the blank final field may not have been initialized.

Java Naming conventions

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

2K+ Views

All Java components require names. Names used for classes, variables and methods are called identifiers. In Java, there are several points to remember about identifiers. They are as follows - All identifiers should begin with a letter (A to Z or a to z), currency character ($) or an ... Read More

CamelCase in Java naming conventions

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

694 Views

Java follows camel casing for objects, class, variables etc. If a name is having multiple words, the first letter is small then consecutive words are joint with the first letter as a capital case. Consider the following example − Taxation Department Class - TaxationDepartment Object - taxationDepartment Method - getTaxationDepartmentDetails ... Read More

Creating multiple Java objects by one type only

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

988 Views

You can create a List of object easily. Consider the following example, where I'll create an array of Employee objects and print their details in a for loop. import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; public class Tester implements Cloneable { private int data; ... Read More

Set the image path with CSS

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

445 Views

The border-image-source property is used in CSS to set the image path. You can try to run the following code to set the image path − Example Live Demo ... Read More

Media queries with CSS3

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

295 Views

Media queries are for different style rules for different size devices such as mobiles, desktops, etc. You can try to run the following code to implement media queries with CSS3 − Example Live Demo ... Read More

CSS3 Opacity property

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

123 Views

The opacity is a thinner paints need black added to increase opacity. The following example shows CSS3 Opacity property − Example Live Demo #m1 {background-color:rgb(255,0,0);opacity:0.6;} #m2 {background-color:rgb(0,255,0);opacity:0.6;} #m3 {background-color:rgb(0,0,255);opacity:0.6;} HSLA colors: Red Green Blue

How to specify the usage of an element using the tabbing order (tab keyboard button) in HTML?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

122 Views

Use the tabindex attribute in HTML to set the tabbing order of an element. It gives you the authority to change the order of your TAB usage on the keyboard. You can try to run the following code to create tabbing order of an element in HTML − Example ... Read More

How to pass objects to functions in C++?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

531 Views

There are four ways of passing objects to functions. Let's assume you have a class X and want to pass it to a function fun, then − Pass by value This creates a shallow local copy of the object in the function scope. Things you modify here won't be reflected ... Read More

Rotate div to -20 degrees angle with CSS

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:22

443 Views

You can try to run the following code to rotate div to -20 degrees angle with CSS − Example Live Demo div { ... Read More

Advertisements