Usharani has Published 88 Articles

How to indicate a potential word break point within a section in HTML?

usharani

usharani

Updated on 02-Mar-2020 12:34:30

The HTML tag defines a potential line breakpoint if needed. This stands for Word Break Opportunity.ExampleYou can try to run the following code to learn how to implement tag in HTML −           HTML wbr Tag               ... Read More

What are some frequently used mysqlimport options while uploading the data into MySQL table through command line?

usharani

usharani

Updated on 27-Feb-2020 07:32:01

mysqlimport can be run with a number of options. Followings are some options for mysqlimport and their effect on import.OptionAction-r or –replaceCause imported rows to overwrite existing rows if they have the same unique key value.-i or –ignoreIgnore rows that have the same unique key value as existing rows.-f or ... Read More

What is a constructor in Java?

usharani

usharani

Updated on 25-Feb-2020 10:54:41

Constructors are similar to methods but, They do not have any return type.The name of the constructor is same as the name of the class.Every class has a constructor. If we do not explicitly write a constructor for a class, the Java compiler builds a default constructor for that class.Each ... Read More

Arrays in Java

usharani

usharani

Updated on 24-Feb-2020 12:37:45

You can create an array by using the new operator with the following syntax −SyntaxarrayRefVar = new dataType[arraySize];The above statement does two things −It creates an array using new dataType[arraySize].It assigns the reference to the newly created array to the variable arrayRefVar.Declaring an array variable, creating an array, and assigning ... Read More

Breaking out of nested loop in java

usharani

usharani

Updated on 24-Feb-2020 12:17:34

Yes, break statement can be used in nested for loops. It works on the for loop in which it is applied. See the example below.Examplepublic class Tester {    public static void main(String[] args) {       for(int i = 0; i< 2; i++) {         ... Read More

How to create a JAR file?

usharani

usharani

Updated on 24-Feb-2020 09:39:53

You can create a JAR file using the following command.jar cf jar-file input-file(s)  You can also create JAR files using IDE’s. To create a JAR file using eclipse follow the procedure given below.Open the Jar File wizardThe Jar File wizard can be used to export the content of a project ... Read More

How many packages and classes are there in Java Standard Edition 8?

usharani

usharani

Updated on 18-Feb-2020 10:48:17

Java Standard Edition provides 14 packages namely –applet − This package provides classes and methods to create and communicate with the applets.awt− This package provides classes and methods to create user interfaces.beans− This package contains classes and methods to develop components based on java beans. io− This package contains classes and ... Read More

Getting age of tracefiles in SAP HANA database

usharani

usharani

Updated on 13-Feb-2020 12:40:44

In SAP HANA database, you have diagnosis files include log and trace files, a mixture of other diagnosis, error, and information files.These files can be checked for diagnosis to find errors in SAP Hana database.In HANA db, you have trace files stored separated per host, so to get access to ... Read More

Use of String.compare for a varchar field in SAP

usharani

usharani

Updated on 13-Feb-2020 12:36:25

Try to use SqlFunctions.DateDiff method overload which requires 3 inputs as follows −var res = from a in db.Set() where SqlFunctions.DateDiff("dd", a.Date, "20161922") >= 0 && SqlFunctions.DateDiff("dd", a.Date, "20161122") < 0 select a

Interface in Java

usharani

usharani

Updated on 06-Feb-2020 07:46:51

An interface is a reference type in Java. It is similar to a class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface.Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types. ... Read More

Advertisements