How will you make sure to develop Java/j2ee projects/applications secured from hackers?Justify how Java projects are more secured than other languages?
Why is that the final variable has to be initialized as soon as it is declare?
Answered by: r.praveenkumar
View all answers by r.praveenkumar
Member Since Oct-2007 | Answered On : Aug 1st, 2008
when a variable is declared as final we cant change its value again. we use final variable to declare a constant so when we declare a variable as final and if we were allowed to not to give its value at the time of declaration it would not make sense so people who designed java made mandatory to give the value when we declare a final variable. then only it will be sensible.
final PI=3.14;
then we cant change PI's value. think if the above statement do not contain a vl it would not make sense.
final keyword can be applied on:- 1.class 2.member functions(only non-static) 3.data-members(both static and non-static) 4.local variables. 1.by making a class final ,that class cannot be inherited....
Like any variable, a final variable can also be first declared and then assigned a value. But it can be only assigned a value once and only once ( as its final variable ). for example :- final Strin...
Explain the concept of design in a project and its life cycle
Projects needs to be designed carefully which must be meaningful according to the readers and learners..It must be planned in such a way so that it can be followed easily a project should contain a meaninngful data related to topic prescribed
Let me start with an example.Consider a development projectInitiation : Requirements gatheringPlanning : From the scratch to the end product based of the needs and requirements provided.Design: Once t...
DAO decides to recieve the appropriate application from java and implemeting it a runtime...during execution..
DAO is Data Access Object.
How to clear screen using c# console application...?Like clrscr() in c++..!
Console.Clear(); its work absolute in c# "c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication9 { class stud...
To clear the screen we can use the clrscr() command followed by ; to clear the input given to the program
Available methods in synchronization ?
Synchronization is a process by using Synchronize keyword to prevent the dead lock. This can be used in methods or block to prevent two threads to access the same resource in the same time.
In this two threads cannot use the same resource simultaneously beacuse the thread execution gets interrupted or terminated hence only a single thread can share resource at a time.
What is the difference b/w Java & Javax files?
Java is the extension of C++ language and javax files are those where it stores the entire program for execution in the form of files and termed as javax files
javax is the extension for the java packages
Code
javax.swing extension for java.awt
Can we declare class as protected?
What is the scope for this class?
Answered by: dipl. ing. Dan
View all answers by dipl. ing. Dan
Member Since Mar-2006 | Answered On : Mar 24th, 2006
Some people might get confused by the many posts. The correct answer to the question "can we declare class as protected?" is YES, BUT only as an inner class. A 'normal' class cannot be protected or private.
// 'Normal' class - only default or public allowed
public class ProtectedOrNot {
// Inner class - public, default, protected, private allowed
protected class InnerClass {
}
public static void main(String[] args) {
}
}
Class can be protected or private but only inner
The class cannot be declared as protected..
What is diffrence between Java and Java script?
Java is the basic object oriented programmng language and Java script can be used in style sheets making and in HTML documentation
java-script is also same as like java only.But java is used in server side scripting and the javascript is used in client side scripting. I will say a real time scenario here consider the normal user...
Threads block on i/o (that is enters the waiting state) so that other threads may executewhile the i/o operation is performed.
Thread gets blocked just because when two thread try to access the single resource simultaneously the threads get blocked and when one thread is using the resource other should be put to sleep state b...
Sir,
i want one doubt, how to open the new window from click the java frame using handling event. please give the idea to me. i know that it's a comment page. But u have using the doubt page. thanking u.
Java projects are more secured than other languages because after compilation of java program byte code is generated. And byte code is unreadable code. Any person cant read the byte code. then the project become more secure.
J2EE application can be made secure by implementing: 1. Authentication 2. Authorization 3. Encrypt the information by making the transport guarantee as Confidential. Authentication verifies if the us...