<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5887113154087504619</id><updated>2026-01-09T21:02:45.172+05:30</updated><category term="android"/><category term="5G"/><category term="6G"/><category term="AI"/><category term="AR"/><category term="Compose"/><category term="Fragment"/><category term="JetPack"/><category term="Kotlin"/><category term="interview"/><category term="ActionTablet"/><category term="Activity"/><category term="Apple intelligence"/><category term="Application"/><category term="Aspect"/><category term="Banking"/><category term="Basic Android Interview Q&amp;A."/><category term="Basic Iphone Interview Q&amp;A"/><category term="Bitmap to String"/><category term="Block Incoming call - Android"/><category term="Class"/><category term="Convert String to Bitmap"/><category term="DVM"/><category term="Dalvik"/><category term="Device."/><category term="Foldable"/><category term="Generate PDF in Android"/><category term="IPC"/><category term="Improve your concentration"/><category term="Intent"/><category term="Intent in Android"/><category term="Java"/><category term="Latest mobile trends"/><category term="Lazy Loading Image Download in android"/><category term="Lifestyle Application"/><category term="ML"/><category term="Map"/><category term="Mobile Technologies"/><category term="Modify the AndroidManifest File"/><category term="Now (Right to Left) support in Android 4.2"/><category term="OOp&#39;s"/><category term="Object"/><category term="Parsing"/><category term="Ration"/><category term="SAX Parsing -in Android"/><category term="Security"/><category term="Sticky Intent"/><category term="UI"/><category term="VR"/><category term="WWDC 2024"/><category term="Zygote"/><category term="answer"/><category term="container"/><category term="creating your own android application."/><category term="iPhone"/><category term="inheritance"/><category term="interface"/><category term="method"/><category term="mobile"/><category term="question training"/><category term="wi-fi Hotspot"/><title type='text'>Mobile Tomorrow: Trends Shaping the Future of Technology</title><subtitle type='html'>This blog is more than just a resource; it’s a vibrant community for developers, tech enthusiasts, and innovators. Here, we explore the latest in mobile technology, exchange ideas, and push the boundaries of app development together.&#xa;&#xa;Stay curious, stay connected, and let’s innovate together!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-4761044502345064059</id><published>2024-06-19T17:29:00.004+05:30</published><updated>2024-06-19T17:29:31.085+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Compose"/><category scheme="http://www.blogger.com/atom/ns#" term="JetPack"/><category scheme="http://www.blogger.com/atom/ns#" term="Kotlin"/><category scheme="http://www.blogger.com/atom/ns#" term="method"/><category scheme="http://www.blogger.com/atom/ns#" term="UI"/><title type='text'>Mastering Jetpack Compose: Key Methods for Efficient Android UI Development</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Jetpack Compose is a modern toolkit for building native Android UI. It simplifies UI development by providing a declarative approach, making it easier to build complex user interfaces. Here are the key methods and concepts in Jetpack Compose that are essential for creating dynamic and responsive UIs:&lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;1. &lt;code&gt;@Composable&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;The &lt;code&gt;@Composable&lt;/code&gt; annotation is the cornerstone of Jetpack Compose. It designates a function as a composable, meaning it can define UI components. Composable functions can describe what UI elements should look like and how they should behave.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;Greeting&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;(name: &lt;span class=&quot;hljs-type&quot;&gt;String&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt; {
    Text(text = &lt;span class=&quot;hljs-string&quot;&gt;&quot;Hello, &lt;span class=&quot;hljs-variable&quot;&gt;$name&lt;/span&gt;!&quot;&lt;/span&gt;)
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;2. &lt;code&gt;setContent&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This method is used to set the content view of an activity to a composable function. It&#39;s typically called within the &lt;code&gt;onCreate&lt;/code&gt; method of an activity.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title class_&quot;&gt;MainActivity&lt;/span&gt; : &lt;span class=&quot;hljs-type&quot;&gt;ComponentActivity&lt;/span&gt;() {
    &lt;span class=&quot;hljs-keyword&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;onCreate&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;(savedInstanceState: &lt;span class=&quot;hljs-type&quot;&gt;Bundle&lt;/span&gt;?)&lt;/span&gt;&lt;/span&gt; {
        &lt;span class=&quot;hljs-keyword&quot;&gt;super&lt;/span&gt;.onCreate(savedInstanceState)
        setContent {
            MyApp()
        }
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;3. &lt;code&gt;Modifier&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Modifiers in Jetpack Compose are used to decorate or modify UI elements. They can adjust layout, add padding, handle gestures, and more. Modifiers can be chained to apply multiple behaviors to a composable.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;BoxExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    Box(
        modifier = Modifier
            .size(&lt;span class=&quot;hljs-number&quot;&gt;100.&lt;/span&gt;dp)
            .background(Color.Blue)
    )
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;4. &lt;code&gt;remember&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;The &lt;code&gt;remember&lt;/code&gt; function is used to store an object in the composable&#39;s state, retaining its value across recompositions. It&#39;s crucial for performance optimization and managing UI state.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;Counter&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; count &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-number&quot;&gt;0&lt;/span&gt;) }
    Button(onClick = { count++ }) {
        Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Clicked &lt;span class=&quot;hljs-variable&quot;&gt;$count&lt;/span&gt; times&quot;&lt;/span&gt;)
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;5. &lt;code&gt;State&lt;/code&gt; and &lt;code&gt;mutableStateOf&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;These are used to manage state in Jetpack Compose. &lt;code&gt;State&lt;/code&gt; holds the current state value, while &lt;code&gt;mutableStateOf&lt;/code&gt; creates a mutable state object that can be updated and observed by the UI.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;ToggleButton&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; isOn &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-literal&quot;&gt;false&lt;/span&gt;) }
    Button(onClick = { isOn = !isOn }) {
        Text(&lt;span class=&quot;hljs-keyword&quot;&gt;if&lt;/span&gt; (isOn) &lt;span class=&quot;hljs-string&quot;&gt;&quot;ON&quot;&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;hljs-string&quot;&gt;&quot;OFF&quot;&lt;/span&gt;)
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;6. &lt;code&gt;LaunchedEffect&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This composable is used to run suspend functions or side effects in a composable scope. It is often used for tasks like starting a coroutine in response to state changes.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;Timer&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; time &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-number&quot;&gt;0&lt;/span&gt;) }
    LaunchedEffect(&lt;span class=&quot;hljs-built_in&quot;&gt;Unit&lt;/span&gt;) {
        &lt;span class=&quot;hljs-keyword&quot;&gt;while&lt;/span&gt; (&lt;span class=&quot;hljs-literal&quot;&gt;true&lt;/span&gt;) {
            delay(&lt;span class=&quot;hljs-number&quot;&gt;1000&lt;/span&gt;)
            time++
        }
    }
    Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Time: &lt;span class=&quot;hljs-variable&quot;&gt;$time&lt;/span&gt;&quot;&lt;/span&gt;)
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;7. &lt;code&gt;SideEffect&lt;/code&gt; and &lt;code&gt;DisposableEffect&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;code&gt;SideEffect&lt;/code&gt; is used to perform side effects that need to happen during recompositions, while &lt;code&gt;DisposableEffect&lt;/code&gt; is used to set up and clean up resources tied to the lifecycle of a composable.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;ResourceUser&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    DisposableEffect(&lt;span class=&quot;hljs-built_in&quot;&gt;Unit&lt;/span&gt;) {
        &lt;span class=&quot;hljs-comment&quot;&gt;// Initialize resource&lt;/span&gt;
        onDispose {
            &lt;span class=&quot;hljs-comment&quot;&gt;// Clean up resource&lt;/span&gt;
        }
    }
    &lt;span class=&quot;hljs-comment&quot;&gt;// UI logic&lt;/span&gt;
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;8. &lt;code&gt;derivedStateOf&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This is used to create a state that is derived from other state values. It helps optimize recompositions by recomputing only when the dependent state changes.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;DerivedStateExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; input &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Compose&quot;&lt;/span&gt;) }
    &lt;span class=&quot;hljs-keyword&quot;&gt;val&lt;/span&gt; uppercaseInput &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; derivedStateOf { input.uppercase() }

    Column {
        TextField(value = input, onValueChange = { input = it })
        Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Uppercase: &lt;span class=&quot;hljs-variable&quot;&gt;$uppercaseInput&lt;/span&gt;&quot;&lt;/span&gt;)
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;9. &lt;code&gt;rememberSaveable&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This function extends &lt;code&gt;remember&lt;/code&gt; by saving the state across configuration changes and process death, making it ideal for preserving UI state like input values during rotations.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;SaveableCounter&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; count &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; rememberSaveable { mutableStateOf(&lt;span class=&quot;hljs-number&quot;&gt;0&lt;/span&gt;) }
    Button(onClick = { count++ }) {
        Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Clicked &lt;span class=&quot;hljs-variable&quot;&gt;$count&lt;/span&gt; times&quot;&lt;/span&gt;)
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;10. &lt;code&gt;produceState&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This composable is used to create a state value from a suspend function, particularly useful for integrating with external data sources or performing asynchronous tasks.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;DataLoader&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;val&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; produceState(initialValue = &lt;span class=&quot;hljs-string&quot;&gt;&quot;Loading...&quot;&lt;/span&gt;) {
        delay(&lt;span class=&quot;hljs-number&quot;&gt;2000&lt;/span&gt;)
        value = &lt;span class=&quot;hljs-string&quot;&gt;&quot;Data loaded&quot;&lt;/span&gt;
    }
    Text(&lt;span class=&quot;hljs-keyword&quot;&gt;data&lt;/span&gt;)
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;11. &lt;code&gt;snapshotFlow&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;This function converts a state or property into a &lt;code&gt;Flow&lt;/code&gt;, allowing you to collect and react to state changes over time. It&#39;s useful for integrating state with reactive streams.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;FlowExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; count &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-number&quot;&gt;0&lt;/span&gt;) }
    LaunchedEffect(&lt;span class=&quot;hljs-built_in&quot;&gt;Unit&lt;/span&gt;) {
        snapshotFlow { count }
            .collect { newCount -&amp;gt;
                &lt;span class=&quot;hljs-comment&quot;&gt;// React to count changes&lt;/span&gt;
            }
    }
    Button(onClick = { count++ }) {
        Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Increment&quot;&lt;/span&gt;)
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;12. &lt;code&gt;Crossfade&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Crossfade allows smooth transitions between different UI components by fading one out and another in. It’s ideal for state-based UI changes where the UI content needs to change fluidly.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;CrossfadeExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;(state: &lt;span class=&quot;hljs-type&quot;&gt;Boolean&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt; {
    Crossfade(targetState = state) { isOn -&amp;gt;
        &lt;span class=&quot;hljs-keyword&quot;&gt;if&lt;/span&gt; (isOn) {
            Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;ON&quot;&lt;/span&gt;)
        } &lt;span class=&quot;hljs-keyword&quot;&gt;else&lt;/span&gt; {
            Text(&lt;span class=&quot;hljs-string&quot;&gt;&quot;OFF&quot;&lt;/span&gt;)
        }
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;13. &lt;code&gt;Navigation&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Jetpack Compose integrates with the Navigation component, enabling navigation between composable screens. &lt;code&gt;NavHost&lt;/code&gt; and &lt;code&gt;NavController&lt;/code&gt; are key components for managing navigation.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;NavigationExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;val&lt;/span&gt; navController = rememberNavController()
    NavHost(navController, startDestination = &lt;span class=&quot;hljs-string&quot;&gt;&quot;home&quot;&lt;/span&gt;) {
        composable(&lt;span class=&quot;hljs-string&quot;&gt;&quot;home&quot;&lt;/span&gt;) { HomeScreen(navController) }
        composable(&lt;span class=&quot;hljs-string&quot;&gt;&quot;detail&quot;&lt;/span&gt;) { DetailScreen() }
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;14. &lt;code&gt;Animate*&lt;/code&gt; functions&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Jetpack Compose provides various &lt;code&gt;animate*&lt;/code&gt; functions (&lt;code&gt;animateFloatAsState&lt;/code&gt;, &lt;code&gt;animateDpAsState&lt;/code&gt;, etc.) for animating different types of values. They are used to smoothly transition between states.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;AnimatedBox&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;()&lt;/span&gt;&lt;/span&gt; {
    &lt;span class=&quot;hljs-keyword&quot;&gt;var&lt;/span&gt; size &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; remember { mutableStateOf(&lt;span class=&quot;hljs-number&quot;&gt;100.&lt;/span&gt;dp) }
    &lt;span class=&quot;hljs-keyword&quot;&gt;val&lt;/span&gt; animatedSize &lt;span class=&quot;hljs-keyword&quot;&gt;by&lt;/span&gt; animateDpAsState(targetValue = size)

    Box(
        modifier = Modifier
            .size(animatedSize)
            .background(Color.Red)
            .clickable { size += &lt;span class=&quot;hljs-number&quot;&gt;50.&lt;/span&gt;dp }
    )
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;15. &lt;code&gt;LazyColumn&lt;/code&gt; and &lt;code&gt;LazyRow&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;These composables are used to display a list or a row of items efficiently, handling large datasets by only rendering visible items, similar to RecyclerView in traditional Android.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;kotlin&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;code class=&quot;!whitespace-pre hljs language-kotlin&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;@Composable&lt;/span&gt;
&lt;span class=&quot;hljs-function&quot;&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;hljs-title&quot;&gt;LazyColumnExample&lt;/span&gt;&lt;span class=&quot;hljs-params&quot;&gt;(items: &lt;span class=&quot;hljs-type&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span class=&quot;hljs-type&quot;&gt;String&lt;/span&gt;&amp;gt;)&lt;/span&gt;&lt;/span&gt; {
    LazyColumn {
        items(items) { item -&amp;gt;
            Text(text = item)
        }
    }
}
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;color: #e69138; font-family: verdana;&quot;&gt;Summary&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Jetpack Compose&#39;s methods and concepts offer a comprehensive toolkit for developing modern Android applications with a declarative approach. Mastering these methods can significantly enhance your ability to build intuitive, efficient, and responsive user interfaces.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/4761044502345064059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/mastering-jetpack-compose-key-methods.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/4761044502345064059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/4761044502345064059'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/mastering-jetpack-compose-key-methods.html' title='Mastering Jetpack Compose: Key Methods for Efficient Android UI Development'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-6374573634087104533</id><published>2024-06-18T11:30:00.004+05:30</published><updated>2024-06-19T16:56:12.497+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Compose"/><category scheme="http://www.blogger.com/atom/ns#" term="JetPack"/><category scheme="http://www.blogger.com/atom/ns#" term="Kotlin"/><title type='text'>Jetpack Compose: Revolutionizing UI Development in Android</title><content type='html'>&lt;p&gt;In the ever-evolving world of Android development, creating responsive, efficient, and aesthetically pleasing user interfaces has always been a challenge. Enter &lt;strong&gt;Jetpack Compose&lt;/strong&gt;, Google’s modern toolkit designed to simplify and streamline UI development for Android apps. With its declarative approach, Jetpack Compose has transformed how developers build UIs, offering a more intuitive and flexible way to create beautiful applications. Let’s dive into what makes Jetpack Compose a game-changer, along with some of its limitations.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;1. The Rise of Jetpack Compose: An Overview&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Launched as part of Android Jetpack, Jetpack Compose is a modern UI toolkit that leverages the power of Kotlin to build native Android UIs more efficiently. Unlike traditional XML-based layouts, Jetpack Compose uses a declarative syntax, allowing developers to define what the UI should look like and let the framework handle the rendering and state management.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;2. Why Jetpack Compose is a Game-Changer&lt;/strong&gt;&lt;/h3&gt;&lt;h4&gt;&lt;strong&gt;2.1. Simplified UI Development&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;One of the biggest advantages of Jetpack Compose is its simplicity. Here’s how it simplifies UI development:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Declarative Syntax&lt;/strong&gt;: With Jetpack Compose, you describe what your UI should look like and Compose takes care of the rest. For example, to create a button, you simply declare its appearance and behavior in your Kotlin code, like so:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium&quot;&gt;&lt;div class=&quot;flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;overflow-y-auto p-4&quot; dir=&quot;ltr&quot;&gt;&lt;pre&gt;&lt;code&gt;Button(onClick = { /* Handle click */ }) {
 Text(&quot;Click Me&quot;)
}&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;This approach reduces boilerplate code and makes the UI code more readable and concise.&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Composable Functions&lt;/strong&gt;: Compose introduces the concept of composable functions, which are the building blocks of UI. Any function annotated with &lt;code&gt;@Composable&lt;/code&gt; can describe a part of the UI, and these functions can be nested and reused across your application.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reactivity Built-In&lt;/strong&gt;: Jetpack Compose inherently supports reactive programming. When the state changes, Compose automatically updates the affected UI components. This eliminates the need for manual UI updates, making your app more responsive and reducing the likelihood of bugs.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;&lt;strong&gt;2.2. Flexibility and Customization&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Jetpack Compose provides unmatched flexibility:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dynamic UI Changes&lt;/strong&gt;: With Compose, creating dynamic and interactive UIs is easier. You can easily bind UI components to state variables, and the UI will update automatically when the state changes.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom Components&lt;/strong&gt;: If you need a UI element that’s not provided out-of-the-box, you can create your own custom composable functions. This extensibility allows developers to implement unique designs and interactions.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Animation API&lt;/strong&gt;: Compose offers a rich set of APIs for building animations, making it easier to add fluid transitions and interactions to your apps without complex code.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;&lt;strong&gt;2.3. Interoperability with Existing Code&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Jetpack Compose is designed to work alongside existing Android views and XML layouts. This interoperability means you can gradually integrate Compose into your current projects without having to rewrite everything from scratch. You can mix Compose and traditional views in the same app, ensuring a smooth transition to the new toolkit.&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;2.4. Time-Saving Tools&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Compose comes with a suite of tools that enhance developer productivity:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Live Preview&lt;/strong&gt;: Android Studio’s live preview feature lets you see changes to your Compose UI in real-time, without having to rebuild the app.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Hot Reload&lt;/strong&gt;: With hot reload, you can instantly update your app’s UI and see changes without restarting the app, significantly speeding up the development process.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Intuitive UI Testing&lt;/strong&gt;: Compose simplifies UI testing with built-in support for writing tests in a declarative manner, which can improve the robustness of your app’s UI.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;3. The Learning Curve: Transitioning to Jetpack Compose&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;While Jetpack Compose offers numerous advantages, there are some challenges to be aware of:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;New Paradigm&lt;/strong&gt;: Moving from the traditional imperative UI development approach (using XML and View-based layouts) to Compose’s declarative style can be challenging. Developers need to learn new concepts and adapt their mindset to fully leverage Compose.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;State Management&lt;/strong&gt;: Understanding and managing state in Compose requires a solid grasp of reactive programming principles. While Compose simplifies a lot of the manual work, it also introduces new patterns for state handling that developers must master.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Initial Setup and Configuration&lt;/strong&gt;: Getting started with Compose might involve setting up additional dependencies and ensuring compatibility with existing libraries and project setups.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;4. Limitations and Challenges of Jetpack Compose&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Despite its numerous benefits, Jetpack Compose is not without its limitations:&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;4.1. Performance Overhead&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;While Compose is designed to be performant, there can be instances where the performance might not match that of optimized, traditional Android views. Complex UI layouts or frequent state changes can introduce overhead, especially if not carefully managed.&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;4.2. Limited Maturity&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;As a relatively new toolkit, Jetpack Compose is still evolving. Some features and components are not as mature or stable as their XML counterparts. Developers might encounter bugs or limitations, especially with more complex or niche use cases.&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;4.3. Ecosystem and Library Support&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Although the ecosystem around Compose is growing, not all third-party libraries and tools are fully compatible with Compose yet. Developers may need to find workarounds or adapt existing solutions to work with Compose.&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;4.4. Learning Curve for Complex UIs&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Creating complex or highly customized UI components might require a deep understanding of Compose&#39;s internal workings. Developers transitioning from traditional UI development may need time to become proficient in leveraging Compose to its full potential.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;5. Getting Started with Jetpack Compose&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;For those ready to dive into Jetpack Compose, here are some steps to get started:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;Set Up Your Development Environment&lt;/strong&gt;: Make sure you have the latest version of Android Studio. Jetpack Compose requires Android Studio Arctic Fox or later.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Create a New Project with Compose&lt;/strong&gt;: Start a new project with Compose enabled or integrate Compose into an existing project by adding the necessary dependencies.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Learn the Basics&lt;/strong&gt;: Familiarize yourself with Compose’s core concepts, such as composable functions, state management, and layouts.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Experiment and Build&lt;/strong&gt;: Start building simple UIs and gradually experiment with more complex components and interactions.&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;strong&gt;6. Conclusion: The Future with Jetpack Compose&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Jetpack Compose represents a significant shift in Android development, offering a modern, intuitive, and efficient way to build UIs. Its declarative nature and robust features promise to reduce the complexity of UI development and improve developer productivity. However, as with any new technology, it’s important to understand its limitations and be prepared for the learning curve.&lt;/p&gt;&lt;p&gt;As Jetpack Compose continues to evolve, it’s poised to become the standard for Android UI development, providing a powerful tool for developers to create stunning and responsive applications. Embracing Jetpack Compose means not only adopting a new way of building UIs but also staying at the forefront of Android development innovation.&lt;/p&gt;&lt;p&gt;Whether you’re a seasoned Android developer or just starting, exploring Jetpack Compose will open new doors to creativity and efficiency in your app development journey.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/6374573634087104533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/jetpack-compose-revolutionizing-ui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6374573634087104533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6374573634087104533'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/jetpack-compose-revolutionizing-ui.html' title='Jetpack Compose: Revolutionizing UI Development in Android'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-538787154402116080</id><published>2024-06-18T11:07:00.000+05:30</published><updated>2024-06-18T11:09:40.828+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="5G"/><category scheme="http://www.blogger.com/atom/ns#" term="6G"/><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="Apple intelligence"/><category scheme="http://www.blogger.com/atom/ns#" term="AR"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="WWDC 2024"/><title type='text'>Exploring Apple iOS 18: A Dive into the Future of Mobile Innovation</title><content type='html'>&lt;p&gt;Apple&#39;s iOS 18 is more than just an update; it’s a revolution in the mobile operating system landscape. As the latest iteration of Apple&#39;s renowned iOS, this version brings a host of innovative features designed to enhance user experience, boost productivity, and expand the horizons of what your iPhone can do. From seamless AI integration to groundbreaking customization options, iOS 18 is set to transform how we interact with our devices. Let&#39;s explore some of the standout features that make this update a game-changer.&lt;/p&gt;&lt;h3&gt;1. &lt;strong&gt;AI-Powered Smart Widgets: Personalized Just for You&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;In iOS 18, widgets have received a significant upgrade. The new AI-powered Smart Widgets dynamically adapt to your routine and preferences. They provide real-time information and suggestions based on your usage patterns. For instance, if you frequently check the weather in the morning, the weather widget will become more prominent during your waking hours. These widgets can also integrate seamlessly with third-party apps, offering a personalized dashboard tailored just for you.&lt;/p&gt;&lt;h3&gt;2. &lt;strong&gt;Interactive Home Screen: A New Era of Customization&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;iOS 18 introduces an interactive home screen, allowing users to interact with apps and widgets without launching them fully. You can now perform tasks like checking your emails, changing music tracks, or responding to messages directly from the home screen. This feature minimizes interruptions and enhances multitasking, making your daily interactions with your phone more efficient.&lt;/p&gt;&lt;h3&gt;3. &lt;strong&gt;Extended Reality (XR) Experiences: Blurring the Lines Between Physical and Digital Worlds&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Apple is taking a big leap into the realm of Extended Reality (XR) with iOS 18. Leveraging advanced AR capabilities and seamless integration with Apple Vision Pro, iOS 18 allows users to experience augmented and mixed reality applications with unprecedented smoothness and detail. Whether it’s for gaming, navigation, or immersive educational content, XR on iOS 18 is poised to set new standards in digital interaction.&lt;/p&gt;&lt;h3&gt;4. &lt;strong&gt;Privacy Enhancements: Keeping You Secure&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;With growing concerns about digital privacy, iOS 18 doubles down on security. The new Privacy Dashboard provides a comprehensive overview of app permissions and data usage. Additionally, iOS 18 includes more granular control options, allowing users to manage how apps access their location, microphone, camera, and other sensitive data. Apple’s continued commitment to privacy ensures that your personal information remains under your control.&lt;/p&gt;&lt;h3&gt;5. &lt;strong&gt;Universal Control: A Seamless Multidevice Ecosystem&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Expanding the concept of continuity, iOS 18 introduces Universal Control, which allows users to operate multiple Apple devices with a single keyboard and mouse. This feature, previously available for macOS, is now extended to iOS, making it easier to work across your iPhone, iPad, and Mac without switching devices. Drag and drop files or move seamlessly between screens for a more integrated and fluid workflow.&lt;/p&gt;&lt;h3&gt;6. &lt;strong&gt;Advanced Health Monitoring: A Personal Health Assistant in Your Pocket&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;The Health app in iOS 18 is smarter and more proactive than ever. Enhanced with advanced algorithms, it now offers personalized health insights and recommendations. New features include real-time monitoring of vital signs like blood glucose levels, stress detection using heart rate variability, and comprehensive menstrual health tracking. These enhancements make your iPhone a more powerful tool in managing your health and wellness.&lt;/p&gt;&lt;h3&gt;7. &lt;strong&gt;Revamped Messages App: Richer Conversations&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Messaging gets a significant boost with iOS 18. The Messages app now supports interactive elements, such as rich media previews and in-line replies for group conversations. The new features allow for more dynamic and engaging chats, with seamless integration of videos, gifs, and links. Furthermore, the improved search functionality makes finding old messages and media a breeze.&lt;/p&gt;&lt;h3&gt;8. &lt;strong&gt;Smart Siri: Your Enhanced Digital Assistant&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Siri in iOS 18 is smarter, faster, and more intuitive. Leveraging on-device processing, Siri offers quicker responses and improved voice recognition. The assistant now supports multi-step commands and can handle more complex queries without requiring precise wording. Additionally, Siri’s new “Routine Suggestions” can help automate your daily tasks, from setting reminders to turning off lights at bedtime.&lt;/p&gt;&lt;h3&gt;9. &lt;strong&gt;Dynamic Wallpapers: Bringing Your Screen to Life&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Personalization in iOS 18 reaches new heights with dynamic wallpapers. These wallpapers react to the time of day, your activities, or even the weather. Imagine your wallpaper reflecting a sunny day or a starry night, or even subtle animations when you receive a notification. These dynamic elements add a touch of liveliness to your device, making it feel more responsive and engaging.&lt;/p&gt;&lt;h3&gt;10. &lt;strong&gt;Battery Health Management: Extending Your Device’s Lifespan&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Apple continues its focus on battery performance with iOS 18. The new Battery Health Management system intelligently optimizes charging patterns and performance settings based on your usage habits. This helps to extend the lifespan of your battery and maintain peak performance over time. The system also provides detailed insights into your battery’s health and usage, allowing you to manage your device more effectively.&lt;/p&gt;&lt;h3&gt;Conclusion&lt;/h3&gt;&lt;p&gt;Apple&#39;s iOS 18 is a testament to the company’s relentless pursuit of innovation and user-centric design. From enhanced customization options to groundbreaking XR capabilities, this update is set to redefine what’s possible on a mobile device. Whether you&#39;re an everyday user or a tech enthusiast, iOS 18 promises to deliver a more intuitive, personalized, and powerful experience.&lt;/p&gt;&lt;p&gt;Upgrade to iOS 18 and explore the future of mobile technology today.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/538787154402116080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/exploring-apple-ios-18-dive-into-future.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/538787154402116080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/538787154402116080'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/exploring-apple-ios-18-dive-into-future.html' title='Exploring Apple iOS 18: A Dive into the Future of Mobile Innovation'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-6270717564960187733</id><published>2024-06-17T17:18:00.000+05:30</published><updated>2024-06-17T17:20:37.868+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="5G"/><category scheme="http://www.blogger.com/atom/ns#" term="6G"/><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="AR"/><category scheme="http://www.blogger.com/atom/ns#" term="Foldable"/><category scheme="http://www.blogger.com/atom/ns#" term="Latest mobile trends"/><category scheme="http://www.blogger.com/atom/ns#" term="ML"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="Mobile Technologies"/><category scheme="http://www.blogger.com/atom/ns#" term="VR"/><title type='text'>Top Mobile Technology Trends to Watch in 2024: What&#39;s Shaping the Future?</title><content type='html'>&lt;p&gt;The mobile technology landscape is rapidly evolving, driven by advancements in hardware, software, and network capabilities. Here are the key trends shaping the industry in 2024:&lt;/p&gt;&lt;h4&gt;1. &lt;strong&gt;5G and Beyond:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Expansion of 5G Networks:&lt;/strong&gt; With wider adoption, 5G networks are delivering faster data speeds, reduced latency, and improved connectivity, enabling new applications like augmented reality (AR) and real-time cloud gaming.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Preparation for 6G:&lt;/strong&gt; Research and early developments in 6G are underway, promising even faster speeds and more robust connectivity, which could revolutionize areas like the Internet of Things (IoT) and smart cities.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;2. &lt;strong&gt;Artificial Intelligence (AI) and Machine Learning (ML):&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;On-device AI:&lt;/strong&gt; Modern smartphones now come equipped with AI chips that support advanced functionalities like real-time language translation, improved camera features, and enhanced security.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;AI-driven Personalization:&lt;/strong&gt; AI is being used to create more personalized user experiences, from app recommendations to adaptive battery management.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;3. &lt;strong&gt;Foldable and Flexible Displays:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Improved Durability and Usability:&lt;/strong&gt; Foldable phones are becoming more durable and user-friendly, with better hinges and screens that can withstand daily use.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Innovative Form Factors:&lt;/strong&gt; New devices with rollable or stretchable displays are on the horizon, offering unique user experiences and transforming how we interact with our devices.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;4. &lt;strong&gt;Augmented Reality (AR) and Virtual Reality (VR):&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;AR Integration:&lt;/strong&gt; Mobile AR is gaining traction, with apps enhancing shopping, gaming, and navigation experiences by overlaying digital content onto the real world.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;VR Accessibility:&lt;/strong&gt; Advances in mobile VR headsets and applications are making immersive experiences more accessible to everyday users.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;5. &lt;strong&gt;Enhanced Mobile Security:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Biometric Advancements:&lt;/strong&gt; Facial recognition, fingerprint scanning, and even voice recognition are becoming more secure and widespread.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Privacy-focused Features:&lt;/strong&gt; Mobile operating systems are increasingly prioritizing user privacy with features like app tracking transparency and enhanced encryption.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;6. &lt;strong&gt;Edge Computing and Cloud Integration:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Edge Computing:&lt;/strong&gt; Processing data closer to where it is generated (on the edge of the network) reduces latency and enhances real-time applications, such as autonomous driving and smart IoT devices.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Cloud-augmented Services:&lt;/strong&gt; Seamless integration with cloud services allows mobile devices to offload heavy processing tasks, offering more power-efficient and responsive applications.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;7. &lt;strong&gt;Sustainable and Eco-friendly Mobile Technologies:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Eco-conscious Design:&lt;/strong&gt; Manufacturers are adopting sustainable practices, such as using recycled materials and designing devices that are easier to repair and recycle.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Energy-efficient Innovations:&lt;/strong&gt; Advances in battery technology and energy-efficient components are extending device lifespan and reducing environmental impact.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;8. &lt;strong&gt;Wearable Technology Integration:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Seamless Ecosystems:&lt;/strong&gt; Wearables, like smartwatches and fitness trackers, are becoming more integrated with smartphones, offering cohesive user experiences and health monitoring.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Advanced Health Features:&lt;/strong&gt; New health sensors and capabilities, such as blood pressure monitoring and sleep analysis, are being added to wearable devices.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;9. &lt;strong&gt;Advanced Camera Technologies:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Computational Photography:&lt;/strong&gt; Leveraging AI and powerful processors, mobile cameras now produce stunning images with features like night mode, ultra-wide lenses, and advanced zoom capabilities.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Multi-lens Systems:&lt;/strong&gt; Smartphones are incorporating multiple lenses to offer versatility in photography, from macro shots to professional-grade video recording.&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;10. &lt;strong&gt;Super Apps:&lt;/strong&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;All-in-one Platforms:&lt;/strong&gt; Super apps are integrating multiple services—messaging, payments, shopping, and more—into a single platform, simplifying user experiences and driving engagement.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;These trends indicate a future where mobile technology continues to integrate deeper into our daily lives, offering enhanced functionality, connectivity, and personalization.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/6270717564960187733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/top-mobile-technology-trends-to-watch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6270717564960187733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6270717564960187733'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2024/06/top-mobile-technology-trends-to-watch.html' title='Top Mobile Technology Trends to Watch in 2024: What&#39;s Shaping the Future?'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-7686982469794780194</id><published>2015-11-23T11:29:00.000+05:30</published><updated>2015-11-23T11:44:25.509+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionTablet"/><category scheme="http://www.blogger.com/atom/ns#" term="Activity"/><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="answer"/><category scheme="http://www.blogger.com/atom/ns#" term="Aspect"/><category scheme="http://www.blogger.com/atom/ns#" term="container"/><category scheme="http://www.blogger.com/atom/ns#" term="Device."/><category scheme="http://www.blogger.com/atom/ns#" term="Fragment"/><category scheme="http://www.blogger.com/atom/ns#" term="Intent"/><category scheme="http://www.blogger.com/atom/ns#" term="interview"/><category scheme="http://www.blogger.com/atom/ns#" term="Map"/><category scheme="http://www.blogger.com/atom/ns#" term="question training"/><category scheme="http://www.blogger.com/atom/ns#" term="Ration"/><category scheme="http://www.blogger.com/atom/ns#" term="Sticky Intent"/><category scheme="http://www.blogger.com/atom/ns#" term="wi-fi Hotspot"/><title type='text'>Android Interview Questions &amp; Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1) What is Android?&lt;/b&gt;&lt;br /&gt;
It is an open-sourced operating system that is used primarily on mobile devices, such as cell&lt;br /&gt;
phones and tablets. It is a Linux kernel-based system that’s been equipped with rich&lt;br /&gt;
components that allows developers to create and run apps that can perform both basic and&lt;br /&gt;
advanced functions.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) What Is the Google Android SDK?&lt;/b&gt;&lt;br /&gt;
The Google Android SDK is a toolset that developers need in order to write apps on Android&lt;br /&gt;
enabled devices. It contains a graphical interface that emulates an Android driven handheld&lt;br /&gt;
environment, allowing them to test and debug their codes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3) What is the Android Architecture?&lt;/b&gt;&lt;br /&gt;
Android Architecture is made up of 4 key components:&lt;br /&gt;
- Linux Kernel&lt;br /&gt;
- Libraries&lt;br /&gt;
- Android Framework&lt;br /&gt;
- Android Applications&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4) Describe the Android Framework.&lt;/b&gt;&lt;br /&gt;
The Android Framework is an important aspect of the Android Architecture. Here you can find&lt;br /&gt;
all the classes and methods that developers would need in order to write applications on the&lt;br /&gt;
Android environment.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5) What is AAPT?&lt;/b&gt;&lt;br /&gt;
AAPT is short for Android Asset Packaging Tool. This tool provides developers with the ability to&lt;br /&gt;
deal with zip-compatible archives, which includes creating, extracting as well as viewing its&lt;br /&gt;
contents.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6) What is the importance of having an emulator within the Android environment?&lt;/b&gt;&lt;br /&gt;
The emulator lets developers “play” around an interface that acts as if it were an actual mobile&lt;br /&gt;
device. They can write and test codes, and even debug. Emulators are a safe place for testing&lt;br /&gt;
codes especially if it is in the early design phase.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7) What is the use of an activityCreator?&lt;/b&gt;&lt;br /&gt;
An activityCreator is the first step towards the creation of a new Android project. It is made up of&lt;br /&gt;
a shell script that will be used to create new file system structure necessary for writing codes&lt;br /&gt;
within the Android IDE.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8 ) Describe Activities.&lt;/b&gt;&lt;br /&gt;
Activities are what you refer to as the window to a user interface. Just as you create windows in&lt;br /&gt;
order to display output or to ask for an input in the form of dialog boxes, activities play the same&lt;br /&gt;
role, though it may not always be in the form of a user interface.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9) What are Intents?&lt;/b&gt;&lt;br /&gt;
Intents displays notification messages to the user from within the Android enabled device. It can&lt;br /&gt;
be used to alert the user of a particular state that occurred. Users can be made to respond to&lt;br /&gt;
intents.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10) Differentiate Activities from Services.&lt;/b&gt;&lt;br /&gt;
Activities can be closed, or terminated anytime the user wishes. On the other hand, services are&lt;br /&gt;
designed to run behind the scenes, and can act independently. Most services run continuously,&lt;br /&gt;
regardless of whether there are certain or no activities being executed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;11) What items are important in every Android project?&lt;/b&gt;&lt;br /&gt;
These are the essential items that are present each time an Android project is created:&lt;br /&gt;
- AndroidManifest.xml&lt;br /&gt;
- build.xml&lt;br /&gt;
- bin/&lt;br /&gt;
- src/&lt;br /&gt;
- res/&lt;br /&gt;
- assets/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12) What is the importance of XML-based layouts?&lt;/b&gt;&lt;br /&gt;
The use of XML-based layouts provides a consistent and somewhat standard means of setting&lt;br /&gt;
GUI definition format. In common practice, layout details are placed in XML files while other&lt;br /&gt;
items are placed in source files.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13) What are containers?&lt;/b&gt;&lt;br /&gt;
Containers, as the name itself implies, holds objects and widgets together, depending on which&lt;br /&gt;
specific items are needed and in what particular arrangement that is wanted. Containers may&lt;br /&gt;
hold labels, fields, buttons, or even child containers, as examples.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14) What is Orientation?&lt;/b&gt;&lt;br /&gt;
Orientation, which can be set using setOrientation(), dictates if the LinearLayout is represented&lt;br /&gt;
as a row or as a column. Values are set as either HORIZONTAL or VERTICAL.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15) What is the importance of Android in the mobile market?&lt;/b&gt;&lt;br /&gt;
Developers can write and register apps that will specifically run under the Android environment.&lt;br /&gt;
This means that every mobile device that is Android enabled will be able to support and run&lt;br /&gt;
these apps. With the growing popularity of Android mobile devices, developers can take&lt;br /&gt;
advantage of this trend by creating and uploading their apps on the Android Market for&lt;br /&gt;
distribution to anyone who wants to download it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;16) What do you think are some disadvantages of Android?&lt;/b&gt;&lt;br /&gt;
Given that Android is an open-source platform, and the fact that different Android operating&lt;br /&gt;
systems have been released on different mobile devices, there’s no clear cut policy to how&lt;br /&gt;
applications can adapt with various OS versions and upgrades. One app that runs on this&lt;br /&gt;
particular version of Android OS may or may not run on another version. Another disadvantage&lt;br /&gt;
is that since mobile devices such as phones and tabs come in different sizes and forms, it poses&lt;br /&gt;
a challenge for developers to create apps that can adjust correctly to the right screen size and&lt;br /&gt;
other varying features and specs.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;17) What is adb?&lt;/b&gt;&lt;br /&gt;
Adb is short for Android Debug Bridge. It allows developers the power to execute remote shell&lt;br /&gt;
commands. Its basic function is to allow and control communication towards and from the&lt;br /&gt;
emulator port.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;18) What are the four essential states of an activity?&lt;/b&gt;&lt;br /&gt;
- Active – if the activity is at the foreground&lt;br /&gt;
- Paused – if the activity is at the background and still visible&lt;br /&gt;
- Stopped – if the activity is not visible and therefore is hidden or obscured by another activity&lt;br /&gt;
- Destroyed – when the activity process is killed or completed terminated&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;19) What is ANR?&lt;/b&gt;&lt;br /&gt;
ANR is short for Application Not Responding. This is actually a dialog that appears to the user&lt;br /&gt;
whenever an application have been unresponsive for a long period of time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;20) Which elements can occur only once and must be present?&lt;/b&gt;&lt;br /&gt;
Among the different elements, the and elements must be present and can occur only once. The&lt;br /&gt;
rest are optional, and can occur as many times as needed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;21) How are escape characters used as attribute?&lt;/b&gt;&lt;br /&gt;
Escape characters are preceded by double backslashes. For example, a newline character is&lt;br /&gt;
created using ‘\\n’&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;22) What is the importance of settings permissions in app development?&lt;/b&gt;&lt;br /&gt;
Permissions allow certain restrictions to be imposed primarily to protect data and code. Without&lt;br /&gt;
these, codes could be compromised, resulting to defects in functionality.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;23) What is the function of an intent filter?&lt;/b&gt;&lt;br /&gt;
Because every component needs to indicate which intents they can respond to, intent filters are&lt;br /&gt;
used to filter out intents that these components are willing to receive. One or more intent filters&lt;br /&gt;
are possible, depending on the services and activities that is going to make use of it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;24) Enumerate the three key loops when monitoring an activity&lt;/b&gt;&lt;br /&gt;
- Entire lifetime – activity happens between onCreate and onDestroy&lt;br /&gt;
- Visible lifetime – activity happens between onStart and onStop&lt;br /&gt;
- Foreground lifetime – activity happens between onResume and onPause&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;25) When is the onStop() method invoked?&lt;/b&gt;&lt;br /&gt;
A call to onStop method happens when an activity is no longer visible to the user, either&lt;br /&gt;
because another activity has taken over or if in front of that activity.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;26) Is there a case wherein other qualifiers in multiple resources take precedence over&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;locale?&lt;/b&gt;&lt;br /&gt;
Yes, there are actually instances wherein some qualifiers can take precedence over locale.&lt;br /&gt;
There are two known exceptions, which are the MCC (mobile country code) and MNC (mobile&lt;br /&gt;
network code) qualifiers.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;27) What are the different states wherein a process is based?&lt;/b&gt;&lt;br /&gt;
There are 4 possible states:&lt;br /&gt;
- foreground activity&lt;br /&gt;
- visible activity&lt;br /&gt;
- background activity&lt;br /&gt;
- empty process&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;28) How can the ANR be prevented?&lt;/b&gt;&lt;br /&gt;
One technique that prevents the Android system from concluding a code that has been&lt;br /&gt;
responsive for a long period of time is to create a child thread. Within the child thread, most of&lt;br /&gt;
the actual workings of the codes can be placed, so that the main thread runs with minimal&lt;br /&gt;
periods of unresponsive times.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;29) What role does Dalvik play in Android development ?&lt;/b&gt;&lt;br /&gt;
Dalvik serves as a virtual machine, and it is where every Android application runs. Through&lt;br /&gt;
Dalvik, a device is able to execute multiple virtual machines efficiently through better memory&lt;br /&gt;
management.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;30) What is the AndroidManifest.xml?&lt;/b&gt;&lt;br /&gt;
This file is essential in every application. It is declared in the root directory and contains&lt;br /&gt;
information about the application that the Android system must know before the codes can be&lt;br /&gt;
executed.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;31) What is the proper way of setting up an Android-powered device for app development?&lt;/b&gt;&lt;br /&gt;
The following are steps to be followed prior to actual application development in an Android powered&lt;br /&gt;
device:&lt;br /&gt;
-Declare your application as &quot;debuggable&quot; in your Android Manifest.&lt;br /&gt;
-Turn on &quot;USB Debugging&quot; on your device.&lt;br /&gt;
-Set up your system to detect your device.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;32) Enumerate the steps in creating a bounded service through AIDL.&lt;/b&gt;&lt;br /&gt;
1. create the .aidl file, which defines the programming interface&lt;br /&gt;
2. implement the interface, which involves extending the inner abstract Stub class as well as&lt;br /&gt;
implanting its methods.&lt;br /&gt;
3. expose the interface, which involves implementing the service to the clients.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;33) What is the importance of Default Resources?&lt;/b&gt;&lt;br /&gt;
When default resources, which contain default strings and files, are not present, an error will&lt;br /&gt;
occur and the app will not run. Resources are placed in specially named sub directories under&lt;br /&gt;
the project res/ directory.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;34) When dealing with multiple resources, which one takes precedence?&lt;/b&gt;&lt;br /&gt;
Assuming that all of these multiple resources are able to match the configuration of a device,&lt;br /&gt;
the ‘locale’ qualifier almost always takes the highest precedence over the others.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;35) When does ANR occur?&lt;/b&gt;&lt;br /&gt;
The ANR dialog is displayed to the user based on two possible conditions. One is when there is&lt;br /&gt;
no response to an input event within 5 seconds, and the other is when a broadcast receiver is&lt;br /&gt;
not done executing within 10 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;36) What is AIDL?&lt;/b&gt;&lt;br /&gt;
AIDL, or Android Interface Definition Language, handles the interface requirements between a&lt;br /&gt;
client and a service so both can communicate at the same level through interprocess&lt;br /&gt;
communication or IPC. This process involves breaking down objects into primitives that Android&lt;br /&gt;
can understand. This part is required simply because a process cannot access the memory of&lt;br /&gt;
the other process.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;37) What data types are supported by AIDL?&lt;/b&gt;&lt;br /&gt;
AIDL has support for the following data types:&lt;br /&gt;
-string&lt;br /&gt;
-charSequence&lt;br /&gt;
-List&lt;br /&gt;
-Map&lt;br /&gt;
-all native Java data types like int,long, char and Boolean&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;38) What is a Fragment?&lt;/b&gt;&lt;br /&gt;
A fragment is a part or portion of an activity. It is modular in a sense that you can move around&lt;br /&gt;
or combine with other fragments in a single activity. Fragments are also reusable.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;39) What is a visible activity?&lt;/b&gt;&lt;br /&gt;
A visible activity is one that sits behind a foreground dialog. It is actually visible to the user, but&lt;br /&gt;
not necessarily being in the foreground itself.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;40) When is the best time to kill a foreground activity?&lt;/b&gt;&lt;br /&gt;
The foreground activity, being the most important among the other states, is only killed or&lt;br /&gt;
terminated as a last resort, especially if it is already consuming too much memory. When a&lt;br /&gt;
memory paging state has been reach by a foreground activity, then it is killed so that the user&lt;br /&gt;
interface can retain its responsiveness to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;41) Is it possible to use or add a fragment without using a user interface?&lt;/b&gt;&lt;br /&gt;
Yes, it is possible to do that, such as when you want to create a background behavior for a&lt;br /&gt;
particular activity. You can do this by using add(Fragment,string) method to add a fragment from&lt;br /&gt;
the activity.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;42) How do you remove icons and widgets from the main screen of the Android device?&lt;/b&gt;&lt;br /&gt;
To remove an icon or shortcut, press and hold that icon. You then drag it downwards to the&lt;br /&gt;
lower part of the screen where a remove button appears.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;43) What are the core components under the Android application architecture.&lt;/b&gt;&lt;br /&gt;
There are 5 key components under the Android application architecture:&lt;br /&gt;
- services&lt;br /&gt;
- intent&lt;br /&gt;
- resource externalization&lt;br /&gt;
- notifications&lt;br /&gt;
- content providers&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;44) What composes a typical Android application project?&lt;/b&gt;&lt;br /&gt;
A project under Android development, upon compilation, becomes an .apk file. This apk file&lt;br /&gt;
format is actually made up of the AndroidManifest.xml file, application code, resource files, and&lt;br /&gt;
other related files.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;45) What is a Sticky Intent?&lt;/b&gt;&lt;br /&gt;
A Sticky Intent is a broadcast from sendStickyBroadcast() method such that the intent floats&lt;br /&gt;
around even after the broadcast, allowing others to collect data from it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;46) Do all mobile phones support the latest Android operating system?&lt;/b&gt;&lt;br /&gt;
Some Android-powered phone allows you to upgrade to the higher Android operating system&lt;br /&gt;
version. However, not all upgrades would allow you to get the latest version. It depends largely&lt;br /&gt;
on the capability and specs of the phone, whether it can support the newer features available&lt;br /&gt;
under the latest Android version.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;47) What is portable wi-fi hotspot?&lt;/b&gt;&lt;br /&gt;
Portable Wi-Fi Hotspot allows you to share your mobile internet connection to other wireless&lt;br /&gt;
device. For example, using your Android-powered phone as a Wi-Fi Hotspot, you can use your&lt;br /&gt;
laptop to connect to the Internet using that access point.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;48) What is an action?&lt;/b&gt;&lt;br /&gt;
In Android development, an action is what the intent sender wants to do or expected to get as a&lt;br /&gt;
response. Most application functionality is based on the intended action.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;49) What is the difference between a regular bitmap and a nine-patch image?&lt;/b&gt;&lt;br /&gt;
In general, a Nine-patch image allows re sizing that can be used as background or other image&lt;br /&gt;
size requirements for the target device. The Nine-patch refers to the way you can re size the&lt;br /&gt;
image: 4 corners that are uncalled, 4 edges that are scaled in 1 axis, and the middle one that&lt;br /&gt;
can be scaled into both axes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;50) What language is supported by Android for application development?&lt;/b&gt;&lt;br /&gt;
The main language supported is Java programming language. Java is the most popular&lt;br /&gt;
language for app development, which makes it ideal even for new Android developers to quickly&lt;br /&gt;
learn to create and deploy applications in the Android environment.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;51)&amp;nbsp;What are the aspect ratios for all Android phone and tablet devices?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;I researched the same thing several months ago looking at dozens of the most popular Android devices. I found that every Android device had one of the following aspect ratios (from most square to most rectangular):&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #222222; line-height: 17.7273px; margin: 0px 0px 1em 30px; padding: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;4:3&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;3:2&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;16:10&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;5:3&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;16:9&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;And if you consider portrait devices separate from landscape devices you&#39;ll also find the inverse of those ratios (3:4, 2:3, 10:16, 3:5, and 9:16)&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #222222; line-height: 17.7273px; margin: 0px 0px 1em 30px; padding: 0px;&quot;&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;ldpi: smallest aspect ratio 4:3&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;mdpi: smallest aspect ratio 3:2&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;hdpi: biggest aspect ratio 16:9&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/7686982469794780194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2015/11/android-interview-questions-answers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7686982469794780194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7686982469794780194'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2015/11/android-interview-questions-answers.html' title='Android Interview Questions &amp; Answers'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-122040498442770611</id><published>2013-11-26T15:01:00.002+05:30</published><updated>2024-06-18T11:10:34.766+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class"/><category scheme="http://www.blogger.com/atom/ns#" term="inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="interface"/><category scheme="http://www.blogger.com/atom/ns#" term="interview"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Object"/><category scheme="http://www.blogger.com/atom/ns#" term="OOp&#39;s"/><title type='text'>Java Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;these &lt;b&gt;Java Interview Questions&lt;/b&gt; have been 
designed especially to get you acquainted with the nature of questions 
you may encounter during your interview for the subject of &lt;b&gt;Java Programming Language&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you know about Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java is a high-level programming language originally 
developed by Sun Microsystems and released in 1995. Java runs on a 
variety of platforms, such as Windows, Mac OS, and the various versions 
of UNIX.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are the supported platforms by Java Programming Language?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java runs on a variety of platforms, such as Windows, Mac 
OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, 
Redhat Linux, Ubuntu, CentOS, etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: List any five features of Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Some features include Object Oriented, Platform Independent, Robust, Interpreted, Multi-threaded&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why is Java Architectural Neutral?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It’s compiler generates an architecture-neutral object file
 format, which makes the compiled code to be executable on many 
processors, with the presence of Java runtime system.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How Java enabled High Performance?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java uses Just-In-Time compiler to enable high performance.
 Just-In-Time compiler is a program that turns Java bytecode, which is a
 program that contains instructions that must be interpreted into 
instructions that can be sent directly to the processor.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why Java is considered dynamic?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is designed to adapt to an evolving environment. Java 
programs can carry extensive amount of run-time information that can be 
used to verify and resolve accesses to objects on run-time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Java Virtual Machine and how it is considered in context of Java’s platform independent feature?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When Java is compiled, it is not compiled into platform 
specific machine, rather into platform independent byte code. This byte 
code is distributed over the web and interpreted by virtual Machine 
(JVM) on whichever platform it is being run.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: List two Java IDE’s?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Netbeans, Eclipse, etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: List some Java keywords(unlike C, C++ keywords)?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Some Java keywords are import, super, finally, etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by Object?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Object is a runtime entity and it’s  state is stored in 
fields and behavior is shown via methods. Methods operate on an object&#39;s
 internal state and serve as the primary mechanism for object-to-object 
communication.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A class is a blue print from which individual objects are 
created. A class can contain fields and methods to describe the behavior
 of an object.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What kind of variables a class can consist of?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A class consist of Local variable, instance variables and class variables.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a Local Variable&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Variables defined inside methods, constructors or blocks 
are called local variables. The variable will be declared and 
initialized within the method and it will be destroyed when the method 
has completed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a Instance Variable&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Instance variables are variables within a class but outside
 any method. These variables are instantiated when the class is loaded.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a Class Variable&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; These are variables declared with in a class, outside any method, with the static keyword.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Singleton class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Singleton class control object creation, limiting the 
number to one but allowing the flexibility to create more objects if the
 situation changes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by Constructor?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Constructor gets invoked when a new object is created. 
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.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: List the three steps for creating an Object for a class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An Object is first declared, then instantiated and then it is initialized.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the default value of byte datatype in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Default value of byte datatype is 0.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the default value of float and double datatype in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Default value of float and double datatype in different as compared to C/C++. For float its 0.0f and for double it’s 0.0d&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When a byte datatype is used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; This data type is used to save space in large arrays, 
mainly in place of integers, since a byte is four times smaller than an 
int.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a static variable?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Class variables also known as static variables are declared
 with the static keyword in a class, but outside a method, constructor 
or a block.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by Access Modifier?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java provides access modifiers to set access levels for 
classes, variables, methods and constructors. A member has package or 
default accessibility when no accessibility modifier is specified.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is protected access modifier?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Variables, methods and constructors which are declared 
protected in a superclass can be accessed only by the subclasses in 
other package or any class within the package of the protected members&#39; 
class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by synchronized Non Access Modifier?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java provides these modifiers for providing functionalities
 other than Access Modifiers, synchronized used to indicate that a 
method can be accessed by only one thread at a time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: According to Java Operator precedence, which operator is considered to be with highest precedence?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Postfix operators i.e () [] . is at the highest precedence.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Variables used in a switch statement can be used with which datatypes?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Variables used in a switch statement can only be a byte, short, int, or char.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When parseInt() method can be used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; This method is used to get the primitive data type of a certain String.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why is String class considered immutable?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The String class is immutable, so that once it is created a
 String object cannot be changed. Since String is immutable it can 
safely be shared between many threads ,which is considered very 
important for multithreaded programming.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why is StringBuffer called mutable?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The String class is considered as immutable, so that once 
it is created a String object cannot be changed. If there is a necessity
 to make alot of modifications to Strings of characters then 
StringBuffer should be used.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between StringBuffer and StringBuilder class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Use StringBuilder whenever possible because it is faster 
than StringBuffer. But, if thread safety is necessary then use 
StringBuffer objects.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which package is used for pattern matching with regular expressions?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; java.util.regex package is used for this purpose.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: java.util.regex consists of which classes?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; java.util.regex consists of three classes:  Pattern class, Matcher class and PatternSyntaxException class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is finalize() method?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is possible to define a method that will be called just 
before an object&#39;s final destruction by the garbage collector. This 
method is called finalize( ), and it can be used to ensure that an 
object terminates cleanly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is an Exception?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An exception is a problem that arises during the execution 
of a program. Exceptions are caught by handlers positioned along the 
thread&#39;s method invocation stack.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by Checked Exceptions?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is an exception that is typically a user error or a 
problem that cannot be foreseen by the programmer. For example, if a 
file is to be opened, but the file cannot be found, an exception occurs.
 These exceptions cannot simply be ignored at the time of compilation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain Runtime Exceptions?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is an exception that occurs that probably could have 
been avoided by the programmer. As opposed to checked exceptions, 
runtime exceptions are ignored at the time of compliation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which are the two subclasses under Exception class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Exception class has two main subclasses : IOException class and RuntimeException Class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When throws keyword is used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If a method does not handle a checked exception, the method
 must declare it using the throwskeyword. The throws keyword appears at 
the end of a method&#39;s signature.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When throw keyword is used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An exception can be thrown, either a newly instantiated one or an exception that you just caught, by using throw keyword.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How finally used under Exception Handling?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The finally keyword is used to create a block of code that 
follows a try block. A finally block of code always executes, whether or
 not an exception has occurred.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What things should be kept in mind while creating your own exceptions in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; While creating your own exception:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;All exceptions must be a child of Throwable.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;If you want to write a checked exception that is automatically 
enforced by the Handle or  Declare Rule, you need to extend the 
Exception class.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You want to write a runtime exception, you need to extend the RuntimeException class.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define Inheritance?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is the process where one object acquires the properties 
of another. With the use of inheritance the information is made 
manageable in a hierarchical order.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When super keyword is used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If the method overrides one of its superclass&#39;s methods, 
overridden method can be invoked through the use of the keyword super. 
It can be also used to refer to a hidden field&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Polymorphism?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Polymorphism is the ability of an object to take on many 
forms. The most common use of polymorphism in OOP occurs when a parent 
class reference is used to refer to a child class object.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Abstraction?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It refers to the ability to make a class abstract in OOP. 
It helps to reduce the complexity and also improves the maintainability 
of the system.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Abstract class&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; These classes cannot be instantiated and are either 
partially implemented or not at all implemented. This class contains one
 or more abstract methods which are simply method declarations without a
 body.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When Abstract methods are used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If you want a class to contain a particular method but you 
want the actual implementation of that method to be determined by child 
classes, you can declare the method in the parent class as abstract.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Encapsulation?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is the technique of making the fields in a class private
 and providing access to the fields via public methods. If a field is 
declared private, it cannot be accessed by anyone outside the class, 
thereby hiding the fields within the class. Therefore encapsulation is 
also referred to as data hiding.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the primary benefit of Encapsulation?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The main benefit of encapsulation is the ability to modify 
our implemented code without breaking the code of others who use our 
code. With this Encapsulation gives maintainability, flexibility and 
extensibility to our code.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is an Interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An interface is a collection of abstract methods. A class 
implements an interface, thereby inheriting the abstract methods of the 
interface.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Give some features of Interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It includes:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Interface cannot be instantiated&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;An interface does not contain any constructors.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;All of the methods in an interface are abstract.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define Packages in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A Package can be defined as a grouping of related 
types(classes, interfaces, enumerations and annotations ) providing 
access protection and name space management.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why Packages are used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Packages are used in Java in-order to prevent naming 
conflicts, to control access, to make searching/locating and usage of 
classes, interfaces, enumerations and annotations, etc., easier.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What do you mean by Multithreaded program?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A multithreaded program contains two or more parts that can
 run concurrently. Each part of such a program is called a thread, and 
each thread defines a separate path of execution.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are the two ways in which Thread can be created?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Thread can be created by: implementing Runnable interface, extending the Thread class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is an applet?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An applet is a Java program that runs in a Web browser. An 
applet can be a fully functional Java application because it has the 
entire Java API at its disposal.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: An applet extend which class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An applet extends java.applet.Applet class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain garbage collection in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It uses garbage collection to free the memory. By cleaning those objects that is no longer reference by any of the program.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define immutable object?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An immutable object can’t be changed once it is created.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain the usage of this() with constructors?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used with variables or methods and used to call constructer of same class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain Set Interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is a collection of element which cannot contain 
duplicate elements. The Set interface contains only methods inherited 
from Collection and adds the restriction that duplicate elements are 
prohibited.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain TreeSet?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is a Set implemented when we want elements in a sorted order.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Comparable Interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to sort collections and arrays of objects using 
the collections.sort() and java.utils. The objects of the class 
implementing the Comparable interface can be ordered.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Difference between throw and throws?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It includes:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Throw is used to trigger an exception where as throws is used in declaration of exception.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Without throws, Checked exception cannot be handled where as checked exception can be propagated with throws.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain the following line used under Java Program:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;   public static void main (String args[ ])&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The following shows the explanation individually:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;public: it is the access specifier.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;static: it allows main() to be called without instantiating a particular instance of a class.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;void: it affirns the compiler that no value is returned by main().&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;main(): this method is called at the beginning of a Java program.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;String args[ ]: args parameter is an instance array of class String&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define JRE i.e. Java Runtime Environment?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Java Runtime Environment is an implementation of the Java 
Virtual Machine which executes Java programs. It provides the minimum 
requirements for executing a Java application;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is JAR file?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; JAR files is Java Archive fles and it aggregates many files
 into one. It holds Java classes in a library. JAR files are built on 
ZIP file format and have .jar file extension.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a WAR file?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; This is Web Archive File and used to store XML, java 
classes, and JavaServer pages. which is used to distribute a collection 
of JavaServer Pages, Java Servlets, Java classes, XML files, static Web 
pages etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define JIT compiler?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It improves the runtime performance of computer programs based on bytecode.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between object oriented programming language and object based programming language?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Object based programming languages follow all the features 
of OOPs except Inheritance. JavaScript is an example of object based 
programming languages&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the purpose of default constructor?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The java compiler creates a default constructor only if there is no constructor in the class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can a constructor be made final?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, this is not possible.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is static block?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to initialize the static data member, It is excuted before main method at the time of classloading.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define composition?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Holding the reference of the other class within some other class is known as composition.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is function overloading?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If a class has multiple functions by same name but different parameters, it is known as Method Overloading.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is function overriding?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If a subclass provides a specific implementation of a 
method that is already provided by its parent class, it is known as 
Method Overriding.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Difference between Overloading and Overriding?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Method overloading increases the readability of the 
program. Method overriding provides the specific implementation of the 
method that is already provided by its super class parameter must be 
different in case of overloading, parameter must be same in case of 
overriding.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is final class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Final classes are created so the methods implemented by that class cannot be overridden. It can’t be inherited.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is NullPointerException?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A NullPointerException is thrown when calling the instance 
method of a null object, accessing or modifying the field of a null 
object etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are the ways in which a thread can enter the waiting state? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A thread can enter the waiting state by invoking its 
sleep() method, by blocking on IO, by unsuccessfully attempting to 
acquire an object&#39;s lock, or by invoking an object&#39;s wait() method. It 
can also enter the waiting state by invoking its (deprecated) suspend() 
method.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How does multi-threading take place on a computer with a single CPU? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The operating system&#39;s task scheduler allocates execution 
time to multiple tasks. By quickly switching between executing tasks, it
 creates the impression that tasks execute sequentially.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What invokes a thread&#39;s run() method? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; After a thread is started, via its start() method of the 
Thread class, the JVM invokes the thread&#39;s run() method when the thread 
is initially executed.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Does it matter in what order catch statements for FileNotFoundException and IOException are written? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, it does. The FileNoFoundException is inherited from the IOException. Exception&#39;s subclasses have to be caught first.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between yielding and sleeping?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When a task invokes its yield() method, it returns to the 
ready state. When a task invokes its sleep() method, it returns to the 
waiting state.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why Vector class is used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Vector class provides the capability to implement a 
growable array of objects. Vector proves to be very useful if you don&#39;t 
know the size of the array in advance, or you just need one that can 
change sizes over the lifetime of a program.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Unicode requires 16 bits and ASCII require 7 bits. Although
 the ASCII character set uses only 7 bits, it is usually represented as 8
 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. 
UTF-16 uses 16-bit and larger bit patterns.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are Wrapper classes?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; These are classes that allow primitive types to be accessed as objects. Example: Integer, Character, Double, Boolean etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between a Window and a Frame? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Frame class extends Window to define a main application window that can have a menu bar.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which package has light weight components? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; javax.Swing package. All components in Swing, except JApplet, JDialog, JFrame and JWindow are lightweight components.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between the paint() and repaint() methods?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The paint() method supports painting via a Graphics object.
 The repaint() method is used to cause paint() to be invoked by the AWT 
painting thread.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the purpose of File class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to create objects that provide access to the files and directories of a local file system.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which class should you use to obtain design information about an object? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Class class is used to obtain information about an 
object&#39;s design and java.lang.Class class instance represent classes, 
interfaces in a running Java application.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between static and non-static variables? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A static variable is associated with the class as a whole 
rather than with specific instances of a class. Non-static variables 
take on unique values with each object instance.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Serialization and deserialization?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Serialization is the process of writing the state of an 
object to a byte stream. Deserialization is the process of restoring 
these objects.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are use cases? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is part of the analysis of a program and describes a 
situation that a program might encounter and what behavior the program 
should exhibit in that circumstance.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain the use of sublass in a Java program?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Sub class inherits all the public and protected methods and
 the implementation. It also inherits all the default modifier methods 
and their implementation.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How to add menushortcut to menu item? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If there is a button instance called b1, you may add menu 
short cut by calling b1.setMnemonic(&#39;F&#39;), so the user may be able to use
 Alt+F to click the button.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can you write a Java class that could be used both as an applet as well as an application? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, just add a main() method to the applet.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between Swing and AWT components? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; AWT components are heavy-weight, whereas Swing components 
are lightweight. Heavy weight components depend on the local windowing 
toolkit. For example, java.awt.Button is a heavy weight component, when 
it is running on the Java platform for Unix platform, it maps to a real 
Motif button.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What&#39;s the difference between constructors and other methods? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Constructors must have the same name as the class and can 
not return a value. They are only called once while regular methods 
could be called many times.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Is there any limitation of using Inheritance?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, since inheritance inherits everything from the super 
class and interface, it may make the subclass too clustering and 
sometimes error-prone when dynamic overriding or dynamic overloading in 
some situation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When is the ArrayStoreException thrown? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When copying elements between different arrays, if the 
source or destination arguments are not arrays or their types are not 
compatible, an ArrayStoreException will be thrown.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can you call one constructor from another if a class has multiple constructors? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, use this() syntax.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What&#39;s the difference between the methods sleep() and wait()?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The code sleep(2000); puts thread aside for exactly two 
seconds. The code wait(2000), causes a wait of up to two second. A 
thread could stop waiting earlier if it receives the notify() or 
notifyAll() call. The method wait() is defined in the class Object and 
the method sleep() is defined in the class Thread.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When ArithmeticException is thrown?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The ArithmeticException is thrown when integer is divided 
by zero or taking the remainder of a number by zero. It is never thrown 
in floating-point operations.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a transient variable?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A transient variable is a variable that may not be 
serialized during Serialization and which is initialized by its default 
value during de-serialization,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is synchronization?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Synchronization is the capability to control the access of 
multiple threads to shared resources. synchronized keyword in java 
provides locking which ensures mutual exclusive access of shared 
resource and prevent data race.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the Collections API?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Collections API is a set of classes and interfaces that support operations on collections of objects.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Does garbage collection guarantee that a program will not run out of memory?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Garbage collection does not guarantee that a program will 
not run out of memory. It is possible for programs to use up memory 
resources faster than they are garbage collected. It is also possible 
for programs to create objects that are not subject to garbage 
collection.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: The immediate superclass of the Applet class? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Panel is the immediate superclass. A panel provides space 
in which an application can attach any other component, including other 
panels.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which Java operator is right associative? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The = operator is right associative.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between a break statement and a continue statement?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A break statement results in the termination of the 
statement to which it applies (switch, for, do, or while). A continue 
statement is used to end the current loop iteration and return control 
to the loop statement.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: If a variable is declared as private, where may the variable be accessed? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A private variable may only be accessed within the class in which it is declared.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the purpose of the System class? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The purpose of the System class is to provide access to system resources.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: List primitive Java types?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The eight primitive types are byte, char, short, int, long, float, double, and boolean.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the relationship between clipping and repainting under AWT?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When a window is repainted by the AWT painting thread, it 
sets the clipping regions to the area of the window that requires 
repainting.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which class is the immediate superclass of the Container class? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Component class is the immediate super class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What class of exceptions are generated by the Java run-time system?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Java runtime system generates RuntimeException and Error exceptions.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Under what conditions is an object&#39;s finalize() method invoked by the garbage collector?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The garbage collector invokes an object&#39;s finalize() method when it detects that the object has become unreachable.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How can a dead thread be restarted? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A dead thread cannot be restarted.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which arithmetic operations can result in the throwing of an ArithmeticException?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Integer / and % can result in the throwing of an ArithmeticException.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Variable of the boolean type is automatically initialized as? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The default value of the boolean type is false.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can try statements be nested? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are ClassLoaders? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A class loader is an object that is responsible for loading classes. The class ClassLoader is an abstract class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between an Interface and an Abstract class? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An abstract class can have instance methods that implement a
 default behavior. An Interface can only declare constants and instance 
methods, but cannot implement default behavior and all methods are 
implicitly abstract. An interface has all public members and no 
implementation.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What will happen if static modifier is removed from the signature of the main method? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Program throws &quot;NoSuchMethodError&quot; error at runtime .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the default value of an object reference declared as an instance variable? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Null, unless it is defined explicitly.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can a top level class be private or protected?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, a top level class can not be private or protected. It can have either &quot;public&quot; or no modifier.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why do we need wrapper classes? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; We can pass them around as method parameters where a method expects an object. It also provides utility methods.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between error and an exception? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An error is an irrecoverable condition occurring at 
runtime. Such as OutOfMemory error. Exceptions are conditions that occur
 because of bad input etc. e.g. FileNotFoundException will be thrown if 
the specified file does not exist.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Is it necessary that each try block must be followed by a catch block?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is not necessary that each try block must be followed by
 a catch block. It should be followed by either a catch block or a 
finally block.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: When a thread is created and started, what is its initial state? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A thread is in the ready state as initial state after it has been created and started.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the Locale class? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are synchronized methods and synchronized statements? &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Synchronized methods are methods that are used to control 
access to an object. A synchronized statement can only be executed after
 a thread has acquired the lock for the object or class referenced in 
the synchronized statement.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is runtime polymorphism or dynamic method dispatch?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Runtime polymorphism or dynamic method dispatch is a 
process in which a call to an overridden method is resolved at runtime 
rather than at compile-time. In this process, an overridden method is 
called through the reference variable of a superclass.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Dynamic Binding(late binding)?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Binding refers to the linking of a procedure call to the 
code to be executed in response to the call. Dynamic binding means that 
the code associated with a given procedure call is not known until the 
time of the call at run-time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can constructor be inherited?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, constructor cannot be inherited.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are the advantages of ArrayList over arrays?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; ArrayList can grow dynamically and provides more powerful insertion and search mechanisms than arrays.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why deletion in LinkedList is fast than ArrayList?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Deletion in linked list is fast because it involves only 
updating the next pointer in the node before the deleted node and 
updating the previous pointer in the node after the deleted node.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How do you decide when to use ArrayList and LinkedList?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If you need to frequently add and remove elements from the 
middle of the list and only access the list elements sequentially, then 
LinkedList should be used. If you need to support random access, without
 inserting or removing elements from any place other than the end, then 
ArrayList should be used.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a Values Collection View ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is a collection returned by the values() method of the 
Map Interface, It contains all the objects present as values in the map.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is dot operator?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The dot operator(.) is used to access the instance 
variables and methods of class objects.It is also used to access classes
 and sub-packages from a package.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Where and how can you use a private constructor?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Private constructor is used if you do not want other classes to instantiate the object and to prevent subclassing.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is type casting?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Type casting means treating a variable of one type as though it is another type.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Describe life cycle of thread?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A thread is a execution in a program. The life cycle of a thread include:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Newborn state&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Runnable state&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Running state&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Blocked state&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Dead state&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between the &amp;gt;&amp;gt; and &amp;gt;&amp;gt;&amp;gt; operators?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The &amp;gt;&amp;gt; operator carries the sign bit when shifting right. The &amp;gt;&amp;gt;&amp;gt; zero-fills bits that have been shifted out.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which method of the Component class is used to set the position and size of a component?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; setBounds() method is used for this purpose.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the range of the short type?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The range of the short type is -(2^15) to 2^15 - 1.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the immediate superclass of Menu?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; MenuItem class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Does Java allow Default Arguments?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, Java does not allow Default Arguments.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which number is denoted by leading zero in java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Octal Numbers are denoted by leading zero in java, example: 06&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which number is denoted by leading 0x or 0X in java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Hexadecimal Numbers are denoted by leading 0x or 0X in java, example: 0XF&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Break statement can be used as labels in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, an example can be &lt;i&gt;break one;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Where import statement is used in a Java program?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Import statement is allowed at the beginning of the program file after package statement.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain suspend() method under Thread class&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to pause or temporarily stop the execution of the thread.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain isAlive() method under Thread class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to find out whether a thread is still running or not.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is currentThread()?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is a public static method used to obtain a reference to the current thread.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Explain main thread under Thread class execution?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The main thread is created automatically and it begins to 
execute immediately when a program starts. It ia thread from which all 
other child threads originate.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Life cycle of an applet includes which steps?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Life cycle involves the following steps:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Initialization&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Starting&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Stopping&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Destroying&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Painting&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why is the role of init() method under applets?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It initializes the applet and is the first method to be called.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which method is called by Applet class to load an image?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; getImage(URL object, filename) is used for this purpose.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define code as an attribute of Applet?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is used to specify the name of the applet class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define canvas?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is a simple drawing surface which are used for painting images or to perform other graphical operations.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Define Network Programming?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It refers to writing programs that execute across multiple 
devices (computers), in which the devices are all connected to each 
other using a network.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is a Socket?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Sockets provide the communication mechanism between two 
computers using TCP. A client program creates a socket on its end of the
 communication and attempts to connect that socket to a server.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Advantages of Java Sockets?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Sockets are flexible and sufficient. Efficient socket based
 programming can be easily implemented for general communications. It 
cause low network traffic.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Disadvantages of Java Sockets?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Socket based communications allows only to send packets of 
raw data between applications. Both the client-side and server-side have
 to provide mechanisms to make the data useful in any way.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which class is used by server applications to obtain a port and listen for client requests?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; java.net.ServerSocket class is used by server applications to obtain a port and listen for client requests&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which class represents the socket that both the client and server use to communicate with each other?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; java.net.Socket class represents the socket that both the client and server use to communicate with each other.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Why Generics are used in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Generics provide compile-time type safety that allows 
programmers to catch invalid types at compile time. Java Generic methods
 and generic classes enable programmers to specify, with a single method
 declaration, a set of related methods or, with a single class 
declaration, a set of related types.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What environment variables do I need to set on my machine in order to be able to run Java programs?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; CLASSPATH and PATH are the two variables.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Is there any need to import java.lang package?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, there is no need to import this package. It is by default loaded internally by the JVM.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Nested top-level class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If a class is declared within a class and specify the 
static modifier, the compiler treats the class just like any other 
top-level class. Nested top-level class is an Inner class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Externalizable interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Externalizable is an interface which contains two methods 
readExternal and writeExternal. These methods give you a control over 
the serialization mechanism.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: If System.exit (0); is written at the end of the try block, will the finally block still execute?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No in this case the finally block will not execute because 
when you say System.exit (0); the control immediately goes out of the 
program, and thus finally never executes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is daemon thread?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Daemon thread is a low priority thread, which runs 
intermittently in the back ground doing the garbage collection operation
 for the java runtime system.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which method is used to create the daemon thread?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; setDaemon method is used to create a daemon thread.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which method must be implemented by all threads?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; All tasks must implement the run() method&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the GregorianCalendar class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The GregorianCalendar provides support for traditional Western calendars&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the SimpleTimeZone class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The SimpleTimeZone class provides support for a Gregorian calendar .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between the size and capacity of a Vector?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; The size is the number of elements actually stored in the 
vector, while capacity is the maximum number of elements it can store at
 a given instance of time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can a vector contain heterogenous objects?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is an enumeration?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An enumeration is an interface containing methods for 
accessing the underlying data structure from which the enumeration is 
obtained. It allows sequential access to all the elements stored in the 
collection.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is difference between Path and Classpath?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Path and Classpath are operating system level environment 
variales. Path is defines where the system can find the 
executables(.exe) files and classpath is used to specify the location of
 .class files.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can a class declared as private be accessed outside it&#39;s package?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; No, it&#39;s not possible to accessed outside it&#39;s package.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are the restriction imposed on a static method or a static block of code?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A static method should not refer to instance variables 
without creating an instance and cannot use &quot;this&quot; operator to refer the
 instance.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can an Interface extend another Interface?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes an Interface can inherit another Interface, for that matter an Interface can extend more than one Interface.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Which object oriented Concept is achieved by using overloading and overriding?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Polymorphism&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is an object&#39;s lock and which object&#39;s have locks?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; An object&#39;s lock is a mechanism that is used by multiple 
threads to obtain synchronized access to the object. A thread may 
execute a synchronized method of an object only after it has acquired 
the object&#39;s lock.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is Downcasting?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; It is the casting from a general to a more specific type, i.e. casting down the hierarchy.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What are order of precedence and associativity and how are they used?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Order of precedence determines the order in which operators
 are evaluated in expressions. Associatity determines whether an 
expression is evaluated left-to-right or right-to-left.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: If a method is declared as protected, where may the method be accessed?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A protected method may only be accessed by classes or 
interfaces of the same package or by subclasses of the class in which it
 is declared.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is the difference between inner class and nested class?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When a class is defined within a scope of another class, 
then it becomes inner class. If the access modifier of the inner class 
is static, then it becomes nested class.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What restrictions are placed on method overriding?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Overridden methods must have the same name, argument list, 
and return type. The overriding method may not limit the access of the 
method it overrides.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What is constructor chaining and how is it achieved in Java?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; A child object constructor always first needs to construct 
its parent. In Java it is done via an implicit call to the no-args 
constructor as the first statement.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: Can a double value be cast to a byte?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; Yes, a double value can be cast to a byte.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: How does a try statement determine which catch clause should be used to handle an exception?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; When an exception is thrown within the body of a try 
statement, the catch clauses of the try statement are examined in the 
order in which they appear. The first catch clause that is capable of 
handling the exception is executed. The remaining catch clauses are 
ignored.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
 
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;question&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Q: What will be the default values of all the elements of an array defined as an instance variable?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;answer&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;A:&lt;/b&gt; If the array is an array of primitive types, then all the 
elements of the array will be initialized to the default value 
corresponding to that primitive type.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
 
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/122040498442770611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/java-interview-questions.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/122040498442770611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/122040498442770611'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/java-interview-questions.html' title='Java Interview Questions'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-5376913983077161149</id><published>2013-11-15T18:44:00.001+05:30</published><updated>2024-06-18T11:11:08.053+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Parsing"/><category scheme="http://www.blogger.com/atom/ns#" term="SAX Parsing -in Android"/><title type='text'>SAX Parsing -in Android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h5&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Hello Friends !&lt;/b&gt;&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;This tutorial is for the Android Novice programmer who want to learn the implementation of SAX Parser.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;I have also used Custom ListView inside this tutorial for the better display of response inside the ListView.&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;FYI, I have defined prepareXML() function where you  can write fixed XML string or inside the function you can make a  webservice call and fetched XML response from server. I hope you got my  idea of defining this function.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;SAXParsingActivity.java&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
 
package com.ankit.saxparsing;
 
import java.io.ByteArrayInputStream;
import java.util.ArrayList;
 
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
 
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
 
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
 
import com.ankit.saxparsing.adapter.myAdapter;
 
public class SAXParsingActivity extends Activity {
    /** Called when the activity is first created. */
 
    ItemList itemList;
 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
        String XML = prepareXML();
 
       try
       {
           SAXParserFactory spf = SAXParserFactory.newInstance();
           SAXParser sp = spf.newSAXParser();
           XMLReader xr = sp.getXMLReader();
 
           /** Create handler to handle XML Tags ( extends DefaultHandler ) */
           MyXMLHandler myXMLHandler = new MyXMLHandler();
           xr.setContentHandler(myXMLHandler);
 
           ByteArrayInputStream is = new ByteArrayInputStream(XML.getBytes());
           xr.parse(new InputSource(is));
      }
      catch(Exception e)
      {
 
      }
 
      itemList = MyXMLHandler.itemList;
 
      ArrayList listItem= itemList.getItem();
      ArrayList listManu = itemList.getManufacturer();
      ArrayList listModel = itemList.getModel();
      ArrayList listCost = itemList.getCost();
 
      ListView lview = (ListView) findViewById(R.id.listview1);
      myAdapter adapter = new myAdapter(this, listItem, listManu, listModel, listCost);
      lview.setAdapter(adapter);
    }
 
    private String prepareXML()
    {
        String strXML = &quot;&quot;
            +&quot;Computer Parts&quot;
            +&quot;&quot;
            +&quot;     Motherboard&quot;
            +&quot;     ASUS&quot;
            +&quot;      P3B-F&quot;
            +&quot;      123.00&quot;
            +&quot;  &quot;
            +&quot;  &quot;
            +&quot;     Video Card&quot;
            +&quot;      ATI&quot;
            +&quot;     All-in-Wonder Pro&quot;
            +&quot;       160.00&quot;
            +&quot;   &quot;
            +&quot;   &quot;
            +&quot;     Sound Card&quot;
            +&quot;     Creative Labs&quot;
            +&quot;      Sound Blaster Live&quot;
            +&quot;      80.00&quot;
            +&quot;  &quot;
            +&quot;  &quot;
            +&quot;      inch Monitor&quot;
            +&quot;     LG Electronics&quot;
            +&quot;      995E&quot;
            +&quot;       290.00&quot;
            +&quot;   &quot;
            +&quot;&quot;;
 
        return strXML;
    }
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;MyXMLHandler.java&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
 
package com.ankit.saxparsing;
 
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
 
public class MyXMLHandler extends DefaultHandler
{
    public static ItemList itemList;
    public boolean current = false;
    public String currentValue = null;
 
    @Override
    public void startElement(String uri, String localName, String qName,
            Attributes attributes) throws SAXException {
        // TODO Auto-generated method stub
 
        current = true;
 
        if (localName.equals(&quot;PARTS&quot;))
        {
            /** Start */
            itemList = new ItemList();
 
        }
    }
 
    @Override
    public void endElement(String uri, String localName, String qName)
            throws SAXException {
        // TODO Auto-generated method stub
        current = false;
 
        if(localName.equals(&quot;ITEM&quot;))
        {
            itemList.setItem(currentValue);
        }
        else if(localName.equals(&quot;MANUFACTURER&quot;))
        {
            itemList.setManufacturer(currentValue);
        }
        else if(localName.equals(&quot;MODEL&quot;))
        {
            itemList.setModel(currentValue);
        }
        else if(localName.equals(&quot;COST&quot;))
        {
            itemList.setCost(currentValue);
        }
    }
 
    @Override
    public void characters(char[] ch, int start, int length)
            throws SAXException {
        // TODO Auto-generated method stub
 
        if(current)
        {
            currentValue = new String(ch, start, length);
            current=false;
        }
    }
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;itemList.java&lt;/b&gt;&amp;nbsp;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
package com.ankit.saxparsing;
 
import java.util.ArrayList;
 
public class ItemList
{
    ArrayList item = new ArrayList();
    ArrayList manufacturer = new ArrayList();
    ArrayList model = new ArrayList();
    ArrayList cost = new ArrayList();
 
    public ArrayList getItem() {
        return item;
    }
    public void setItem(String item) {
        this.item.add(item);
    }
    public ArrayList getManufacturer() {
        return manufacturer;
    }
    public void setManufacturer(String manufacturer) {
        this.manufacturer.add(manufacturer);
    }
    public ArrayList getModel() {
        return model;
    }
    public void setModel(String model) {
        this.model.add(model);
    }
    public ArrayList getCost() {
        return cost;
    }
    public void setCost(String cost) {
        this.cost.add(cost);
    }
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;main.xml&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:orientation=&quot;vertical&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;&gt;
     
    &lt;ListView
        android:id=&quot;@+id/listview1&quot;
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;fill_parent&quot;&gt;
    &lt;/ListView&gt;
&lt;/LinearLayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;lview_row.xml&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;
    android:orientation=&quot;vertical&quot; &gt;
 
    &lt;TextView
        android:id=&quot;@+id/txtItem&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;ITEM&quot;
        android:textAppearance=&quot;?android:attr/textAppearanceLarge&quot;
        android:textColor=&quot;#FF0000&quot; &gt;
    &lt;/TextView&gt;
 
    &lt;TextView
        android:id=&quot;@+id/txtManufacturer&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;MANUFACTURER&quot;
        android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; &gt;
    &lt;/TextView&gt;
 
    &lt;TextView
        android:id=&quot;@+id/txtModel&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;MODEL&quot;
        android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; &gt;
    &lt;/TextView&gt;
 
    &lt;TextView
        android:id=&quot;@+id/txtCost&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;COST&quot;
        android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; &gt;
    &lt;/TextView&gt;
 
&lt;/LinearLayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/5376913983077161149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/sax-parsing-in-android.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5376913983077161149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5376913983077161149'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/sax-parsing-in-android.html' title='SAX Parsing -in Android'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-5241961572929012531</id><published>2013-11-14T14:32:00.001+05:30</published><updated>2024-06-18T11:11:17.011+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Fragment"/><title type='text'>What is Fragment ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hi Friends!!&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
Today I am going to discuss about Fragment. Now it is available with new
 API open source library android-support v4 or v7 or v13.&amp;nbsp; 
android-support v13 is the recent api library.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;What is Fragment in Android ?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/span&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A &lt;b&gt;&lt;i&gt;fragment&lt;/i&gt;&lt;/b&gt; is a class implementing a portion of an activity.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A &lt;b&gt;&lt;i&gt;fragment&lt;/i&gt;&lt;/b&gt; represents a particular operation or interface running within a larger activity.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;i&gt;Fragments&lt;/i&gt;&lt;/b&gt; must be embedded in activities; they cannot run independent of activities.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Most &lt;i&gt;&lt;b&gt;fragments&lt;/b&gt;&lt;/i&gt; define their own layout of views that live within the activity’s view hierarchy.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A &lt;i&gt;&lt;b&gt;fragment&lt;/b&gt;&lt;/i&gt; has its own life-cycle, closely related to the life-cycle of its host activity.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;

A &lt;b&gt;fragment&lt;/b&gt; can be a static part of an activity, instantiated automatically during the activity’s creation.
&lt;/span&gt;

&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;

Or, you c&lt;/span&gt;an create, add, and remove fragments dynamically in an activity at run-time.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;What is Life cycle of Fragment ?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Fragments have a few extra life cycle callbacks managing interaction with the activity:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/span&gt;&lt;div class=&quot;dlist&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;

&lt;/span&gt;
&lt;dl&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;monospaced&quot;&gt;onAttach(Activity)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: lime;&quot;&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;/span&gt;Called when the fragment has been associated with the activity.&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;monospaced&quot;&gt;onCreateView(LayoutInflater, ViewGroup, Bundle)&lt;/span&gt; =&amp;gt;&lt;/span&gt; Called to create the view hierarchy associated&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;with the fragment.&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;monospaced&quot;&gt;onActivityCreated(Bundle) =&amp;gt;&lt;/span&gt;&lt;/span&gt; Called when the activity’s &lt;span class=&quot;monospaced&quot;&gt;onCreate()&lt;/span&gt; method has returned.&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;monospaced&quot;&gt;onDestroyView() =&amp;gt;&lt;/span&gt;&lt;/span&gt; Called when the view hierarchy associated with the fragment is being removed.&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;monospaced&quot;&gt;onDetach() =&amp;gt;&lt;/span&gt; &lt;/span&gt;Called when the fragment is being disassociated from the activity.&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfjnYvbGdOCnJl7SHIcn6kFeAlrgR8WqbsfIa_JTx_Pjl44ZmNSP70bHIST5HbEPar3b943Abi5Awepz-OUEEmy4KG3XGu6ks_FKWJ9bFYWqju-1Mb44qaOB6n8xjZFxQoEsMw2jyue5H5/s1600/fragments.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfjnYvbGdOCnJl7SHIcn6kFeAlrgR8WqbsfIa_JTx_Pjl44ZmNSP70bHIST5HbEPar3b943Abi5Awepz-OUEEmy4KG3XGu6ks_FKWJ9bFYWqju-1Mb44qaOB6n8xjZFxQoEsMw2jyue5H5/s640/fragments.png&quot; width=&quot;371&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&amp;nbsp;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&amp;nbsp;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&amp;nbsp;&lt;/dt&gt;
&lt;dt class=&quot;hdlist1&quot;&gt;&amp;nbsp;&lt;/dt&gt;
&lt;/dl&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/5241961572929012531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/what-is-fragment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5241961572929012531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5241961572929012531'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/what-is-fragment.html' title='What is Fragment ?'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfjnYvbGdOCnJl7SHIcn6kFeAlrgR8WqbsfIa_JTx_Pjl44ZmNSP70bHIST5HbEPar3b943Abi5Awepz-OUEEmy4KG3XGu6ks_FKWJ9bFYWqju-1Mb44qaOB6n8xjZFxQoEsMw2jyue5H5/s72-c/fragments.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-477656312348658567</id><published>2013-11-13T17:43:00.000+05:30</published><updated>2013-11-15T18:19:14.627+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Block Incoming call - Android"/><title type='text'>How to Block Incoming call - Android </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Step 1:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: small;&quot;&gt;Create Broadcast receiver class for incoming call&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
  package com.ankit.android.sample;

 import java.lang.reflect.Method;
 import com.android.internal.telephony.ITelephony;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent
 import android.telephony.TelephonyManager;
 import android.util.Log;

public class PhoneCallReceiver extends BroadcastReceiver {
 Context context = null;
 private static final String TAG = &quot;Phone call&quot;;
 private ITelephony telephonyService;

 @Override
 public void onReceive(Context context, Intent intent) {
        Log.v(TAG, &quot;Receving....&quot;);
        TelephonyManager telephony = (TelephonyManager)
        context.getSystemService(Context.TELEPHONY_SERVICE); 
  try {
         Class c = Class.forName(telephony.getClass().getName());
         Method m = c.getDeclaredMethod(&quot;getITelephony&quot;);
         m.setAccessible(true);
   telephonyService = (ITelephony) m.invoke(telephony);
   telephonyService.endCall();
  } catch (Exception e) {
   e.printStackTrace();
     }
  }
} 
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt;Step 2:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: small;&quot;&gt;Create IDL interface for getting core Telephony service&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: small;&quot;&gt;package name must be com.android.internal.telephony&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;FileName : ITelephony.aidl&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
package com.android.internal.telephony;

  interface ITelephony {
     boolean endCall();  
     void answerRingingCall();   
     void silenceRinger();
   }]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt; &lt;b&gt;&lt;span style=&quot;color: #b45f06; font-size: large;&quot;&gt;Step 3:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;AndroidManifest.xml configuration &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
 &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; package=&quot;com.ankit.android.sample&quot; android:versioncode=&quot;1&quot; android:versionname=&quot;1.0&quot;&gt; 
    &lt;application android:icon=&quot;@drawable/icon&quot; android:label=&quot;@string/app_name&quot;&gt;

        &lt;receiver android:name=&quot;.PhoneCallReceiver&quot;&gt;
            &lt;intent-filter android:priority=&quot;100&quot;&gt;
                &lt;action android:name=&quot;android.intent.action.PHONE_STATE&quot;&gt;
            &lt;/action&gt;&lt;/intent-filter&gt;
        &lt;/receiver&gt;

    &lt;/application&gt;
    &lt;uses-sdk android:minsdkversion=&quot;5&quot;&gt;
    &lt;uses-permission android:name=&quot;android.permission.MODIFY_PHONE_STATE&quot;&gt;
    &lt;uses-permission android:name=&quot;android.permission.CALL_PHONE&quot;&gt;
    &lt;uses-permission android:name=&quot;android.permission.READ_PHONE_STATE&quot;&gt;

    &lt;uses-sdk android:minsdkversion=&quot;8&quot;&gt;

&lt;/uses-sdk&gt;&lt;/uses-permission&gt;&lt;/uses-permission&gt;&lt;/uses-permission&gt;&lt;/uses-sdk&gt;&lt;/manifest&gt; 

]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/477656312348658567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/how-to-block-incoming-call-android.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/477656312348658567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/477656312348658567'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/how-to-block-incoming-call-android.html' title='How to Block Incoming call - Android '/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-7341250298267140815</id><published>2013-11-12T15:46:00.003+05:30</published><updated>2013-11-15T18:19:39.406+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Generate PDF in Android"/><title type='text'>How to Generate PDF in Android </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hi Friends !&lt;/span&gt; &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; Today I am going to share How to Generate PDF in Android tutorial. This tutorial will help you generate your own PDF file  in Android. Sometimes, you need to create certain applications where in  you want to output the details in the form of a PDF file so that it  could printed or used in some other way.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; In order to generate PDF we are going to use an external library called &lt;a href=&quot;https://code.google.com/p/droidtext/&quot; target=&quot;_blank&quot;&gt;Droidtext&lt;/a&gt;  which is used for PDF creation. It comes with a desktop version and an  Android version, the differences between the two can be found over &lt;a href=&quot;https://code.google.com/p/droidtext/wiki/DifferencesToDesktop&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. For this tutorial, I will be using the Android version.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Add &lt;b&gt;Droidtext .jar&lt;/b&gt; file to Android project inside the libs folder and make a java build path. &lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;activity_main.xml&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[&lt;relativelayout android:layout_height=&quot;match_parent&quot; android:layout_width=&quot;match_parent&quot; android:paddingbottom=&quot;@dimen/activity_vertical_margin&quot; android:paddingleft=&quot;@dimen/activity_horizontal_margin&quot; android:paddingright=&quot;@dimen/activity_horizontal_margin&quot; android:paddingtop=&quot;@dimen/activity_vertical_margin&quot; tools:context=&quot;.MainActivity&quot; xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt;
 
    &lt;textview android:layout_height=&quot;wrap_content&quot; android:layout_width=&quot;wrap_content&quot; android:text=&quot;@string/hello_world&quot;&gt;
 
    &lt;button android:id=&quot;@+id/button1&quot; android:layout_centerinparent=&quot;true&quot; android:layout_height=&quot;wrap_content&quot; android:layout_width=&quot;fill_parent&quot; android:text=&quot;Generate PDF&quot;&gt;
     
&lt;/button&gt;&lt;/textview&gt;&lt;/relativelayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;MainActivity.java&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[package app.ankit;
 
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Font;
import com.lowagie.text.HeaderFooter;
import com.lowagie.text.Image;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Phrase;
import com.lowagie.text.pdf.PdfWriter;
 
public class MainActivity extends Activity {
   
 private Button b;
 @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  b  = (Button)findViewById(R.id.button1);
  b.setOnClickListener(new View.OnClickListener() {
   @Override
   public void onClick(View v) {
    // TODO Auto-generated method stub
    createPDF();
    }
  });
}
  
 public void createPDF()
 {
   Document doc = new Document();
     
   
   try {
     String path = Environment.getExternalStorageDirectory().getAbsolutePath() + &quot;/droidText&quot;;
       
     File dir = new File(path);
           if(!dir.exists())
            dir.mkdirs();
 
       Log.d(&quot;PDFCreator&quot;, &quot;PDF Path: &quot; + path);
            
       File file = new File(dir, &quot;sample.pdf&quot;);
       FileOutputStream fOut = new FileOutputStream(file);
      
           PdfWriter.getInstance(doc, fOut);
                  
                //open the document
                doc.open();
                 
                Paragraph p1 = new Paragraph(&quot;Hi! I am generating my first PDF using DroidText&quot;);
                Font paraFont= new Font(Font.COURIER);
                p1.setAlignment(Paragraph.ALIGN_CENTER);
                p1.setFont(paraFont);
                 
                 //add paragraph to document    
                 doc.add(p1);
                 
                 Paragraph p2 = new Paragraph(&quot;This is an example of a simple paragraph&quot;);
                 Font paraFont2= new Font(Font.COURIER,14.0f,Color.GREEN);
                 p2.setAlignment(Paragraph.ALIGN_CENTER);
                 p2.setFont(paraFont2);
                  
                 doc.add(p2);
                  
                 ByteArrayOutputStream stream = new ByteArrayOutputStream();
                 Bitmap bitmap = BitmapFactory.decodeResource(getBaseContext().getResources(), R.drawable.android);
                 bitmap.compress(Bitmap.CompressFormat.JPEG, 100 , stream);
                 Image myImg = Image.getInstance(stream.toByteArray());
                 myImg.setAlignment(Image.MIDDLE);
                 
                 //add image to document
                 doc.add(myImg);
                 
                 //set footer
                 Phrase footerText = new Phrase(&quot;This is an example of a footer&quot;);
                 HeaderFooter pdfFooter = new HeaderFooter(footerText, false);
                 doc.setFooter(pdfFooter);
                  
         } catch (DocumentException de) {
                 Log.e(&quot;PDFCreator&quot;, &quot;DocumentException:&quot; + de);
         } catch (IOException e) {
                 Log.e(&quot;PDFCreator&quot;, &quot;ioException:&quot; + e);
         }finally{
                 doc.close();
         }
     }      
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Menifest.xml&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;manifest android:versioncode=&quot;1&quot; android:versionname=&quot;1.0&quot;
package=&quot;app.ankit&quot; xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;

    &lt;uses-sdk android:minsdkversion=&quot;8&quot; android:targetsdkversion=&quot;8&quot;&gt;
    &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;&gt; 
    
    &lt;application android:allowbackup=&quot;true&quot; android:icon=&quot;@drawable/ic_launcher&quot;
    android:label=&quot;@string/app_name&quot; android:theme=&quot;@style/AppTheme&quot;&gt;
        &lt;activity android:label=&quot;@string/app_name&quot; android:name=&quot;app.ankit.MainActivity&quot;&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot;&gt;

                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;&gt;
            &lt;/category&gt;&lt;/action&gt;&lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/uses-permission&gt;&lt;/uses-sdk&gt;&lt;/manifest&gt; 
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
Output ScreenShot-&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7LPyovTJV15jIFXDwoo8lOoocO-KbkcfsMpnduXRKDwd9JVnxDtGqeyRz2str1-CvSVeqtyuooPwotqcVLK03rS9jJGJcfyisfbd9McB8yLAK14m6yHV_Nndv2tXCqiJrZb14gTQdamkD/s1600/pdf1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7LPyovTJV15jIFXDwoo8lOoocO-KbkcfsMpnduXRKDwd9JVnxDtGqeyRz2str1-CvSVeqtyuooPwotqcVLK03rS9jJGJcfyisfbd9McB8yLAK14m6yHV_Nndv2tXCqiJrZb14gTQdamkD/s400/pdf1.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/7341250298267140815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/how-to-generate-pdf-in-android.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7341250298267140815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7341250298267140815'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/how-to-generate-pdf-in-android.html' title='How to Generate PDF in Android '/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7LPyovTJV15jIFXDwoo8lOoocO-KbkcfsMpnduXRKDwd9JVnxDtGqeyRz2str1-CvSVeqtyuooPwotqcVLK03rS9jJGJcfyisfbd9McB8yLAK14m6yHV_Nndv2tXCqiJrZb14gTQdamkD/s72-c/pdf1.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-5998944519659231186</id><published>2013-11-11T17:12:00.000+05:30</published><updated>2013-11-29T18:31:02.746+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Intent in Android"/><title type='text'>Intent</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;    &lt;br /&gt;
&lt;div style=&quot;border-bottom: solid windowtext 1.0pt; border: none; mso-border-bottom-alt: solid windowtext .5pt; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: none; mso-border-bottom-alt: solid windowtext .5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Overview –&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Intent is an abstract description of an operation to be performed. It can be used with startActivity&lt;code&gt; &lt;/code&gt;to launch an &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Activity&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;broadcastIntent&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; to send it to any interested &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;BroadcastReceiver&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; components to communicate with a background &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Service&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;For example:- an Activity can send an Intents to the Android system which starts another Activity.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Implicit intents&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; are often used to send message from one activity to in-built android activity. I&lt;span style=&quot;mso-bidi-font-weight: bold;&quot;&gt;mplicit Intents&lt;/span&gt; have not specified a component; instead, They specify the action which should be performed and optionally an URI which should be used for this action.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Here, we do not declare the target component and hence is typically used for activating components of other applications seamlessly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Simple Program (Tutorial) &lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;:-&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Create a new Android application &quot;Implicit Intent&quot; with package name “com.intent.implicit” &amp;amp; a Activity called &quot;ImplicitActivity.java&quot;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Write following code in &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&quot;main.xml&quot; file in the &quot;res/layout&quot; folder.&lt;/span&gt; Change the&amp;nbsp;&amp;nbsp; layout file &quot;main.xml&quot; to the following.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write following&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;java code in “ImplicitActivity.java” file in src/com.intent.implicit” .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
 package com.intent.implicit;

import intent.implicit.R;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

     public class ImplicitActivity extends Activity {
 EditText editText;

              public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  Button btnDialer = (Button) findViewById(R.id.dialerButton);
  Button btnCall = (Button) findViewById(R.id.callButton);
  Button btnWeb = (Button) findViewById(R.id.webButton);
  Button btnContact = (Button) findViewById(R.id.contactButton);
  Button btnLog = (Button) findViewById(R.id.logButton);
  Button btnMedia = (Button) findViewById(R.id.mediaButton);
  Button btnCamera = (Button) findViewById(R.id.cameraButton);
  Button btnPic = (Button) findViewById(R.id.picButton);

  btnDialer.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_DIAL);
    i.setData(Uri.parse(&quot;tel:2121&quot;));
    startActivity(i);
   }
  });
  btnCall.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_CALL);
    i.setData(Uri.parse(&quot;tel:&quot; + editText.getText()));
    startActivity(i);
   }
  });
  btnWeb.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_VIEW);
    i.setData(Uri.parse(&quot;http://www.google.com&quot;));
    startActivity(i);
   }
  });
  btnContact.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_VIEW);
    i.setData(Uri.parse(&quot;content://contacts/people/&quot;));
    startActivity(i);
   }
  });
  btnLog.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_VIEW);
    i.setData(Uri.parse(&quot;content://call_log/calls/1&quot;));
    startActivity(i);
   }
  });
  btnMedia.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_VIEW);
    i.setData(Uri.parse(&quot;content://media/external/images/media/&quot;));
    startActivity(i);
   }

  });
  btnCamera.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
    startActivity(i);
   }
  });

  btnPic.setOnClickListener(new View.OnClickListener() {
   public void onClick(View v) {
    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_PICK);
    i.setData(Uri.parse(&quot;content://contacts/people&quot;));
    startActivity(i);
   }

  });
 }
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add following permission in “AndroidManifest.xml” file in “res” folder.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

&lt;uses-permission android:name=&quot;android.permission.CALL_PRIVILEGED&quot; &gt;
    &lt;/uses-permission&gt;
    &lt;uses-permission android:name=&quot;android.permission.CALL_PHONE&quot; &gt;
    &lt;/uses-permission&gt;
    &lt;uses-permission android:name=&quot;android.permission.CAMERA&quot; &gt;
    &lt;/uses-permission&gt;
    &lt;uses-permission android:name=&quot;android.permission.READ_CONTACTS&quot; &gt;
    &lt;/uses-permission&gt;
    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;

]]&gt;&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; Explicit intent&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt; to an instance of the designated target class Explicit &lt;code&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-font-size: 14.0pt; mso-bidi-font-size: 14.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: minor-fareast;&quot;&gt;Intents&lt;/span&gt;&lt;/code&gt; explicitly names the component which should be called by the Android system, by using the Java class as identifier.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; Simple Program (Tutorial)&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;:-&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a new Android application “Explicit Intent&quot; with package name “com.intent.explicit” &amp;amp; two activities called &quot;ExplicitActivity.java&quot;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&amp;amp; “Second.java”.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;span style=&quot;font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write following code in&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&quot;main.xml&quot; &amp;amp; “second.xml” file in the &quot;res/layout&quot; folder. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;“main.xml”&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:orientation=&quot;vertical&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;
    android:background=&quot;@drawable/back&quot;&gt;

&lt;button android:id=&quot;@+id/intentButton&quot;
android:layout_width=&quot;fill_parent&quot;
android:layout_marginTop=&quot;50dip&quot;
 android:layout_height=&quot;50dip&quot;
 android:text=&quot;Explicit Intent&quot;&gt;&lt;/Button&gt;

&lt;/LinearLayout&gt;

]]&gt;&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;“second.xml”&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout
  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:orientation=&quot;vertical&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;match_parent&quot;
  android:background=&quot;@drawable/fir&quot;&gt; 
&lt;/LinearLayout&gt;
]]&gt;&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Write following java code in “ExplicitActivity.java” &amp;amp; “Second.java” files in src/com.intent.explicit” .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;“ExplicitActivity.java”&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

package com.intent.explicit;

import intent.explicit.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ExplicitActivity extends Activity {
               public void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.main);

                    Button btnIntent= (Button)findViewById(R.id.intentButton);
                    btnIntent.setOnClickListener(new View.OnClickListener() {
                                               
               public void onClick(View v) {
                    Intent i= new Intent(ExplicitActivity.this,Second.class);
                    startActivity(i);
            }
            });
  }

]]&gt;&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;“&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Second&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;.java”&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

package com.intent.explicit;

import intent.explicit.R;
import android.app.Activity;
import android.os.Bundle;

public class Second extends Activity {
         public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second);
}
}

]]&gt;&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;Add/write following code in “AndroidManifest.xml” file in “res” folder.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

&lt;/activity&gt;
&lt;activity android:name=&quot;com.intent.explicit.Second&quot;&gt;
 &lt;/activity&gt;

]]&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/5998944519659231186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/intent.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5998944519659231186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5998944519659231186'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/intent.html' title='Intent'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-7995022972223706675</id><published>2013-11-11T17:07:00.001+05:30</published><updated>2013-11-15T18:20:25.389+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lazy Loading Image Download in android"/><title type='text'>Lazy Loading Image Download in android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hello Friends!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Today I have share the knowledge about the lazy loading image download from the internet in android.&lt;br /&gt;
The images will downloaded very fast with the help of the multiple thread.&lt;/span&gt; &lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
Images that are not visible on the initial page load are not loaded or  downloaded until they come into the main viewing area. Once an image  comes into view it is then downloaded and faded into visibility. Scroll  down this page to see the action for same.&lt;/span&gt; &lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
For this i am using the open source library universal image loader made  by nostra. Here you can download the universal image loader library &lt;a href=&quot;https://www.opendrive.com/files?NF8yNDA3NDQ1OF9BQndZZQ&quot;&gt;Here.&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;MainActivity.java&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number33 index32 alt2&quot;&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
package com.ankit.lazyloading;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener{
     private Button btnlist=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         btnlist     =     (Button)findViewById(R.id.button_listview);
        btnlist.setOnClickListener(this);
    }
    @Override
    public void onClick(View arg0) {
        Intent intent = new Intent(this, ImageListActivity.class);
        intent.putExtra(&quot;stringarrayimage&quot;, Constants.IMAGES);
        startActivity(intent);
            }
 }  
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;CustomAdapter.java&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;toolbar&quot;&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
package com.ankit.adapter;
 
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;
import com.nostra13.universalimageloader.core.assist.SimpleImageLoadingListener;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;
import com.ankit.lazyloading.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

public class CustomAdapter extends BaseAdapter{

    private String imageurl[]=null;
    private Context context=null;
    DisplayImageOptions doption=null;
    private ImageLoadingListener animateFirstListener =null;

    public CustomAdapter(Activity activity, String[] imageurl)
    {
        this.context=activity;
        this.imageurl=imageurl;
        doption=new DisplayImageOptions.Builder().showImageForEmptyUri(R.drawable.ic_empty)
.showImageOnFail(R.drawable.ic_error).showStubImage(R.drawable.ic_stub).cacheInMemory(true)
.cacheOnDisc(true).displayer(new RoundedBitmapDisplayer(20)).build();
       
 animateFirstListener = new AnimateFirstDisplayListener();
    }
    @Override
    public int getCount() {
        return imageurl.length;
    }
    @Override
    public Object getItem(int arg0) {
        return arg0;
    }
    @Override
    public long getItemId(int arg0) {
        return arg0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        
        View view = convertView;
        final ViewHolder holder;
        if (convertView == null) {
            view = ((Activity) context).getLayoutInflater().inflate(R.layout.item_list_row, parent, false);
            holder = new ViewHolder();
            holder.text     = (TextView) view.findViewById(R.id.text);
            holder.image = (ImageView) view.findViewById(R.id.image);
            view.setTag(holder);
        } else {
            holder = (ViewHolder) view.getTag();
        }
        holder.text.setText(&quot;Item &quot; + (position + 1));
        ImageLoader imageLoader = ImageLoader.getInstance();
        imageLoader.displayImage(imageurl[position], holder.image, doption, animateFirstListener);

        return view;
    }
    
    private static class AnimateFirstDisplayListener extends SimpleImageLoadingListener {
        static final List&lt;string&gt; displayedImages = Collections.synchronizedList(new LinkedList&lt;string&gt;());
        @Override
        public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
            if (loadedImage != null) {
                ImageView imageView = (ImageView) view;
                boolean firstDisplay = !displayedImages.contains(imageUri);
                if (firstDisplay) {
                    FadeInBitmapDisplayer.animate(imageView, 500);
                    displayedImages.add(imageUri);
                }
            }
        }
    }
    private class ViewHolder {
        public TextView text;
        public ImageView image;
    }
}  
]]&gt;&lt;/script&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;ImageListActivity.java&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[

package com.ankit.lazyloading;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageView;
import android.widget.ListView;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.SimpleImageLoadingListener;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
import com.ankit.adapter.CustomAdapter;

public class ImageListActivity extends Activity implements OnItemClickListener{

    private ListView listview=null;
    private String[] imageUrls;
    protected ImageLoader imageLoader=null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.imagelist);
        listview      = (ListView)findViewById(R.id.listView_image);
        imageLoader   = ImageLoader.getInstance();
        Bundle bundle = getIntent().getExtras();
        imageUrls     = bundle.getStringArray(&quot;stringarrayimage&quot;);

        CustomAdapter adapter=new CustomAdapter(ImageListActivity.this, imageUrls);
        listview.setAdapter(adapter);
        listview.setOnItemClickListener(this);
    }
    @Override
    public void onItemClick(AdapterView arg0, View arg1, int position, long arg3) {
        Intent intent = new Intent(this, ImagePagerActivity.class);
        intent.putExtra(&quot;imageurlpostion&quot;, imageUrls);
        intent.putExtra(&quot;imagepostion&quot;, position);
        startActivity(intent);
        
    }
    
    @Override
    public void onBackPressed() {
        AnimateFirstDisplayListener.displayedImages.clear();
        super.onBackPressed();
    }

    private static class AnimateFirstDisplayListener extends SimpleImageLoadingListener {
        static final List&lt;string&gt; displayedImages = Collections.synchronizedList(new LinkedList&lt;string&gt;());
        @Override
        public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
            if (loadedImage != null) {
                ImageView imageView = (ImageView) view;
                boolean firstDisplay = !displayedImages.contains(imageUri);
                if (firstDisplay) {
                    FadeInBitmapDisplayer.animate(imageView, 500);
                    displayedImages.add(imageUri);
                }
            }
        }
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.item_clear_memory_cache:
                imageLoader.clearMemoryCache();
                return true;
            case R.id.item_clear_disc_cache:
                imageLoader.clearDiscCache();
                return true;
            default:
                return false;
        }
    }
}  
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;activity_main.xml&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
android:gravity=&quot;center&quot; 
android:id=&quot;@+id/LinearLayout1&quot; 
android:layout_height=&quot;match_parent&quot; 
android:layout_width=&quot;match_parent&quot; 
android:orientation=&quot;vertical&quot; 
android:paddingbottom=&quot;@dimen/activity_vertical_margin&quot; 
android:paddingleft=&quot;@dimen/activity_horizontal_margin&quot; 
android:paddingright=&quot;@dimen/activity_horizontal_margin&quot; 
android:paddingtop=&quot;@dimen/activity_vertical_margin&quot; 
tools:context=&quot;.MainActivity&quot; 
xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt;
 
&lt;button android:id=&quot;@+id/button_listview&quot; 
android:layout_height=&quot;wrap_content&quot; 
android:layout_width=&quot;wrap_content&quot; 
android:text=&quot;ListView ImageLoad&quot;&gt;
&lt;/button&gt;
&lt;/linearlayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;imagelist.xml&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; 
 android:layout_height=&quot;match_parent&quot; 
android:layout_width=&quot;match_parent&quot; 
android:orientation=&quot;vertical&quot;&gt;
 
&lt;listview android:id=&quot;@+id/listView_image&quot; 
android:layout_height=&quot;match_parent&quot; 
android:layout_width=&quot;match_parent&quot;&gt;
&lt;/listview&gt;
&lt;/linearlayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;item_list_row.xml&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
android:layout_height=&quot;wrap_content&quot; 
android:layout_width=&quot;fill_parent&quot;&gt;
 
&lt;imageview android:adjustviewbounds=&quot;true&quot; 
android:contentdescription=&quot;@string/descr_image&quot; 
android:id=&quot;@+id/image&quot; 
android:layout_height=&quot;72dip&quot; 
android:layout_margin=&quot;3dip&quot; 
android:layout_width=&quot;72dip&quot; 
android:scaletype=&quot;centerCrop&quot;&gt;
 
&lt;textview android:id=&quot;@+id/text&quot; 
android:layout_gravity=&quot;left|center_vertical&quot; 
android:layout_height=&quot;wrap_content&quot; 
android:layout_marginleft=&quot;20dip&quot; 
android:layout_width=&quot;fill_parent&quot; 
android:textsize=&quot;22sp&quot;&gt;
 
&lt;/textview&gt;
&lt;/imageview&gt;
&lt;/linearlayout&gt;
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/7995022972223706675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/lazy-loading-image-download-in-android.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7995022972223706675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/7995022972223706675'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/11/lazy-loading-image-download-in-android.html' title='Lazy Loading Image Download in android'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-2943517599992275677</id><published>2013-04-02T10:45:00.000+05:30</published><updated>2013-11-15T18:20:44.370+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Modify the AndroidManifest File"/><title type='text'>Modify the AndroidManifest File</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hello Friends!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I am using Eclipse to create Android Applications.&amp;nbsp;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;So here is how you can do it step by step. [Note: If you don&#39;t use Eclipse then you just have to modify the AndroidManifest.xml file in your application]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCex-12NNGHteXqRCmVkPIXY_vNRof7dyAw8y27VMcXnP04L4PKExOmJOFLobXkW6jAj_HwlDiA4Jf0G7vOwm9OQUKWGWjI41nTiHQcS1nH35ywquwutcK8bpF6b9wegIQ_xEyQz8uB4fz/s1600/am.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCex-12NNGHteXqRCmVkPIXY_vNRof7dyAw8y27VMcXnP04L4PKExOmJOFLobXkW6jAj_HwlDiA4Jf0G7vOwm9OQUKWGWjI41nTiHQcS1nH35ywquwutcK8bpF6b9wegIQ_xEyQz8uB4fz/s640/am.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;1. In your package explorer tab (In the image to the left you) click on the AndroidManifest.xml&lt;/span&gt;&lt;br style=&quot;background-color: white; line-height: 22.4375px;&quot; /&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;2. In the main window you will see a set of tabs at the bottom&amp;nbsp; (blue in the image. We find it easier (but also more prone to mistakes) to modify the .xml file directly, so click on that tab.&lt;/span&gt;&lt;br style=&quot;background-color: white; line-height: 22.4375px;&quot; /&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;3. Now, all you have to do is update it to your needs. The most common problem is to change the activity, so in this example you can swap &amp;lt;activity ..... &amp;gt; .... &amp;lt;/activity&amp;gt;&amp;nbsp; with the new one.&lt;/span&gt;&lt;br style=&quot;background-color: white; line-height: 22.4375px;&quot; /&gt;&lt;br style=&quot;background-color: white; line-height: 22.4375px;&quot; /&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;In short, two of the most important tags are:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Activity&lt;/b&gt;&lt;/span&gt;&amp;nbsp;- describe the different activities your app contains and settings for them&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Permissions&lt;/b&gt;&lt;/span&gt;&amp;nbsp;- describe which features your application wishes to use that are not normally included (internet access for example)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br style=&quot;background-color: white; line-height: 22.4375px;&quot; /&gt;&lt;span style=&quot;background-color: white; line-height: 22.4375px;&quot;&gt;If you want to know more about the manifest and what each of the fields means you can find more information &amp;nbsp;from the official android documentation&amp;nbsp;&lt;a href=&quot;http://developer.android.com/guide/topics/manifest/manifest-intro.html&quot;&gt;here.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/2943517599992275677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/04/modify-androidmanifest-file.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2943517599992275677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2943517599992275677'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/04/modify-androidmanifest-file.html' title='Modify the AndroidManifest File'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCex-12NNGHteXqRCmVkPIXY_vNRof7dyAw8y27VMcXnP04L4PKExOmJOFLobXkW6jAj_HwlDiA4Jf0G7vOwm9OQUKWGWjI41nTiHQcS1nH35ywquwutcK8bpF6b9wegIQ_xEyQz8uB4fz/s72-c/am.PNG" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-3613873016749583269</id><published>2013-03-22T15:59:00.000+05:30</published><updated>2013-11-15T18:21:19.408+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bitmap to String"/><category scheme="http://www.blogger.com/atom/ns#" term="Convert String to Bitmap"/><title type='text'>Convert String to Bitmap and Bitmap to String</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In android, Normally we send and receive data in the form of string.So if we have image in the Bitmap form then we can not send it to server.So here i made a simple function that you need pass bitmap and it will return a string.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public String BitMapToString(Bitmap bitmap){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ByteArrayOutputStream ByteStream=new &amp;nbsp;ByteArrayOutputStream();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bitmap.compress(Bitmap.CompressFormat.PNG,100, ByteStream);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte [] b=ByteStream.toByteArray();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String temp=Base64.encodeToString(b, Base64.DEFAULT);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return temp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here is the reverse procedure for converting string to bitmap but string should Base64 encoding&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public Bitmap StringToBitMap(String encodedString){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;try{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte [] encodeByte=Base64.decode(encodedString,Base64.DEFAULT);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bitmap bitmap=BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return bitmap;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}catch(Exception e){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.getMessage();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return null;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/3613873016749583269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/convert-string-to-bitmap-and-bitmap-to.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/3613873016749583269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/3613873016749583269'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/convert-string-to-bitmap-and-bitmap-to.html' title='Convert String to Bitmap and Bitmap to String'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-2165957701904562657</id><published>2013-03-21T15:38:00.001+05:30</published><updated>2013-11-15T18:21:38.201+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Improve your concentration"/><title type='text'> Improve your concentration while developing &quot;Mobile Application&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hello Friends!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Being software developer is a pain full situation when we want to focus but fail to focus. In most cases we misjudge our ability and caliber. We start criticize our self for what we should responsible. We forget that we are human being and we born to commit mistakes. We born to learn from our mistake. As a mobile application developer, i have gone through the same situation many times. Every time i try to avoid with some set of rules and principles that worked for me. So let share with each among us&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Always leave on time&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Generally people thinks that working for longer hours will increase your performance at works. But it never does as i feel. Developing a software is not physical work, so you can not work until your mind is not active. Sitting for more hours will drain your brain and stop thinking. It need quality time rather than being sitting for longer hours. So try to leave on time, yes indeed if you need any urgency and have to work for client late then sitting for more hours does not harm. But it should be a fashion. leaving on time will make you more focus because you have to complete task with in the time&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Plan one thing at a time&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A CPU can execute million of calculation with in milliseconds but nothing is creative. We have a human mind, we have some limitation and some exceptional abilities. Give half an hour in morning for planning. Allocate task to yourself, divide expected time and start working. Do not spend too much time on a particular thing and continue work till the day end. Now observe what you have completed. If you fail to do something than find the reason, but do not switch on panic button.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Take short break&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Stand up from chair every two hours. Take some walk for 2 minute, drink water and again start working. It will relax your brain muscles and boost your concentration for coming two hours. Believe it increase my output 20 %. And most importantly it reduce bug from software i made. In break you can talk to your colleague, it will help you to maintain healthy relationship. But do not misuse break. I call this break, break for bugs&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/2165957701904562657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/improve-your-concentration-while.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2165957701904562657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2165957701904562657'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/improve-your-concentration-while.html' title=' Improve your concentration while developing &quot;Mobile Application&quot;'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-2893828221476960683</id><published>2013-03-21T12:14:00.000+05:30</published><updated>2013-11-15T18:21:55.306+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="creating your own android application."/><title type='text'>Some Guide Lines while creating your own android application.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hi Friends! &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I am observing some regular mistake that make a good application to be in category of crap. From the last 15 days i am observing trend of Play store applications. On basis of all my observation and experience, I suggest you some tips to improve your application quality&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
we should do some home work which one necessity and universal truth to create one milestone in your career.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;1. Avoid to use high quality Image&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; -&amp;nbsp;Using high quality image, limit available memory for your application. When we load image into memory, it take lots of memory and application heap size shrink drastically. And this becomes the main cause of crashing application. This is really bad experience. If your application really required image of high quality then you can scale them according to device heap size and density. Using image of 3000*4000 on 720*1280 resolution does not mean anything.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;&lt;b&gt;
2. Shows proper Alert&lt;/b&gt;&lt;/span&gt; - Showing proper alert, is big boost to make user happy. I download one application which always show &quot;Your connection is not available&quot; either i have connection or my server does not respond with in time (while downloading application data).This make awkward as i was confused. So always keep related message in alert.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;3.&amp;nbsp;Release hardware&lt;/b&gt; &lt;/span&gt;-&amp;nbsp;If you are using hardware like camera, Bluetooth then please release them properly after use is over. Most immense issue is of GPS if you are using GPS then remove update after use is over. Else it will drain user battery.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;4.&amp;nbsp;Use combination of Relative Layout and Density Pixel&lt;/b&gt;&lt;/span&gt; -&amp;nbsp;Density Pixels (dp)&amp;nbsp; device independent pixel,which provide good design on phone with different densities. Relative Layout align child on relativity, so chances of hampering layout reduces.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;5. Always remember to&amp;nbsp;close connection&lt;/b&gt;&lt;/span&gt; - Either you open data base or reading data from online URL, make sure you close all connection pointing to source. Close Input stream and data base connection when you read data. This will help you to avoid conflict and save your memory also.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;6.&amp;nbsp;Remove unnecessary permissions&lt;/b&gt;&lt;/span&gt; -&amp;nbsp;Recently, I read review of my application. User raise one issue, why should one&#39;s allow to make phone call. I was surprised that my application never need this permission but i forgot to remove it from manifest and it cost me worse review. So never play with user, Take preventing measure and remove all permission that does not required. This is not common issue but sometimes we commit this by mistake. So double check your manifest permission.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;And last but not least, if you have commit any mistake. Then do not need worry, upload a updated version of your application so that user will download your update version.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 class=&quot;r&quot; style=&quot;background-color: white; color: #222222; font-size: medium; font-weight: normal; margin: 0px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: nowrap;&quot;&gt;
&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/2893828221476960683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/some-guide-lines-while-creating-your.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2893828221476960683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/2893828221476960683'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/some-guide-lines-while-creating-your.html' title='Some Guide Lines while creating your own android application.'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-6799223272201592807</id><published>2013-03-20T17:35:00.000+05:30</published><updated>2013-11-15T18:22:13.716+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Now (Right to Left) support in Android 4.2"/><title type='text'> Now (Right to Left) support in Android 4.2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Android 4.1 (Jelly Bean) introduced limited support for bidirectional text in TextView and EditText elements, allowing apps to display and edit text in both left-to-right (LTR) and right-to-left (RTL) scripts. Android 4.2 added full native support for RTL layouts, including layout mirroring, allowing you to deliver the same great app experience to all of your users, whether their language uses a script that reads right-to-left or one that reads left-to-right.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you do nothing, your app will not change — it will continue to appear as it currently does. However, with a few simple changes, your app will be automatically mirrored when the user switches the system language to a right-to-left script (such as Arabic, Hebrew, or Persian). For example, see the following screenshots of the Settings app:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0vk9sXdvTpITJ_7JiwevKZETZ1blFYWpR4ncBEY9wyyaEtq3FcdwTZqVdoi3NMznQGMlh9Vvq5XoSV9mBnJ7V8gCpMOCXqyjNcn3y0YMNC4cMJToT8HR2ttu-u90KyuVYbzZDDEdOsQO7/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0vk9sXdvTpITJ_7JiwevKZETZ1blFYWpR4ncBEY9wyyaEtq3FcdwTZqVdoi3NMznQGMlh9Vvq5XoSV9mBnJ7V8gCpMOCXqyjNcn3y0YMNC4cMJToT8HR2ttu-u90KyuVYbzZDDEdOsQO7/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfF6hT5f0MrvDgFaOqJxfLDXw-BDukNhxwfywI0zWfXIbWPqyTXXlwLd5y_ti5nnNDIp-1Oqc7ltrnQD56JoHCXz9qx9cwd8B7ao-J5dWJLizZ90qp3KwkLxo5Y7wdFnU72BfmtFEfieHf/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfF6hT5f0MrvDgFaOqJxfLDXw-BDukNhxwfywI0zWfXIbWPqyTXXlwLd5y_ti5nnNDIp-1Oqc7ltrnQD56JoHCXz9qx9cwd8B7ao-J5dWJLizZ90qp3KwkLxo5Y7wdFnU72BfmtFEfieHf/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To take advantage of RTL layout mirroring, simply make the following changes to your app:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Declare in your app manifest that your app supports RTL mirroring.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Specifically, add android:supportsRtl=&quot;true&quot; to the &amp;lt;application&amp;gt; element in your manifest file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Change all of your app&#39;s &quot;left/right&quot; layout properties to new &quot;start/end&quot; equivalents.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you are targeting your app to Android 4.2 (the app&#39;s targetSdkVersion or minSdkVersion is 17 or higher), then you should use “start” and “end” instead of “left” and “right”. For example, android:paddingLeft should become android:paddingStart.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you want your app to work with versions earlier than Android 4.2 (the app&#39;s targetSdkVersion or minSdkVersion is 16 or less), then you should add “start” and end” in addition to “left” and “right”. For example, you’d use both android:paddingLeft and android:paddingStart.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;For more precise control over your app UI in both LTR and RTL mode, Android 4.2 includes the following new APIs to help manage View components:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#attr_android:layoutDirection&quot;&gt;android:layoutDirection&lt;/a&gt; — attribute for setting the direction of a component&#39;s layout.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#attr_android:textDirection&quot;&gt;android:textDirection&lt;/a&gt; — attribute for setting the direction of a component&#39;s text.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#attr_android:textAlignment&quot;&gt;android:textAlignment&lt;/a&gt; — attribute for setting the alignment of a component&#39;s text.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/text/TextUtils.html#getLayoutDirectionFromLocale(java.util.Locale)&quot;&gt;getLayoutDirectionFromLocale() &lt;/a&gt;— method for getting the Locale-specified direction&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;You can even create custom versions of layout, drawables, and other resources for display when a right-to-left script is in use. Simply use the resource qualifier &quot;ldrtl&quot; to tag your resources, meaning “layout direction right-to-left”. To debug and optimize custom right-to-left layouts,&lt;a href=&quot;http://developer.android.com/tools/debugging/debugging-ui.html&quot;&gt; HierarchyViewer&lt;/a&gt; now lets you see start/end properties, layout direction, text direction, and text alignment for all the Views in the hierarchy.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It&#39;s now easy to create beautiful Android apps for all your users, whether they use a right-to-left or left-to-right language. We look forward to seeing some great apps!&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/6799223272201592807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/now-right-to-left-support-in-android-42.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6799223272201592807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6799223272201592807'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/now-right-to-left-support-in-android-42.html' title=' Now (Right to Left) support in Android 4.2'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0vk9sXdvTpITJ_7JiwevKZETZ1blFYWpR4ncBEY9wyyaEtq3FcdwTZqVdoi3NMznQGMlh9Vvq5XoSV9mBnJ7V8gCpMOCXqyjNcn3y0YMNC4cMJToT8HR2ttu-u90KyuVYbzZDDEdOsQO7/s72-c/1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-816707957129269089</id><published>2013-03-20T16:48:00.000+05:30</published><updated>2013-11-15T18:22:33.642+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Lifestyle Application"/><title type='text'> Lifestyle Application (Android)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hello Friends!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&quot;Android Mobile Development&quot;(AMD) is a professional IT solutions company providing Android application development services across a wide range of application categories. The range of applications covered by the company include Android Lifestyle Applications, Multimedia Applications, Communication Applications, Banking Applications Much More!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Android Lifestyle Applications(ALA) have a very concise aim, namely connecting active lifestyle and wellness oriented communities through location base services that make it possible to capture and share information. Such applications they help in extending the mobile user experience by turning the mobile devices into a powerful connector for fitness, sports and healthy lifestyles.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Android based mobile device market is growing at a rapid pace and so is the market for Android Lifestyle Applications. There has been growing interest by mobile carriers and third party developers to extend mobile device capabilities by adding higher-end Android applications like lifestyle applications and more.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/816707957129269089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/lifestyle-application-android.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/816707957129269089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/816707957129269089'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/lifestyle-application-android.html' title=' Lifestyle Application (Android)'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-36512984978535779</id><published>2013-03-20T16:14:00.004+05:30</published><updated>2024-06-18T11:12:00.874+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Application"/><category scheme="http://www.blogger.com/atom/ns#" term="Banking"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>The Double-Edged Sword of Mobile Banking Applications</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;p&gt;In today&#39;s fast-paced world, mobile banking applications have become indispensable tools for managing finances. These apps, available at your fingertips, offer unprecedented convenience and a host of features that simplify our financial lives. However, they also come with potential risks. Let’s explore both the benefits and the drawbacks of using mobile banking apps.&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;Benefits of Mobile Banking Applications:&lt;/strong&gt;&lt;/h4&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Convenience and Accessibility:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;24/7 Banking:&lt;/strong&gt; With mobile banking apps, you can perform transactions, check account balances, and manage finances anytime, anywhere.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;No Queues:&lt;/strong&gt; Avoid the hassle of visiting a bank branch. Everything from transferring funds to paying bills can be done in seconds.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Advanced Features:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Real-time Notifications:&lt;/strong&gt; Receive instant updates on your transactions and account activities, helping you stay on top of your finances.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Budgeting Tools:&lt;/strong&gt; Many apps come with integrated tools that help you track your spending, set budgets, and save money.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;ATM Locators:&lt;/strong&gt; Easily find the nearest ATM or bank branch with built-in locators.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Enhanced Security:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Biometric Authentication:&lt;/strong&gt; Features like fingerprint scanning and facial recognition add an extra layer of security, making unauthorized access difficult.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Fraud Alerts:&lt;/strong&gt; Get alerts about suspicious activities and unauthorized transactions, allowing for immediate action.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Cost Efficiency:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Reduced Fees:&lt;/strong&gt; Mobile banking often reduces or eliminates the fees associated with traditional banking services.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Eco-friendly:&lt;/strong&gt; Digital statements and transactions reduce the need for paper, contributing to environmental sustainability.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;User-Friendly Design:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Intuitive Interfaces:&lt;/strong&gt; Most apps are designed to be user-friendly, making it easy for people of all ages to navigate and use banking services effectively.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h4&gt;&lt;strong&gt;Drawbacks of Mobile Banking Applications:&lt;/strong&gt;&lt;/h4&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Security Risks:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Potential for Hacking:&lt;/strong&gt; Despite robust security measures, mobile banking apps can be targets for cyberattacks. Hackers may exploit vulnerabilities to access sensitive information.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Phishing Scams:&lt;/strong&gt; Users may be tricked into providing personal information through fraudulent links or messages.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Technical Issues:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;App Malfunctions:&lt;/strong&gt; Mobile apps can experience glitches or crashes, potentially leading to issues with transactions or account access.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Compatibility Problems:&lt;/strong&gt; Some apps may not work well on older devices or with certain operating systems, limiting their usability.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Privacy Concerns:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Data Collection:&lt;/strong&gt; Banking apps often collect and store large amounts of personal data, which can be a concern if the app&#39;s privacy practices are not transparent.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Location Tracking:&lt;/strong&gt; Features like ATM locators may require access to your location, raising privacy issues.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dependence on Technology:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Battery and Connectivity:&lt;/strong&gt; Reliance on mobile banking means you need a charged device and a stable internet connection, which can be limiting in certain situations.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Loss or Theft of Device:&lt;/strong&gt; If your phone is lost or stolen, someone could potentially access your banking information, especially if security measures are not robust.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;User Error:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Mistaken Transactions:&lt;/strong&gt; Errors like sending money to the wrong account or incorrect bill payments can occur, and resolving these issues can be time-consuming.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;Conclusion:&lt;/h3&gt;&lt;p&gt;Mobile banking applications offer unparalleled convenience and efficiency, making them a vital part of modern financial management. However, it is crucial to remain aware of the associated risks and take appropriate measures to protect your data and finances. Always use strong, unique passwords, keep your app updated, and be cautious about the permissions you grant and the information you share.&lt;/p&gt;&lt;p&gt;By balancing the benefits and being vigilant about the risks, you can make the most of mobile banking while safeguarding your financial well-being.&lt;/p&gt;
&lt;span face=&quot;Verdana,sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/36512984978535779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/banking-application-android.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/36512984978535779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/36512984978535779'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/banking-application-android.html' title='The Double-Edged Sword of Mobile Banking Applications'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-6011621202054793894</id><published>2013-03-18T18:35:00.000+05:30</published><updated>2013-11-12T17:40:32.701+05:30</updated><title type='text'>Formatting Android Layout XML &amp; JAVA in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22.4375px;&quot;&gt;Sometimes when you are editing Android Layouts in Eclipse, it makes more sense or is more convenient to change the actual xml content. The problem is, a lot of the time the xml is not pretty to look at. Lines of text often run off the screen and it is difficult to tell where one element begins and another ends.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-vmX2z0ajVFtdxwnJjOgsRwsI6lIW_15dOWDES3gc2vUQsZXDDNOklmcdSOjf0ZWLwQ1X5KeOYe6O4cGRx-CA74mzZmUisnmMRHFSxT4nEKcEA-xliDCfPZ8e3zHaikCpM1zCtMS3RSUL/s1600/messytext.png&quot; imageanchor=&quot;1&quot; style=&quot;background-color: black; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-vmX2z0ajVFtdxwnJjOgsRwsI6lIW_15dOWDES3gc2vUQsZXDDNOklmcdSOjf0ZWLwQ1X5KeOYe6O4cGRx-CA74mzZmUisnmMRHFSxT4nEKcEA-xliDCfPZ8e3zHaikCpM1zCtMS3RSUL/s320/messytext.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: black; color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22.4375px;&quot;&gt;Don&#39;t Worry&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 22.4375px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22.4375px;&quot;&gt;Eclipse has some handy auto-formatting tools. Press Ctrl+Shift+F to auto-format the selected file. Or from the menu, click Source-&amp;gt;Format.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIeZB6TeP88xxDHL-aUX24Gu3LmZ8OAnhnF-6YSseczjHkpIqmvGOUxIoYcKVfu5cMUGlYW1VYoe18scyH4nd5vUl3njloN6NIRBpdPI6gP6-it5bbYn_nGJxbaDdQGK6V7LRAuBe0kTaA/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;background-color: black; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIeZB6TeP88xxDHL-aUX24Gu3LmZ8OAnhnF-6YSseczjHkpIqmvGOUxIoYcKVfu5cMUGlYW1VYoe18scyH4nd5vUl3njloN6NIRBpdPI6gP6-it5bbYn_nGJxbaDdQGK6V7LRAuBe0kTaA/s320/2.png&quot; width=&quot;281&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now your file will be cleaned up and easier to edit.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: black; color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px; text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: black; color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px; text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyNpI7_N8vFrwqPc25MNc4hr6YzDDD3DU777fb7oAoae2RLTOSN4N-9uI9Uoo3O38svYPjjU26Nuxi2i88mwN7eSifia0dEBepZa98ikeA6o3P6QayaPMIzNQMhJvWS9cc2hZ7IT29EvL6/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;background-color: black; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyNpI7_N8vFrwqPc25MNc4hr6YzDDD3DU777fb7oAoae2RLTOSN4N-9uI9Uoo3O38svYPjjU26Nuxi2i88mwN7eSifia0dEBepZa98ikeA6o3P6QayaPMIzNQMhJvWS9cc2hZ7IT29EvL6/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;If you have text selected, only the selected text will be formatted. If no Text is selected, the entire file will be formatted. And Auto-Format will work on your Java files too.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #444444; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 22.4375px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/6011621202054793894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/formatting-android-layout-xml-in-eclipse.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6011621202054793894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/6011621202054793894'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2013/03/formatting-android-layout-xml-in-eclipse.html' title='Formatting Android Layout XML &amp; JAVA in Eclipse'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-vmX2z0ajVFtdxwnJjOgsRwsI6lIW_15dOWDES3gc2vUQsZXDDNOklmcdSOjf0ZWLwQ1X5KeOYe6O4cGRx-CA74mzZmUisnmMRHFSxT4nEKcEA-xliDCfPZ8e3zHaikCpM1zCtMS3RSUL/s72-c/messytext.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-45042817756954624</id><published>2012-05-21T13:00:00.000+05:30</published><updated>2024-06-18T11:12:57.480+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="IPC"/><category scheme="http://www.blogger.com/atom/ns#" term="Zygote"/><title type='text'>Zygote System Process</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The important processes in the system appear to be zygote (which is the  app_process binary), and runtime. These are both started up by the init  process. The following fragment of init.rc is relevant. It is important  to note that these services have the autostart 1 attribute, indicating  they are restarted if they quit.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;zygote {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;exec /system/bin/app_process&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;args {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;0 -Xzygote&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1 /system/bin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2 --zygote&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;autostart 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;runtime {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;exec /system/bin/runtime&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;autostart 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If  we go and kill either the zygote, or runtime process something  interesting happens. Firstly the other process seems to kill itself, and  then the whole system seems to restart.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Changing the ramdisk image&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I  want to get a bit more control of what things are starting up when. To  do this I need to modify the init.rc file. To do this I first extracted  the the ramdisk to the fileystem so that I can modify it (gnucpio -iz -F  ramdisk.img).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;After this I simply commented out the line from  init.rc. Then we can recreate it: (gnucpio -i -t -F ../ramdisk.img |  gnucpio -o -H newc -O ../rootfs.img).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Note if you are using Mac OS X, you will need to download and install gnucpio, becuase the built-in cpio doesn&#39;t support newc.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We can then use the emulator -ramdisk option to load our new ramdisk.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Manual startup&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now  we can start things up manually. First we start up the zygote process.  As # app_process -Xzygote /system/bin --zygote. When we do that there is  no output either on the console, or on the LCD. Next we start the  runtime process ( # runtime), and now things start to happen!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Once both processes start we get the cylon image, and we also end up with some console output:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Prepping: /system/app/AlarmProvider.apk:/system/app/Browser.apk:/system/app/Ca&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;lendar.apk:/system/app/Camera.apk:/system/app/Contacts.apk:/system/app/Developm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ent.apk:/system/app/GDataFeedsProvider.apk:/system/app/Gmail.apk:/system/app/Gm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ailProvider.apk:/system/app/GoogleApps.apk:/system/app/GoogleAppsProvider.apk:/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;system/app/Home.apk:/system/app/ImProvider.apk:/system/app/Maps.apk:/system/app&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;/MediaPickerActivity.apk:/system/app/MediaProvider.apk:/system/app/Phone.apk:/s&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ystem/app/PimProvider.apk:/system/app/ApiDemos.apk:/system/app/SettingsProvider&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.apk:/system/app/Sms.apk:/system/app/SyncProvider.apk:/system/app/TelephonyProv&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ider.apk:/system/app/XmppService.apk:/system/app/YouTube.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/AlarmProvider.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/Calendar.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/Camera.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/GDataFeedsProvider.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/Gmail.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;File not found: /system/app/GmailProvider.apk&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;It might give some clue of which Google applications will be available in the future. :)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The output from runtime looks like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;+++ post-zygote&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There  is also some interesting output from the kernel. In particular the  binder_open log. We can look at these in more detail later.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c0832160) (pid 462) got c5cea000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c095ec40) (pid 475) got c4e8b000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c095ef40) (pid 476) got c46f8000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;android_power: auto off timeout set to 604800 seconds&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Descriptor2Node failed secondary: desc=4, max=32, node=c4e8c350, weak=0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c4008d60) (pid 513) got c473a000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c4008760) (pid 512) got c39fc000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;binder_open(c086f300 c4008260) (pid 531) got c35e3000&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;That  is about enough detail for this entry, next time I&#39;ll be using strace  to try and get a bit more information about these processes.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/45042817756954624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2012/05/zygote-system-process.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/45042817756954624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/45042817756954624'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2012/05/zygote-system-process.html' title='Zygote System Process'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-3945102854755722930</id><published>2012-03-13T17:04:00.000+05:30</published><updated>2024-06-18T11:13:19.109+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Dalvik"/><category scheme="http://www.blogger.com/atom/ns#" term="DVM"/><title type='text'>Dalvik Optimization</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: black; color: #cccccc;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Dalvik is the process virtual machine &amp;nbsp;in Google&#39;s Android operating system. It is the software that runs the apps on Android devices. Dalvik is thus an integral part of Android, which is typically used on mobile devices such as mobile phones and tablet computers. The DVM &amp;nbsp;was designed specifically for the Android mobile platform.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Java virtual machine are stack machines, and the &amp;nbsp;Dalvik virtual machine &amp;nbsp;is a register-based architecture.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Generally, stack-based machines must use instructions to load data on the stack and manipulate that data and thus require more instructions than register machines to implement the same high level code, but the instructions in a register machine must encode the source and destination registers and therefore tend to be larger. This difference is primarily of importance to VM interpreters for which opcode dispatch tends to be expensive along with other factors similarly relevant to just-in-time compilation.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #cccccc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;There are two process for dalvik optimization-&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;1.Optimization through dex:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A tool called dx is used to convert some Java .class files into the .dex format. Multiple classes are included in a single .dex file. Duplicate strings and other constants used in multiple class files are included only once in the .dex output to conserve space. Java byte code is also converted into an alternative instruction set used by the Dalvik VM. An uncompressed .dex file is typically a few percent smaller in size than a compressed Java Archive derived from the same .class files.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The Dalvik executables may be modified again when installed onto a mobile device. In order to gain further optimizations, byte order may be swapped in certain data, simple data structures and function libraries may be linked inline, and empty class objects may be short-circuited.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;2.Optimization through zygote:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;During&amp;nbsp;start-up&amp;nbsp;of the Android system the Linux kernel first calls the process &quot;init&quot;.&quot;init.device.rc&quot; is device specific, on the virtual device this file is called &quot;init.goldfish.rc&quot;.init.rc starts the process &quot;Zygote&quot; via the program system/bin/app_process&quot;. Zygote loads the core Java classes and performs initial processing of them. These classes can be reused by Android application and therefore this step makes them faster to start. Once the initial work of Zygote is done, the process listens to a socket and waits for requests.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: black; color: #cccccc;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/3945102854755722930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2012/03/dalvik-optimization.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/3945102854755722930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/3945102854755722930'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2012/03/dalvik-optimization.html' title='Dalvik Optimization'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-5505764364987503126</id><published>2011-12-09T13:14:00.001+05:30</published><updated>2024-06-18T11:16:35.228+05:30</updated><title type='text'>A Journey Through Time: The Evolution of Android from Version 1.0 to the Latest Release</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:TrackMoves/&gt;   &lt;w:TrackFormatting/&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:DoNotPromoteQF/&gt;   &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;    &lt;w:SplitPgBreakAndParaMark/&gt;    &lt;w:DontVertAlignCellWithSp/&gt;    &lt;w:DontBreakConstrainedForcedTables/&gt;    &lt;w:DontVertAlignInTxbx/&gt;    &lt;w:Word11KerningPairs/&gt;    &lt;w:CachedColBalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathPr&gt;    &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;    &lt;m:brkBin m:val=&quot;before&quot;/&gt;    &lt;m:brkBinSub m:val=&quot;--&gt;    &lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;!--[endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:TrackMoves/&gt;   &lt;w:TrackFormatting/&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:DoNotPromoteQF/&gt;   &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;    &lt;w:SplitPgBreakAndParaMark/&gt;    &lt;w:DontVertAlignCellWithSp/&gt;    &lt;w:DontBreakConstrainedForcedTables/&gt;    &lt;w:DontVertAlignInTxbx/&gt;    &lt;w:Word11KerningPairs/&gt;    &lt;w:CachedColBalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathPr&gt;    &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;    &lt;m:brkBin m:val=&quot;before&quot;/&gt;    &lt;m:brkBinSub m:val=&quot;--&gt;    &lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;!--[endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;&lt;p&gt;Android, the brainchild of Google, has revolutionized the way we interact with our mobile devices. Since its debut in 2008, Android has undergone a remarkable transformation, evolving from a fledgling OS into the most widely used mobile operating system globally. Each version of Android brings new features, improvements, and sometimes, fun dessert-themed names. Let’s take a journey through the history of Android and see how it has evolved over the years.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;1. Android 1.0 (2008): The Humble Beginnings&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;The first version of Android, launched in September 2008, laid the foundation for what would become a mobile operating powerhouse. Android 1.0, released on the HTC Dream (T-Mobile G1 in the US), introduced several key features:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Google Play (then known as Android Market)&lt;/strong&gt;: Offered a platform for downloading apps.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Notifications&lt;/strong&gt;: Pulldown notification bar, a new way to manage alerts.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Web Browser&lt;/strong&gt;: Integrated browser for web surfing.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Home Screen Widgets&lt;/strong&gt;: Basic widgets for displaying information.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;2. Android 1.5 Cupcake (2009): The Sweet Start&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Android 1.5, codenamed Cupcake, marked the beginning of Google’s tradition of naming versions after desserts. Released in April 2009, Cupcake introduced several essential features:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;On-screen Keyboard&lt;/strong&gt;: Support for virtual keyboards.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Widgets and App Folders&lt;/strong&gt;: Enhanced home screen customization.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Video Recording&lt;/strong&gt;: Ability to record and watch videos.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Bluetooth Support&lt;/strong&gt;: Improved connectivity for wireless devices.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;3. Android 1.6 Donut (2009): Growing Up&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Released in September 2009, Android 1.6 Donut brought several significant updates that expanded the system’s capabilities:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Universal Search&lt;/strong&gt;: Search across apps and web from the home screen.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Text-to-Speech&lt;/strong&gt;: Added TTS capabilities.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Support for Different Screen Resolutions&lt;/strong&gt;: Allowed for more device form factors.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;4. Android 2.0/2.1 Eclair (2009): The Sprint Ahead&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Android 2.0 Eclair, launched in October 2009, brought major improvements and enhancements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Google Maps Navigation&lt;/strong&gt;: Turn-by-turn navigation.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Live Wallpapers&lt;/strong&gt;: Dynamic wallpapers for home screen customization.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Multiple Account Support&lt;/strong&gt;: Sync multiple email accounts.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Camera Functionality&lt;/strong&gt;: Flash support, digital zoom, and more.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;5. Android 2.2 Froyo (2010): Faster and Smarter&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Froyo, short for &quot;frozen yogurt,&quot; was released in May 2010 and focused on speed and performance:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Performance Boost&lt;/strong&gt;: JIT compiler for faster processing.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Wi-Fi Hotspot&lt;/strong&gt;: Ability to use the device as a Wi-Fi hotspot.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Flash Support in Browser&lt;/strong&gt;: Better multimedia web content handling.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Push Notifications&lt;/strong&gt;: Enhanced notification handling.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;6. Android 2.3 Gingerbread (2010): Refinement and Enhancement&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Released in December 2010, Gingerbread brought a refreshed UI and new features:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;UI Overhaul&lt;/strong&gt;: Simplified and more intuitive design.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;NFC Support&lt;/strong&gt;: Introduction of Near Field Communication.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Copy/Paste&lt;/strong&gt;: Better text selection and copying.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Gaming Performance&lt;/strong&gt;: Native support for gyroscope and sensors.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;7. Android 3.0/3.2 Honeycomb (2011): Tablet Revolution&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Honeycomb, released in February 2011, was designed specifically for tablets, marking a significant shift in the Android ecosystem:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Holographic UI&lt;/strong&gt;: New interface optimized for larger screens.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Action Bar&lt;/strong&gt;: Replaced physical buttons with a virtual interface.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Multitasking&lt;/strong&gt;: Improved handling of multiple apps.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Tablet Experience&lt;/strong&gt;: Optimized apps and settings for tablets.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;8. Android 4.0 Ice Cream Sandwich (2011): Bridging the Gap&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Ice Cream Sandwich (ICS), launched in October 2011, unified the Android experience across phones and tablets:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Holo UI&lt;/strong&gt;: Modern and sleek user interface.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Face Unlock&lt;/strong&gt;: Facial recognition for unlocking devices.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Data Usage Controls&lt;/strong&gt;: Monitor and manage data usage.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Multitasking&lt;/strong&gt;: New Recent Apps menu for better task switching.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;9. Android 4.1/4.3 Jelly Bean (2012-2013): Smooth and Responsive&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Jelly Bean, released in July 2012, focused on enhancing user experience and performance:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Project Butter&lt;/strong&gt;: Improved touch responsiveness and smoother animations.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Google Now&lt;/strong&gt;: Introduced predictive information cards.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Expandable Notifications&lt;/strong&gt;: More interactive and actionable notifications.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Gesture Typing&lt;/strong&gt;: Enhanced typing with swipe gestures.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;10. Android 4.4 KitKat (2013): Sweetening the Deal&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;KitKat, launched in October 2013, aimed to deliver a more polished and refined user experience:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Optimized Performance for Low-End Devices&lt;/strong&gt;: Improved RAM management.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Immersive Mode&lt;/strong&gt;: Full-screen mode for better media consumption.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;OK Google&lt;/strong&gt;: Hands-free voice commands from the home screen.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Unified Hangouts&lt;/strong&gt;: SMS and Hangouts integration for messaging.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;11. Android 5.0 Lollipop (2014): A Visual Overhaul&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Lollipop, released in November 2014, introduced the new Material Design language:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Material Design&lt;/strong&gt;: Aesthetic and functional UI overhaul with bold colors and fluid animations.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Notifications&lt;/strong&gt;: Lock screen notifications and Priority mode.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Battery Saver Mode&lt;/strong&gt;: Prolong battery life during low power.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Multitasking&lt;/strong&gt;: Card-based task switcher for better app management.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;12. Android 6.0 Marshmallow (2015): Refining the Experience&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Marshmallow, launched in October 2015, focused on stability and performance enhancements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Doze Mode&lt;/strong&gt;: Improved battery life through intelligent power management.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;App Permissions&lt;/strong&gt;: Granular control over app permissions.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Google Now on Tap&lt;/strong&gt;: Contextual information and actions based on screen content.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Fingerprint Support&lt;/strong&gt;: Standardized support for fingerprint sensors.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;13. Android 7.0/7.1 Nougat (2016): Expanding Capabilities&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Nougat, released in August 2016, brought several new features and optimizations:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Split-Screen Mode&lt;/strong&gt;: Multitasking with two apps on screen simultaneously.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Quick Settings Customization&lt;/strong&gt;: Customize quick settings tiles.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Doze Mode&lt;/strong&gt;: Enhanced battery saving while on the move.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Direct Reply Notifications&lt;/strong&gt;: Reply to messages directly from notifications.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;14. Android 8.0/8.1 Oreo (2017): Sweet and Smart&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Oreo, launched in August 2017, focused on performance and security improvements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Picture-in-Picture Mode&lt;/strong&gt;: Watch videos while using other apps.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Notification Dots&lt;/strong&gt;: Notification indicators on app icons.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Autofill Framework&lt;/strong&gt;: Simplified password and data entry.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Project Treble&lt;/strong&gt;: Modular architecture for faster OS updates.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;15. Android 9.0 Pie (2018): Intelligent and Adaptive&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Pie, released in August 2018, introduced AI-driven features and a new gesture-based navigation system:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Adaptive Battery and Brightness&lt;/strong&gt;: AI optimizes power and display settings.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Gesture Navigation&lt;/strong&gt;: New navigation gestures for a more immersive experience.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Digital Wellbeing&lt;/strong&gt;: Tools to help manage screen time and app usage.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Slices and Actions&lt;/strong&gt;: Contextual app shortcuts and proactive suggestions.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;16. Android 10 (2019): Moving Beyond Desserts&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Breaking away from dessert-themed names, Android 10, launched in September 2019, brought significant enhancements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;System-wide Dark Mode&lt;/strong&gt;: Dark theme across the entire OS.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Gestural Navigation&lt;/strong&gt;: Full-screen gestures for navigation.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Focus Mode&lt;/strong&gt;: Minimize distractions by pausing selected apps.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Live Caption&lt;/strong&gt;: Real-time transcription for media content.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;17. Android 11 (2020): Focusing on Communication and Privacy&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Released in September 2020, Android 11 emphasized communication and privacy:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Conversation Notifications&lt;/strong&gt;: Dedicated section for messaging notifications.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Bubbles&lt;/strong&gt;: Floating chat bubbles for quick messaging access.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;One-time Permissions&lt;/strong&gt;: More control over app permissions.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Built-in Screen Recording&lt;/strong&gt;: Native screen recording functionality.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;18. Android 12 (2021): Personalization and Performance&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Android 12, launched in October 2021, introduced a major redesign and personalization options:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Material You&lt;/strong&gt;: Customizable UI with dynamic color theming.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Privacy Dashboard&lt;/strong&gt;: Overview of app data access and permissions.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Performance&lt;/strong&gt;: Faster and more efficient performance.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Widgets&lt;/strong&gt;: More interactive and visually appealing widgets.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;19. Android 13 (2022): Refinement and Usability&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Released in August 2022, Android 13 continued to refine and enhance user experience:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Per-app Language Preferences&lt;/strong&gt;: Set languages on a per-app basis.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Enhanced Security&lt;/strong&gt;: More robust privacy protections.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Bluetooth Connectivity&lt;/strong&gt;: Support for the latest Bluetooth standards.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Media Controls&lt;/strong&gt;: Revamped media player with new features.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;20. Android 14 (2023): Innovation and Accessibility&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Android 14, launched in October 2023, focused on innovation and accessibility:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Ultra HDR Imaging&lt;/strong&gt;: Enhanced imaging support for richer visuals.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Satellite Communication Support&lt;/strong&gt;: Emergency connectivity in remote areas.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Health Connect Integration&lt;/strong&gt;: Centralized health data management.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Improved Accessibility Features&lt;/strong&gt;: New tools and settings for better accessibility.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;strong&gt;21. Android 15 (2024): The Latest Frontier&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Android 15, expected in late 2024, promises to bring even more advancements. Early rumors suggest further integration of AI, improved multitasking features, and enhanced customization options. As with every release, we can anticipate Android 15 to push the boundaries of what’s possible on a mobile device.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;The journey of Android from version 1.0 to Android 15 is a testament to relentless innovation and user-centric design. Each version has built upon the last, adding new features, improving performance, and providing users with more control and functionality. As we look forward to the future, Android continues to evolve, shaping the way we live, work, and play with our mobile devices.&lt;/p&gt;&lt;p&gt;Stay tuned as Android continues its journey, bringing more exciting changes and advancements with each new version.&lt;/p&gt;&lt;/div&gt;&lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/5505764364987503126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2011/12/android-version-history.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5505764364987503126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/5505764364987503126'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2011/12/android-version-history.html' title='A Journey Through Time: The Evolution of Android from Version 1.0 to the Latest Release'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-9139879489388076204</id><published>2011-12-01T10:45:00.000+05:30</published><updated>2013-11-14T17:51:50.608+05:30</updated><title type='text'>Difference between StringBuilder &amp; StringBuffer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:TrackMoves/&gt;   &lt;w:TrackFormatting/&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:DoNotPromoteQF/&gt;   &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;    &lt;w:SplitPgBreakAndParaMark/&gt;    &lt;w:DontVertAlignCellWithSp/&gt;    &lt;w:DontBreakConstrainedForcedTables/&gt;    &lt;w:DontVertAlignInTxbx/&gt;    &lt;w:Word11KerningPairs/&gt;    &lt;w:CachedColBalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathPr&gt;    &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;    &lt;m:brkBin m:val=&quot;before&quot;/&gt;    &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;    &lt;m:smallFrac m:val=&quot;off&quot;/&gt;    &lt;m:dispDef/&gt;    &lt;m:lMargin m:val=&quot;0&quot;/&gt;    &lt;m:rMargin m:val=&quot;0&quot;/&gt;    &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;    &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;    &lt;m:intLim m:val=&quot;subSup&quot;/&gt;    &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;   &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:&quot;Times New Roman&quot;;
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hello Friends &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I wanted to know the difference between StringBuilder &amp;amp; StringBuffer classes and thier practical use. So,I wrote 2 &lt;a href=&quot;http://www.java-forums.org/&quot; id=&quot;KonaLink0&quot; style=&quot;font-size: inherit !important; font-weight: inherit !important;&quot;&gt;&lt;span class=&quot;klink&quot;&gt;&lt;span style=&quot;color: windowtext; text-decoration: none; text-underline: none;&quot;&gt;&lt;span style=&quot;font-size: inherit ! important; font-weight: inherit ! important;&quot;&gt;code &lt;/span&gt;&lt;span style=&quot;font-size: inherit ! important; font-weight: inherit ! important;&quot;&gt;snippets&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; in which I spawn 3 threads simultaneously which make use of StringBuilder &amp;amp; StringBuffer objects. When I run the code, i expect all the 3 threads to run simultaneously in case of StringBuilder &amp;amp; in synchronized manner in case of StringBuffer. But in BOTH the cases, they run in synchronized manner. then what is the use of StringBuffer class?:confused: (In case of String objects, all the 3 threads run simultaneeously). I will share the code snippets for your reference. Please also correct me if I&#39;m wrong in understanding the concept of multi-threading itself. And please, also correct the code.:):)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;// StringBuilder...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
public class MultiTread implements Runnable{
private StringBuilder name;
public MultiTread(StringBuilder string){
name=string;
}
public void run(){
for(int i=0; i&lt;=10; i++){
System.out.println(name.append(i));
}
}
public static void main(String[] args){
Thread th = new Thread(new Multithread(new StringBuilder(&quot;thread1:&quot;)));
Thread th1 = new Thread(new MultiTread(new StringBuilder(&quot;thread2:&quot;)));
Thread th2 = new Thread(new MultiTread(new StringBuilder(&quot;thread3:&quot;)));
th.start();
th1.start();
th2.start();
}
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;//StringBuffer...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
public class MultiTreadBuf implements Runnable{
private StringBuffer name;
public MultiTreadBuf(StringBuffer string){
name=string;
}
public void run(){
for(int i=0; i&lt;=10; i++){
System.out.println(name.append(i));
}
}
public static void main(String[] args){
Thread th = new Thread(new MultiTreadBuf(new StringBuffer(&quot;thread1:&quot;)));
Thread th1 = new Thread(new MultiTreadBuf(new StringBuffer(&quot;thread2:&quot;)));
Thread th2 = new Thread(new MultiTreadBuf(new StringBuffer(&quot;thread3:&quot;)));
th.start();
th1.start();
th2.start();
}
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;color: #e06666;&quot;&gt;//String....&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush: js&quot; type=&quot;syntaxhighlighter&quot;&gt;&lt;![CDATA[
public class MuiltiTreadStr implements Runnable{
private String name;
public MuiltiTreadStr(String string){
name=string;
}
public void run(){
for(int i=0; i&lt;=10; i++){
System.out.println(name+i);
}
}
public static void main(String[] args){
System.out.println(&quot;main begins...&quot;);
Thread th = new Thread(new MuiltiTreadStr(&quot;thread1:&quot;));
Thread th1 = new Thread(new MuiltiTreadStr(&quot;thread2:&quot;));
Thread th2 = new Thread(new MuiltiTreadStr(&quot;thread3:&quot;));
System.out.println(&quot;spawning 3 threads...&quot;);
th.start();
th1.start();
th2.start();
System.out.println(&quot;main ends...&quot;);
}
}
]]&gt;&lt;/script&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html&quot;&gt;&lt;code&gt;StringBuffer&lt;/code&gt;&lt;/a&gt;&lt;/b&gt; is synchronized, &lt;b&gt;&lt;a href=&quot;http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html&quot;&gt;&lt;code&gt;StringBuilder&lt;/code&gt;&lt;/a&gt;&lt;/b&gt; is not.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/9139879489388076204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2011/11/difference-between-stringbuilder.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/9139879489388076204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/9139879489388076204'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2011/11/difference-between-stringbuilder.html' title='Difference between StringBuilder &amp; StringBuffer'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5887113154087504619.post-208263550483699433</id><published>2011-09-21T14:52:00.000+05:30</published><updated>2013-11-15T18:45:22.338+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basic Iphone Interview Q&amp;A"/><title type='text'>Basic iPhone Interview Question &amp; Answer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 4;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;What is iPhone?&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;IPhone is a combination of internet and multimedia enabled smart phone developed by Apple Inc.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;iPhone functions as a camera phone, including text messaging, and visual voice mail&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;iPhone is a portable media player that resembles a video iPod&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;It has user interface that is built around the multi-touch screen including virtual keyboard.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 11.25pt; margin: 0in 0in 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;App Store , which launched in the mid 2008 has over 1,00,000 applications with functionalities including games, references, GPS navigation, advertising, television shows, films, reference, celebrities.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What are the features of iphone 3gs?&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Video&lt;span style=&quot;font-size: x-small;&quot;&gt;:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Videos can be edited, shared. High quality VGA video can be shot in portrait or landscape.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Camera:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Still photos with greater quality can be taken.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Voice control:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; It recognizes the names in contacts and recognizes the music on iPod.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Compass:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; iPhone 3GS has built-in digital compass, used to point the way.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Internet Tethering:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Internet surfing can be done from anywhere. A 3G connection can be shared on Iphon3 with Mac notebook or laptop..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What is iphone OS?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;iPhone OS runs on iPhone and iPod touch devices. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Hardware devices are managed by iPhone OS and provides the technologies needed for implementing native applications on the phone.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The OS ships with several system applications such as Mail, Safari, Phone, which provide standard services to the user.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What is iphone sdk?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;iPhone SDK is available with tools and interfaces needed for developing, installing and running custom native applications. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Native applications are built using the iPhone OS’s system frameworks and Objective-C language and run directly on iPhone OS.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Native applications are installed physically on a device and can run in presence or absence of network connection.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What is iphone architecture?&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;It is similar to MacOS X architecture &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;It acts as an intermediary between the iPhone and iPod hardware an the appearing applications on the screen&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The user created applications never interact directly with the appropriate drivers, which protects the user applications from changes to the hardware.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What is iphone reference library ?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;iPhone reference library is a set of reference documents for iPhone OS . &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;It can be downloaded by subscribing to the iPhone OS Library doc set.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Select Help&amp;gt;Documentation from Xcode, and click the subscribe button next to the iPhone OS Library doc set, which appears in the left column.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What are sensors in iphone ?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The proximity sensor immediately turns off the display when the iPhone is lifted to ear. With this sensor the power is saved and accidental dialing is prevented. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The display is automatically brightens the iPhone by the ambient light sensor when the sunlight or bright rooms and dims in darker places.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;What are the location services ?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Applications such as Maps, camera and compass are allowed to use the information from cellular, Wi-Fi and Global Positioning System networks for determining the approximate locations. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The location is displayed on the screen, using a blue marker.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Describe the functionality of accelerometer of an iphone .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;iPhone responds to motion using a built-in accelerometer. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The accelerometer detects the movement and changes the display accordingly, at the time of rotating iPhone from portrait to landscape.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Explain about the applications that can be used with iphone&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;line-height: 11.25pt; margin: auto 0in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;b&gt;Technology, Entertainment and Design(TED):&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Allows to watch and listen to world’s most fascinating people have to say, all on the iPhone.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Market Watch:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Breaking news about the investments can be seen. To do so, open the Stocks app and rotate.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt; z-index: 0;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Trends:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Latest runway shows, videos from Vogue’s fashion library, reviews, exclusive party pictures, fashion news updates can be seen on Style.com.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 11.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practiceonandroid.blogspot.com/feeds/208263550483699433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practiceonandroid.blogspot.com/2011/09/basic-iphone-interview-question-answer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/208263550483699433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5887113154087504619/posts/default/208263550483699433'/><link rel='alternate' type='text/html' href='http://practiceonandroid.blogspot.com/2011/09/basic-iphone-interview-question-answer.html' title='Basic iPhone Interview Question &amp; Answer'/><author><name>Ankit Shandilya</name><uri>http://www.blogger.com/profile/05948946992233550857</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>