Prabhas has Published 78 Articles

Execute a script when a file can be played all the way to the end without pausing for buffering in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 12:25:33

47 Views

Use the oncanplaythrough attribute to execute a script when a file can be played all the way to the end without pausing for buffering in HTML.ExampleYou can try to run the following code to implement oncanplaythrough attribute −                         ... Read More

Execute a script when the element is being dragged in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 09:50:12

80 Views

Use the ondragover attribute in HTML to execute a script when the element is being dragged in HTML.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float  : ... Read More

Execute a script when the browser window is closed in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 07:38:46

463 Views

The unloaded attribute triggers when you close the web browser window. You can try to run the following code to implement unloaded attribute in HTML −Example           Tutorialspoint       Simply Easy learning                function display() {             alert("Bye!");          }          

How to create a progress bar in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 06:22:08

6K+ Views

Use the tag to create a progress bar in HTML. The HTML tag specifies a completion progress of a task. It is displayed as a progress bar. The value of progress bar can be manipulated by JavaScript.The following are the attributes −AttributeValueDescriptionmax maxIt should have a value greater ... Read More

Using Group by hour in SAP HANA table

Prabhas

Prabhas

Updated on 26-Feb-2020 10:10:15

401 Views

You can try this method to convert time to date and hour format −select to_varchar(time, 'YYYY-MM-DD'), hour(time), sum(r_time) as r_time, sum(p_time) as p_time from t1 group by date(time), hour(time) order by to_varchar(time, 'YYYY-MM-DD'), hour(time);You can also try using Series_Round() with a group by clause.select SERIES_ROUND(time, 'INTERVAL 1 HOUR') as time, ... Read More

How to convert comma seperated java string to an array.

Prabhas

Prabhas

Updated on 24-Feb-2020 12:15:58

5K+ Views

Yes, use String.split() method to do it. See the example below −Examplepublic class Tester {    public static void main(String[] args) {       String text = "This,is,a,comma,seperated,string.";       String[] array = text.split(",");       for(String value:array) {          System.out.print(value + " ");       }    } }OutputThis is a comma seperated string.

How to create an object from class in Java?

Prabhas

Prabhas

Updated on 19-Feb-2020 07:39:44

2K+ Views

An object is created from a class using the new keyword. There are three steps when creating an object from a class −Declaration − A variable declaration with a variable name with an object type.Instantiation − The 'new' keyword is used to create the object.Initialization − The 'new' keyword is ... Read More

What is the difference between keywords and reserved words in Java?

Prabhas

Prabhas

Updated on 18-Feb-2020 11:11:37

515 Views

KeywordsKeywords in Java convey a special meaning to the compiler therefore, these cannot be used as identifiers. Java provides a set of 50 keywords.abstractcontinuefornewswitchassertdefaultgotopackagesynchronizedbooleandoifprivatethisbreakdoubleimplementsprotectedthrowbyteelseimportpublicthrowscaseenuminstanceofreturntransientcatchextendsintshorttrycharfinallongstrictfpvolatileconstfloatnativesuperwhileReserved wordsAmong the list of key words list mentioned above the key words goto and const are currently not in use. They are reserved words (for the ... Read More

What is a classloader in Java?

Prabhas

Prabhas

Updated on 18-Feb-2020 10:46:23

239 Views

Java Virtual machine is the program which accepts .class files as input and converts this to system executable code.The class loader is a module in JVM it loads, links and, initialize a program.Loads the class into the memory.Verifies the byte code instructions.Allocates memory for the program.Read More

How can we compare data in two MySQL tables?

Prabhas

Prabhas

Updated on 14-Feb-2020 11:09:29

1K+ Views

Sometimes we need to identify the unmatched data from two tables, especially in the case when data is migrated. It can be done by comparing the tables. Consider the example below in which we have two tables named ‘students’ and ‘student1’.mysql> Select * from students; +--------+--------+----------+ | RollNo | Name ... Read More

Advertisements