Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 05-20-2016, 12:46 AM   #1
Shivangi Panwar
Registered User
 
Join Date: Nov 2015
Posts: 127
What is the use of assert keyword?

What is the use of assert keyword?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Shivangi Panwar is offline   Reply With Quote

Old 05-27-2016, 04:11 AM   #2
Swatinigam
Registered User
 
Join Date: May 2016
Posts: 86
assert is a java keyword used to define an assert statement. An assert statement is used to declare an expected boolean condition in a program.
Swatinigam is offline   Reply With Quote
Old 05-30-2016, 03:16 AM   #3
Dubey675
Registered User
 
Join Date: Jul 2015
Posts: 260
Java assertion feature allows developer to put assert statements in Java source code to help unit testing and debugging. Assert keyword validates certain expressions. It replaces the if block effectively and JVM throws an error AssertionError if assertion fails. So, it is mainly used for testing purpose.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Dubey675 is offline   Reply With Quote
Old 06-05-2016, 11:39 PM   #4
Aashi
Registered User
 
Join Date: May 2016
Location: Ahmedabad, Gujarat
Posts: 14
The assert keyword makes an assertion about the code. It enables developers to test assumptions in their programs as a way to defect and fix bugs.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Aashi is offline   Reply With Quote
Old 06-10-2016, 01:15 AM   #5
sumita
Registered User
 
Join Date: Jun 2016
Posts: 53
The assert keyword validates certain expression it is mainly use for testing purpose.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sumita is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Sticky for Meta Description, keywords, keyword density, and title tags sinicline Search Engine Optimization 2 01-06-2017 10:22 AM
Keyword Optimization netxsol Search Engine Optimization 37 12-24-2016 02:15 AM
Good keyword tool for the SEO sneddandcosta31 Search Engine Optimization 138 12-12-2016 04:02 AM
The difference between keyword density, frequency, prominence and proximity rajivwebads Search Engine Optimization 4 11-06-2015 02:56 AM
Problems with Keyword Cannibalization? danielnash Search Engine Optimization 0 04-14-2015 12:45 AM


All times are GMT -7. The time now is 04:52 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.